From e3b9043bdd4957d94bab45fbffde92c1c68fc3e2 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 8 Apr 2024 18:44:42 -0700 Subject: [PATCH 01/21] Adds operation interfaces that have operationId methods --- .../client/paths/anotherfakedummy/Patch.java | 9 +++++++++ .../client/paths/commonparamsubdir/Delete.java | 9 +++++++++ .../client/paths/commonparamsubdir/Get.java | 9 +++++++++ .../client/paths/commonparamsubdir/Post.java | 9 +++++++++ .../openapijsonschematools/client/paths/fake/Delete.java | 9 +++++++++ .../openapijsonschematools/client/paths/fake/Get.java | 9 +++++++++ .../openapijsonschematools/client/paths/fake/Patch.java | 9 +++++++++ .../openapijsonschematools/client/paths/fake/Post.java | 9 +++++++++ .../fakeadditionalpropertieswitharrayofenums/Get.java | 9 +++++++++ .../client/paths/fakebodywithfileschema/Put.java | 9 +++++++++ .../client/paths/fakebodywithqueryparams/Put.java | 9 +++++++++ .../client/paths/fakecasesensitiveparams/Put.java | 9 +++++++++ .../client/paths/fakeclassnametest/Patch.java | 9 +++++++++ .../client/paths/fakedeletecoffeeid/Delete.java | 9 +++++++++ .../client/paths/fakehealth/Get.java | 9 +++++++++ .../paths/fakeinlineadditionalproperties/Post.java | 9 +++++++++ .../client/paths/fakeinlinecomposition/Post.java | 9 +++++++++ .../client/paths/fakejsonformdata/Get.java | 9 +++++++++ .../client/paths/fakejsonpatch/Patch.java | 9 +++++++++ .../client/paths/fakejsonwithcharset/Post.java | 9 +++++++++ .../paths/fakemultiplerequestbodycontenttypes/Post.java | 9 +++++++++ .../client/paths/fakemultipleresponsebodies/Get.java | 9 +++++++++ .../client/paths/fakemultiplesecurities/Get.java | 9 +++++++++ .../client/paths/fakeobjinquery/Get.java | 9 +++++++++ .../paths/fakeparametercollisions1ababselfab/Post.java | 9 +++++++++ .../client/paths/fakepemcontenttype/Get.java | 9 +++++++++ .../paths/fakepetiduploadimagewithrequiredfile/Post.java | 9 +++++++++ .../paths/fakequeryparamwithjsoncontenttype/Get.java | 9 +++++++++ .../client/paths/fakeredirection/Get.java | 9 +++++++++ .../client/paths/fakerefobjinquery/Get.java | 9 +++++++++ .../client/paths/fakerefsarraymodel/Post.java | 9 +++++++++ .../client/paths/fakerefsarrayofenums/Post.java | 9 +++++++++ .../client/paths/fakerefsboolean/Post.java | 9 +++++++++ .../fakerefscomposedoneofnumberwithvalidations/Post.java | 9 +++++++++ .../client/paths/fakerefsenum/Post.java | 9 +++++++++ .../client/paths/fakerefsmammal/Post.java | 9 +++++++++ .../client/paths/fakerefsnumber/Post.java | 9 +++++++++ .../paths/fakerefsobjectmodelwithrefprops/Post.java | 9 +++++++++ .../client/paths/fakerefsstring/Post.java | 9 +++++++++ .../client/paths/fakeresponsewithoutschema/Get.java | 9 +++++++++ .../client/paths/faketestqueryparamters/Put.java | 9 +++++++++ .../client/paths/fakeuploaddownloadfile/Post.java | 9 +++++++++ .../client/paths/fakeuploadfile/Post.java | 9 +++++++++ .../client/paths/fakeuploadfiles/Post.java | 9 +++++++++ .../client/paths/fakewildcardresponses/Get.java | 9 +++++++++ .../org/openapijsonschematools/client/paths/foo/Get.java | 9 +++++++++ .../openapijsonschematools/client/paths/pet/Post.java | 9 +++++++++ .../org/openapijsonschematools/client/paths/pet/Put.java | 9 +++++++++ .../client/paths/petfindbystatus/Get.java | 9 +++++++++ .../client/paths/petfindbytags/Get.java | 9 +++++++++ .../client/paths/petpetid/Delete.java | 9 +++++++++ .../client/paths/petpetid/Get.java | 9 +++++++++ .../client/paths/petpetid/Post.java | 9 +++++++++ .../client/paths/petpetiduploadimage/Post.java | 9 +++++++++ .../openapijsonschematools/client/paths/solidus/Get.java | 9 +++++++++ .../client/paths/storeinventory/Get.java | 9 +++++++++ .../client/paths/storeorder/Post.java | 9 +++++++++ .../client/paths/storeorderorderid/Delete.java | 9 +++++++++ .../client/paths/storeorderorderid/Get.java | 9 +++++++++ .../openapijsonschematools/client/paths/user/Post.java | 9 +++++++++ .../client/paths/usercreatewitharray/Post.java | 9 +++++++++ .../client/paths/usercreatewithlist/Post.java | 9 +++++++++ .../client/paths/userlogin/Get.java | 9 +++++++++ .../client/paths/userlogout/Get.java | 9 +++++++++ .../client/paths/userusername/Delete.java | 9 +++++++++ .../client/paths/userusername/Get.java | 9 +++++++++ .../client/paths/userusername/Put.java | 9 +++++++++ .../codegen/generators/DefaultGenerator.java | 3 ++- .../main/java/packagename/paths/path/verb/Operation.hbs | 9 +++++++++ 69 files changed, 614 insertions(+), 1 deletion(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java index b6dd1d97b37..954c960bc80 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse patch(PatchRequest request) throws IOExceptio } } + public interface Model123TestSpecialTagsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse 123test@#$%SpecialTags(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Patch1 extends ApiClient implements PatchOperation { public Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Delete.java index 475bc216c9f..bafcf8271f5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Delete.java @@ -70,6 +70,15 @@ default Responses.EndpointResponse delete(DeleteRequest request) throws IOExcept } } + public interface DeleteCommonParamOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse deleteCommonParam(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Delete1 extends ApiClient implements DeleteOperation { public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Get.java index 84e1e36efe5..bc9265e6ecb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Get.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface GetCommonParamOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse getCommonParam(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Post.java index 113973108cf..bbe08458abb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Post.java @@ -70,6 +70,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface PostCommonParamOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse postCommonParam(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java index 64e2a73038f..602bebf2555 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java @@ -82,6 +82,15 @@ default Responses.EndpointResponse delete(DeleteRequest request) throws IOExcept } } + public interface GroupParametersOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse groupParameters(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Delete1 extends ApiClient implements DeleteOperation { public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Get.java index 94d40088458..986742d92b2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Get.java @@ -87,6 +87,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface EnumParametersOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse enumParameters(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Patch.java index 913a462909d..2c393d0e8a9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Patch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Patch.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse patch(PatchRequest request) throws IOExceptio } } + public interface ClientModelOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse clientModel(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Patch1 extends ApiClient implements PatchOperation { public Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java index 18da6442b7b..1d3a5d614b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java @@ -84,6 +84,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface EndpointParametersOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse endpointParameters(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/Get.java index 07c73d4f887..a945dfd546b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/Get.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface AdditionalPropertiesWithArrayOfEnumsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse additionalPropertiesWithArrayOfEnums(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/Put.java index ddc35d6146a..73f69471b3f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/Put.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse put(PutRequest request) throws IOException, I } } + public interface BodyWithFileSchemaOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse bodyWithFileSchema(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Put1 extends ApiClient implements PutOperation { public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/Put.java index ba8cd1a869b..aa37f99e1b5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/Put.java @@ -73,6 +73,15 @@ default Responses.EndpointResponse put(PutRequest request) throws IOException, I } } + public interface BodyWithQueryParamsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse bodyWithQueryParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Put1 extends ApiClient implements PutOperation { public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/Put.java index 9740580cca0..de7f4bd69ec 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/Put.java @@ -64,6 +64,15 @@ default Responses.EndpointResponse put(PutRequest request) throws IOException, I } } + public interface CaseSensitiveParamsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse caseSensitiveParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Put1 extends ApiClient implements PutOperation { public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java index dd5ea58f497..b22f6967611 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java @@ -80,6 +80,15 @@ default Responses.EndpointResponse patch(PatchRequest request) throws IOExceptio } } + public interface ClassnameOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse classname(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Patch1 extends ApiClient implements PatchOperation { public Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/Delete.java index cedaa59345b..e19df2b388f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/Delete.java @@ -63,6 +63,15 @@ default Responses.EndpointResponse delete(DeleteRequest request) throws IOExcept } } + public interface DeleteCoffeeOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse deleteCoffee(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Delete1 extends ApiClient implements DeleteOperation { public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/Get.java index 9e1fcb44bc3..d3009c024fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/Get.java @@ -58,6 +58,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface FakeHealthGetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse fakeHealthGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/Post.java index 6b9aec9067f..c707621fe79 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/Post.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface InlineAdditionalPropertiesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse inlineAdditionalProperties(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/Post.java index 06f4d279174..66eaaa9eed7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/Post.java @@ -80,6 +80,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface InlineCompositionOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse inlineComposition(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/Get.java index 7f09ba7a1f4..3b30269ee14 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/Get.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface JsonFormDataOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse jsonFormData(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/Patch.java index 11acaae5b01..15ec6251587 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/Patch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/Patch.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse patch(PatchRequest request) throws IOExceptio } } + public interface JsonPatchOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse jsonPatch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Patch1 extends ApiClient implements PatchOperation { public Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/Post.java index 256707d6c16..3532a6c8dec 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface JsonWithCharsetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse jsonWithCharset(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/Post.java index eec76f14d75..6aec7cccc40 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface MultipleRequestBodyContentTypesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse multipleRequestBodyContentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/Get.java index c741ed63ddb..eb113268711 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/Get.java @@ -58,6 +58,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface MultipleResponseBodiesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse multipleResponseBodies(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java index d7db1ca4247..13bc5e7cfcd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface MultipleSecuritiesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse multipleSecurities(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/Get.java index e4f5836bd16..f15716f09bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/Get.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface ObjectInQueryOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse objectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Post.java index 6f8f32dcdab..b2b8b0cd1d9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Post.java @@ -99,6 +99,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface ParameterCollisionsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse parameterCollisions(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/Get.java index 76762c2106d..9d809770bad 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/Get.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface PemContentTypeOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse pemContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java index bc14ed14094..a8dece38498 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java @@ -89,6 +89,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface UploadFileWithRequiredFileOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse uploadFileWithRequiredFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/Get.java index 1d2525666c8..0d13e4037fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/Get.java @@ -64,6 +64,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface QueryParamWithJsonContentTypeOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse queryParamWithJsonContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/Get.java index 79bfed8fe0c..472906bc4b4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/Get.java @@ -58,6 +58,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface RedirectionOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse redirection(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/Get.java index d640b1e04c5..034f22fcd8b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/Get.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface RefObjectInQueryOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse refObjectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/Post.java index 3b1dad9974c..140db8e5f93 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface ArrayModelOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse arrayModel(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/Post.java index 13d1ccbab8f..ee73639843e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface ArrayOfEnumsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse arrayOfEnums(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java index 95db0847da6..5937159b547 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface ModelBooleanOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse boolean(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/Post.java index 97d3e46b39c..0e86519703b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface ComposedOneOfDifferentTypesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse composedOneOfDifferentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/Post.java index 02719172619..6b5ee0ea30f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface StringEnumOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse stringEnum(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/Post.java index 278c82a493c..cf0bf9417fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/Post.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface MammalOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse mammal(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/Post.java index 1eaba218885..39454238aac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface NumberWithValidationsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse numberWithValidations(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/Post.java index a8a554dc678..518fbb41cee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface ObjectModelWithRefPropsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse objectModelWithRefProps(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java index c2b331a1125..6062fbe7f4d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface ModelStringOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse string(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/Get.java index 58e670e37cc..6cdb32b2e29 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/Get.java @@ -58,6 +58,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface ResponseWithoutSchemaOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse responseWithoutSchema(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/Put.java index 98a0fd0f5e2..2c076c5c890 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/Put.java @@ -64,6 +64,15 @@ default Responses.EndpointResponse put(PutRequest request) throws IOException, I } } + public interface QueryParameterCollectionFormatOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse queryParameterCollectionFormat(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Put1 extends ApiClient implements PutOperation { public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/Post.java index 0cfde8026ef..c0e34c9418a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/Post.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface UploadDownloadFileOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse uploadDownloadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/Post.java index 87f187dd7e6..58b9493bcca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface UploadFileOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse uploadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/Post.java index 7be8841da1e..2f6c2e6d7f0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/Post.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface UploadFilesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse uploadFiles(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/Get.java index fe290c34307..384fc42187b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/Get.java @@ -58,6 +58,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface WildCardResponsesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse wildCardResponses(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/Get.java index ca58d9e23fe..a2b834a62ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/Get.java @@ -58,6 +58,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface FooGetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse fooGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java index 8ac322b163d..65caf372ad2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java @@ -80,6 +80,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface AddPetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse addPet(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java index e75a9b792d3..e330935b1ed 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java @@ -80,6 +80,15 @@ default Void put(PutRequest request) throws IOException, InterruptedException, V } } + 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 Put1 extends ApiClient implements PutOperation { public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/Get.java index aa30e9bf00f..f1f9e0dfeef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/Get.java @@ -77,6 +77,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface FindPetsByStatusOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse findPetsByStatus(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/Get.java index f29d6b59081..1894da3fc01 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/Get.java @@ -77,6 +77,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface FindPetsByTagsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse findPetsByTags(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Delete.java index 4504536c416..f371109c895 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Delete.java @@ -83,6 +83,15 @@ default Void delete(DeleteRequest request) throws IOException, InterruptedExcept } } + 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 Delete1 extends ApiClient implements DeleteOperation { public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Get.java index d61d683a408..c3f45692546 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Get.java @@ -76,6 +76,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface GetPetByIdOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse getPetById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Post.java index b9ad09b7104..8e7357da63b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Post.java @@ -89,6 +89,15 @@ default Void post(PostRequest request) throws IOException, InterruptedException, } } + 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 Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/Post.java index 372c6fffde0..2f14aeced0e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/Post.java @@ -89,6 +89,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface UploadImageOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse uploadImage(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/Get.java index 111e91bdcf4..f51943f0a05 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/Get.java @@ -58,6 +58,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface SlashRouteOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse slashRoute(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/Get.java index 49e7b1d5ab7..3b907a1e148 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/Get.java @@ -71,6 +71,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface GetInventoryOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse getInventory(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/Post.java index ba0d5c15793..75ee3b8d98d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/Post.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface PlaceOrderOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse placeOrder(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Delete.java index 12139abd4b9..dfc6aec4374 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Delete.java @@ -63,6 +63,15 @@ default Void delete(DeleteRequest request) throws IOException, InterruptedExcept } } + 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 Delete1 extends ApiClient implements DeleteOperation { public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Get.java index e585a91d120..b32b30008ac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Get.java @@ -63,6 +63,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface GetOrderByIdOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse getOrderById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/Post.java index 51f43cc60ac..c79b79dfa64 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/Post.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface CreateUserOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse createUser(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/Post.java index a2d805d6d78..acb3e0f7d80 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/Post.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface CreateUsersWithArrayInputOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse createUsersWithArrayInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/Post.java index f8f78fabe13..9f4ab1e344c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/Post.java @@ -67,6 +67,15 @@ default Responses.EndpointResponse post(PostRequest request) throws IOException, } } + public interface CreateUsersWithListInputOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse createUsersWithListInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Post1 extends ApiClient implements PostOperation { public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/Get.java index c2660417c71..0a9973ddcdc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/Get.java @@ -64,6 +64,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface LoginUserOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse loginUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/Get.java index efc687945ab..ce11f53a11c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/Get.java @@ -58,6 +58,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface LogoutUserOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse logoutUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Delete.java index 223efea0cce..165e2167659 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Delete.java @@ -63,6 +63,15 @@ default Responses.EndpointResponse delete(DeleteRequest request) throws IOExcept } } + public interface DeleteUserOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse deleteUser(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Delete1 extends ApiClient implements DeleteOperation { public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Get.java index 503ec431719..87997b05786 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Get.java @@ -63,6 +63,15 @@ default Responses.EndpointResponse get(GetRequest request) throws IOException, I } } + public interface GetUserByNameOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.EndpointResponse getUserByName(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class Get1 extends ApiClient implements GetOperation { public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Put.java index 748d806d396..183dcecff51 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Put.java @@ -72,6 +72,15 @@ default Void put(PutRequest request) throws IOException, InterruptedException, V } } + 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 Put1 extends ApiClient implements PutOperation { public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index abeb8df0cc2..d697ac8934a 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -2619,13 +2619,14 @@ protected CodegenKey getOperationId(Operation operation, String path, String htt } String pascalCaseName = toModelName(operationId, null); String kebabCase = pascalCaseName.toLowerCase(Locale.ROOT); + String camelCase = camelize(operationId, true); return new CodegenKey( operationId, isValid(operationId), getOperationIdSnakeCase(operationId), pascalCaseName, kebabCase, - null + camelCase ); } diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs index b04427102fd..6862003bc49 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs @@ -201,6 +201,15 @@ public class {{jsonPathPiece.pascalCase}} { } } + public interface {{operationId.pascalCase}}Operation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default {{#if nonErrorResponses }}{{#with responses}}{{jsonPathPiece.pascalCase}}.EndpointResponse{{/with}}{{else}}Void{{/if}} {{operationId.camelCase}}({{jsonPathPiece.pascalCase}}Request request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return {{jsonPathPiece.pascalCase}}Provider.{{jsonPathPiece.camelCase}}(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + public static class {{jsonPathPiece.pascalCase}}1 extends ApiClient implements {{jsonPathPiece.pascalCase}}Operation { public {{jsonPathPiece.pascalCase}}1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); From 6d24e37b408b55b699a775bd43ee379e311f52ee Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 8 Apr 2024 22:59:34 -0700 Subject: [PATCH 02/21] Adjusts operationId camelCase value --- .../client/paths/anotherfakedummy/Patch.java | 2 +- .../client/paths/fakerefsboolean/Post.java | 2 +- .../client/paths/fakerefsstring/Post.java | 2 +- .../codegen/generators/DefaultGenerator.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java index 954c960bc80..303d06f91d5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java @@ -71,7 +71,7 @@ public interface Model123TestSpecialTagsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse 123test@#$%SpecialTags(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default Responses.EndpointResponse model123TestSpecialTags(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java index 5937159b547..5e4404d8054 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java @@ -75,7 +75,7 @@ public interface ModelBooleanOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse boolean(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default Responses.EndpointResponse modelBoolean(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java index 6062fbe7f4d..41d9b6d2496 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java @@ -75,7 +75,7 @@ public interface ModelStringOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse string(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default Responses.EndpointResponse modelString(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index d697ac8934a..8040cf0b286 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -2619,7 +2619,7 @@ protected CodegenKey getOperationId(Operation operation, String path, String htt } String pascalCaseName = toModelName(operationId, null); String kebabCase = pascalCaseName.toLowerCase(Locale.ROOT); - String camelCase = camelize(operationId, true); + String camelCase = camelize(pascalCaseName, true); return new CodegenKey( operationId, isValid(operationId), From d0560732a81c848f9259b0e7cc6ea9db7cd327dd Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 8 Apr 2024 23:24:23 -0700 Subject: [PATCH 03/21] Adds tag api files --- .../petstore/java/.openapi-generator/FILES | 7 ++ .../client/apis/tags/$anotherFake?Api.java | 14 +++ .../client/apis/tags/DefaultApi.java | 14 +++ .../client/apis/tags/FakeApi.java | 98 +++++++++++++++++++ .../tags/FakeClassnameTags 123#$%^Api.java | 14 +++ .../client/apis/tags/PetApi.java | 30 ++++++ .../client/apis/tags/StoreApi.java | 20 ++++ .../client/apis/tags/UserApi.java | 28 ++++++ .../generators/JavaClientGenerator.java | 8 +- .../main/java/packagename/apis/tags/Api.hbs | 22 +++++ 10 files changed, 254 insertions(+), 1 deletion(-) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/$anotherFake?Api.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/DefaultApi.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeApi.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeClassnameTags 123#$%^Api.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/PetApi.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/StoreApi.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/UserApi.java create mode 100644 src/main/resources/java/src/main/java/packagename/apis/tags/Api.hbs diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index e1a0e83ecda..aeb5a8d0dbc 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -747,6 +747,13 @@ src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.ja src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java +src/main/java/org/openapijsonschematools/client/apis/tags/$anotherFake?Api.java +src/main/java/org/openapijsonschematools/client/apis/tags/DefaultApi.java +src/main/java/org/openapijsonschematools/client/apis/tags/FakeApi.java +src/main/java/org/openapijsonschematools/client/apis/tags/FakeClassnameTags 123#$%^Api.java +src/main/java/org/openapijsonschematools/client/apis/tags/PetApi.java +src/main/java/org/openapijsonschematools/client/apis/tags/StoreApi.java +src/main/java/org/openapijsonschematools/client/apis/tags/UserApi.java src/main/java/org/openapijsonschematools/client/components/headers/Int32JsonContentTypeHeader.java src/main/java/org/openapijsonschematools/client/components/headers/NumberHeader.java src/main/java/org/openapijsonschematools/client/components/headers/RefContentSchemaHeader.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/$anotherFake?Api.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/$anotherFake?Api.java new file mode 100644 index 00000000000..23a274f2dff --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/$anotherFake?Api.java @@ -0,0 +1,14 @@ +package org.openapijsonschematools.client.apis.tags; + +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.paths.anotherfakedummy.Patch; + +public class $anotherFake?Api extends ApiClient implements + Patch.Model123TestSpecialTagsOperation +{ + public $anotherFake?Api(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/DefaultApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/DefaultApi.java new file mode 100644 index 00000000000..7a5e6ae3002 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/DefaultApi.java @@ -0,0 +1,14 @@ +package org.openapijsonschematools.client.apis.tags; + +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.paths.foo.Get; + +public class DefaultApi extends ApiClient implements + Get.FooGetOperation +{ + public DefaultApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeApi.java new file mode 100644 index 00000000000..3cb48e9db58 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeApi.java @@ -0,0 +1,98 @@ +package org.openapijsonschematools.client.apis.tags; + +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.paths.fakejsonpatch.Patch; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.Post; +import org.openapijsonschematools.client.paths.commonparamsubdir.Delete; +import org.openapijsonschematools.client.paths.commonparamsubdir.Get; +import org.openapijsonschematools.client.paths.commonparamsubdir.Post; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.Put; +import org.openapijsonschematools.client.paths.fakewildcardresponses.Get; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.Put; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.Post; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.Post; +import org.openapijsonschematools.client.paths.fakehealth.Get; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.Post; +import org.openapijsonschematools.client.paths.fakerefobjinquery.Get; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.Put; +import org.openapijsonschematools.client.paths.fakerefsenum.Post; +import org.openapijsonschematools.client.paths.fakeredirection.Get; +import org.openapijsonschematools.client.paths.fakeuploadfile.Post; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.Post; +import org.openapijsonschematools.client.paths.fake.Delete; +import org.openapijsonschematools.client.paths.fake.Get; +import org.openapijsonschematools.client.paths.fake.Patch; +import org.openapijsonschematools.client.paths.fake.Post; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.Post; +import org.openapijsonschematools.client.paths.fakepemcontenttype.Get; +import org.openapijsonschematools.client.paths.fakerefsnumber.Post; +import org.openapijsonschematools.client.paths.fakerefsstring.Post; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.Post; +import org.openapijsonschematools.client.paths.fakerefsmammal.Post; +import org.openapijsonschematools.client.paths.solidus.Get; +import org.openapijsonschematools.client.paths.fakerefsboolean.Post; +import org.openapijsonschematools.client.paths.fakejsonformdata.Get; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Post; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.Get; +import org.openapijsonschematools.client.paths.fakeobjinquery.Get; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.Get; +import org.openapijsonschematools.client.paths.faketestqueryparamters.Put; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.Get; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.Get; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.Post; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.Post; +import org.openapijsonschematools.client.paths.fakeuploadfiles.Post; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.Get; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.Delete; + +public class FakeApi extends ApiClient implements + Patch.JsonPatchOperation + Post.ArrayOfEnumsOperation + Delete.DeleteCommonParamOperation, + Get.GetCommonParamOperation, + Post.PostCommonParamOperation + Put.CaseSensitiveParamsOperation + Get.WildCardResponsesOperation + Put.BodyWithQueryParamsOperation + Post.JsonWithCharsetOperation + Post.ArrayModelOperation + Get.FakeHealthGetOperation + Post.ComposedOneOfDifferentTypesOperation + Get.RefObjectInQueryOperation + Put.BodyWithFileSchemaOperation + Post.StringEnumOperation + Get.RedirectionOperation + Post.UploadFileOperation + Post.InlineCompositionOperation + Delete.GroupParametersOperation, + Get.EnumParametersOperation, + Patch.ClientModelOperation, + Post.EndpointParametersOperation + Post.ObjectModelWithRefPropsOperation + Get.PemContentTypeOperation + Post.NumberWithValidationsOperation + Post.ModelStringOperation + Post.InlineAdditionalPropertiesOperation + Post.MammalOperation + Get.SlashRouteOperation + Post.ModelBooleanOperation + Get.JsonFormDataOperation + Post.ParameterCollisionsOperation + Get.QueryParamWithJsonContentTypeOperation + Get.ObjectInQueryOperation + Get.MultipleSecuritiesOperation + Put.QueryParameterCollectionFormatOperation + Get.MultipleResponseBodiesOperation + Get.ResponseWithoutSchemaOperation + Post.MultipleRequestBodyContentTypesOperation + Post.UploadDownloadFileOperation + Post.UploadFilesOperation + Get.AdditionalPropertiesWithArrayOfEnumsOperation + Delete.DeleteCoffeeOperation +{ + public FakeApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeClassnameTags 123#$%^Api.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeClassnameTags 123#$%^Api.java new file mode 100644 index 00000000000..660685abcdd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeClassnameTags 123#$%^Api.java @@ -0,0 +1,14 @@ +package org.openapijsonschematools.client.apis.tags; + +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.paths.fakeclassnametest.Patch; + +public class FakeClassnameTags 123#$%^Api extends ApiClient implements + Patch.ClassnameOperation +{ + public FakeClassnameTags 123#$%^Api(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/PetApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/PetApi.java new file mode 100644 index 00000000000..4d5c2b090c9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/PetApi.java @@ -0,0 +1,30 @@ +package org.openapijsonschematools.client.apis.tags; + +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.Post; +import org.openapijsonschematools.client.paths.pet.Post; +import org.openapijsonschematools.client.paths.pet.Put; +import org.openapijsonschematools.client.paths.petfindbytags.Get; +import org.openapijsonschematools.client.paths.petfindbystatus.Get; +import org.openapijsonschematools.client.paths.petpetiduploadimage.Post; +import org.openapijsonschematools.client.paths.petpetid.Delete; +import org.openapijsonschematools.client.paths.petpetid.Get; +import org.openapijsonschematools.client.paths.petpetid.Post; + +public class PetApi extends ApiClient implements + Post.UploadFileWithRequiredFileOperation + Post.AddPetOperation, + Put.UpdatePetOperation + Get.FindPetsByTagsOperation + Get.FindPetsByStatusOperation + Post.UploadImageOperation + Delete.DeletePetOperation, + Get.GetPetByIdOperation, + Post.UpdatePetWithFormOperation +{ + public PetApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/StoreApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/StoreApi.java new file mode 100644 index 00000000000..f2f103fac93 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/StoreApi.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.apis.tags; + +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.paths.storeinventory.Get; +import org.openapijsonschematools.client.paths.storeorderorderid.Delete; +import org.openapijsonschematools.client.paths.storeorderorderid.Get; +import org.openapijsonschematools.client.paths.storeorder.Post; + +public class StoreApi extends ApiClient implements + Get.GetInventoryOperation + Delete.DeleteOrderOperation, + Get.GetOrderByIdOperation + Post.PlaceOrderOperation +{ + public StoreApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/UserApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/UserApi.java new file mode 100644 index 00000000000..d40dff27644 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/UserApi.java @@ -0,0 +1,28 @@ +package org.openapijsonschematools.client.apis.tags; + +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.paths.userlogout.Get; +import org.openapijsonschematools.client.paths.usercreatewitharray.Post; +import org.openapijsonschematools.client.paths.user.Post; +import org.openapijsonschematools.client.paths.userlogin.Get; +import org.openapijsonschematools.client.paths.userusername.Delete; +import org.openapijsonschematools.client.paths.userusername.Get; +import org.openapijsonschematools.client.paths.userusername.Put; +import org.openapijsonschematools.client.paths.usercreatewithlist.Post; + +public class UserApi extends ApiClient implements + Get.LogoutUserOperation + Post.CreateUsersWithArrayInputOperation + Post.CreateUserOperation + Get.LoginUserOperation + Delete.DeleteUserOperation, + Get.GetUserByNameOperation, + Put.UpdateUserOperation + Post.CreateUsersWithListInputOperation +{ + public UserApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } +} \ No newline at end of file diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 40c987b5364..9a34af63772 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -1034,13 +1034,19 @@ public void processOpts() { put("src/main/java/packagename/paths/path/PathItem.hbs", ".java"); }} ); - // path apis + // apis jsonPathTemplateFiles.put( CodegenConstants.JSON_PATH_LOCATION_TYPE.API_PATH, new HashMap<>() {{ put("src/main/java/packagename/apis/paths/Api.hbs", ".java"); }} ); + jsonPathTemplateFiles.put( + CodegenConstants.JSON_PATH_LOCATION_TYPE.API_TAG, + new HashMap<>() {{ + put("src/main/java/packagename/apis/tags/Api.hbs", ".java"); + }} + ); // schema HashMap schemaTemplates = new HashMap<>(); diff --git a/src/main/resources/java/src/main/java/packagename/apis/tags/Api.hbs b/src/main/resources/java/src/main/java/packagename/apis/tags/Api.hbs new file mode 100644 index 00000000000..e26743b1674 --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/apis/tags/Api.hbs @@ -0,0 +1,22 @@ +package {{packageName}}.apis.tags; + +import {{packageName}}.apiclient.ApiClient; +import {{packageName}}.configurations.ApiConfiguration; +import {{packageName}}.configurations.SchemaConfiguration; +{{#each pathToOperations}} + {{#each this}} +import {{packageName}}.{{subpackage}}.{{jsonPathPiece.pascalCase}}; + {{/each}} +{{/each}} + +public class {{tag.className}} extends ApiClient implements +{{#each pathToOperations}} + {{#each this}} + {{jsonPathPiece.pascalCase}}.{{operationId.pascalCase}}Operation{{#unless @last}},{{/unless}} + {{/each}} +{{/each}} +{ + public {{tag.className}}(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } +} \ No newline at end of file From dd27a6f57b66c5e3489d052ca16bb9e83ac0b7f2 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 9 Apr 2024 09:38:54 -0700 Subject: [PATCH 04/21] Fixes java tag api class names and file names --- .../petstore/java/.openapi-generator/FILES | 14 ++++++------- ...$anotherFake?Api.java => Anotherfake.java} | 4 ++-- .../tags/{DefaultApi.java => Default.java} | 4 ++-- .../apis/tags/{FakeApi.java => Fake.java} | 4 ++-- ...#$%^Api.java => Fakeclassnametags123.java} | 4 ++-- .../apis/tags/{PetApi.java => Pet.java} | 4 ++-- .../apis/tags/{StoreApi.java => Store.java} | 4 ++-- .../apis/tags/{UserApi.java => User.java} | 4 ++-- .../generators/JavaClientGenerator.java | 20 +++++++++++++++++++ 9 files changed, 41 insertions(+), 21 deletions(-) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/{$anotherFake?Api.java => Anotherfake.java} (72%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/{DefaultApi.java => Default.java} (72%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/{FakeApi.java => Fake.java} (97%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/{FakeClassnameTags 123#$%^Api.java => Fakeclassnametags123.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/{PetApi.java => Pet.java} (89%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/{StoreApi.java => Store.java} (82%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/{UserApi.java => User.java} (88%) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index aeb5a8d0dbc..8a35888377e 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -747,13 +747,13 @@ src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.ja src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java -src/main/java/org/openapijsonschematools/client/apis/tags/$anotherFake?Api.java -src/main/java/org/openapijsonschematools/client/apis/tags/DefaultApi.java -src/main/java/org/openapijsonschematools/client/apis/tags/FakeApi.java -src/main/java/org/openapijsonschematools/client/apis/tags/FakeClassnameTags 123#$%^Api.java -src/main/java/org/openapijsonschematools/client/apis/tags/PetApi.java -src/main/java/org/openapijsonschematools/client/apis/tags/StoreApi.java -src/main/java/org/openapijsonschematools/client/apis/tags/UserApi.java +src/main/java/org/openapijsonschematools/client/apis/tags/Anotherfake.java +src/main/java/org/openapijsonschematools/client/apis/tags/Default.java +src/main/java/org/openapijsonschematools/client/apis/tags/Fake.java +src/main/java/org/openapijsonschematools/client/apis/tags/Fakeclassnametags123.java +src/main/java/org/openapijsonschematools/client/apis/tags/Pet.java +src/main/java/org/openapijsonschematools/client/apis/tags/Store.java +src/main/java/org/openapijsonschematools/client/apis/tags/User.java src/main/java/org/openapijsonschematools/client/components/headers/Int32JsonContentTypeHeader.java src/main/java/org/openapijsonschematools/client/components/headers/NumberHeader.java src/main/java/org/openapijsonschematools/client/components/headers/RefContentSchemaHeader.java diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/$anotherFake?Api.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Anotherfake.java similarity index 72% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/$anotherFake?Api.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Anotherfake.java index 23a274f2dff..fec33d32829 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/$anotherFake?Api.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Anotherfake.java @@ -5,10 +5,10 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.paths.anotherfakedummy.Patch; -public class $anotherFake?Api extends ApiClient implements +public class Anotherfake extends ApiClient implements Patch.Model123TestSpecialTagsOperation { - public $anotherFake?Api(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public Anotherfake(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/DefaultApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Default.java similarity index 72% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/DefaultApi.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Default.java index 7a5e6ae3002..6873682cd36 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/DefaultApi.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Default.java @@ -5,10 +5,10 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.paths.foo.Get; -public class DefaultApi extends ApiClient implements +public class Default extends ApiClient implements Get.FooGetOperation { - public DefaultApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public Default(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fake.java similarity index 97% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeApi.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fake.java index 3cb48e9db58..d1889d8636b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeApi.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fake.java @@ -47,7 +47,7 @@ import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.Get; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.Delete; -public class FakeApi extends ApiClient implements +public class Fake extends ApiClient implements Patch.JsonPatchOperation Post.ArrayOfEnumsOperation Delete.DeleteCommonParamOperation, @@ -92,7 +92,7 @@ public class FakeApi extends ApiClient implements Get.AdditionalPropertiesWithArrayOfEnumsOperation Delete.DeleteCoffeeOperation { - public FakeApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public Fake(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeClassnameTags 123#$%^Api.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fakeclassnametags123.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeClassnameTags 123#$%^Api.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fakeclassnametags123.java index 660685abcdd..5105a8864fd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/FakeClassnameTags 123#$%^Api.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fakeclassnametags123.java @@ -5,10 +5,10 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.paths.fakeclassnametest.Patch; -public class FakeClassnameTags 123#$%^Api extends ApiClient implements +public class Fakeclassnametags123 extends ApiClient implements Patch.ClassnameOperation { - public FakeClassnameTags 123#$%^Api(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public Fakeclassnametags123(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/PetApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Pet.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/PetApi.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Pet.java index 4d5c2b090c9..4bf29eb9b23 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/PetApi.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Pet.java @@ -13,7 +13,7 @@ import org.openapijsonschematools.client.paths.petpetid.Get; import org.openapijsonschematools.client.paths.petpetid.Post; -public class PetApi extends ApiClient implements +public class Pet extends ApiClient implements Post.UploadFileWithRequiredFileOperation Post.AddPetOperation, Put.UpdatePetOperation @@ -24,7 +24,7 @@ public class PetApi extends ApiClient implements Get.GetPetByIdOperation, Post.UpdatePetWithFormOperation { - public PetApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public Pet(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/StoreApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Store.java similarity index 82% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/StoreApi.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Store.java index f2f103fac93..c299790cb9d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/StoreApi.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Store.java @@ -8,13 +8,13 @@ import org.openapijsonschematools.client.paths.storeorderorderid.Get; import org.openapijsonschematools.client.paths.storeorder.Post; -public class StoreApi extends ApiClient implements +public class Store extends ApiClient implements Get.GetInventoryOperation Delete.DeleteOrderOperation, Get.GetOrderByIdOperation Post.PlaceOrderOperation { - public StoreApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public Store(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/UserApi.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/User.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/UserApi.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/User.java index d40dff27644..9dee85971ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/UserApi.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/User.java @@ -12,7 +12,7 @@ import org.openapijsonschematools.client.paths.userusername.Put; import org.openapijsonschematools.client.paths.usercreatewithlist.Post; -public class UserApi extends ApiClient implements +public class User extends ApiClient implements Get.LogoutUserOperation Post.CreateUsersWithArrayInputOperation Post.CreateUserOperation @@ -22,7 +22,7 @@ public class UserApi extends ApiClient implements Put.UpdateUserOperation Post.CreateUsersWithListInputOperation { - public UserApi(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public User(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } \ No newline at end of file diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 9a34af63772..76756cc7d3a 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -3467,6 +3467,26 @@ public boolean shouldGenerateFile(String jsonPath, boolean isDoc) { return true; } + @Override + public String toApiFilename(String name) { + return toApiName(name); + } + + @Override + public String toApiName(String name) { + if (name.isEmpty()) { + return "DefaultApi"; + } + String usedName = sanitizeName(name, "[^a-zA-Z0-9]+"); + // todo check if empty and if so them use enum name + // todo fix this, this does not handle names starting with numbers + if (usedName.isEmpty()) { + usedName = toEnumVarName(name, null).toLowerCase(Locale.ROOT); + } + usedName = camelize(usedName, false); + return usedName; + } + protected String responsePathFromDocRoot(String sourceJsonPath) { return getPathFromDocRoot(sourceJsonPath); } From 8a56f50512f4507557deb910140e1716e0a5d5bb Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 9 Apr 2024 14:49:33 -0700 Subject: [PATCH 05/21] Java operation docs regen --- .../petstore/java/.openapi-generator/FILES | 268 ++++++------- samples/client/petstore/java/README.md | 134 +++---- .../{Patch.md => AnotherfakedummyPatch.md} | 32 +- .../{Delete.md => CommonparamsubdirDelete.md} | 32 +- .../{Get.md => CommonparamsubdirGet.md} | 32 +- .../{Post.md => CommonparamsubdirPost.md} | 32 +- .../parameters/parameter0/PathParamSchema0.md | 96 ----- .../paths/fake/{Delete.md => FakeDelete.md} | 32 +- .../docs/paths/fake/{Get.md => FakeGet.md} | 26 +- .../paths/fake/{Patch.md => FakePatch.md} | 32 +- .../docs/paths/fake/{Post.md => FakePost.md} | 26 +- ...dditionalpropertieswitharrayofenumsGet.md} | 26 +- .../{Put.md => FakebodywithfileschemaPut.md} | 34 +- .../{Put.md => FakebodywithqueryparamsPut.md} | 34 +- .../{Put.md => FakecasesensitiveparamsPut.md} | 32 +- .../{Patch.md => FakeclassnametestPatch.md} | 32 +- ...{Delete.md => FakedeletecoffeeidDelete.md} | 32 +- .../fakehealth/{Get.md => FakehealthGet.md} | 26 +- ... => FakeinlineadditionalpropertiesPost.md} | 34 +- .../{Post.md => FakeinlinecompositionPost.md} | 26 +- .../{Get.md => FakejsonformdataGet.md} | 26 +- .../{Patch.md => FakejsonpatchPatch.md} | 26 +- .../{Post.md => FakejsonwithcharsetPost.md} | 26 +- ...akemultiplerequestbodycontenttypesPost.md} | 26 +- ...et.md => FakemultipleresponsebodiesGet.md} | 26 +- .../{Get.md => FakemultiplesecuritiesGet.md} | 26 +- .../{Get.md => FakeobjinqueryGet.md} | 26 +- ...Fakeparametercollisions1ababselfabPost.md} | 32 +- .../{Get.md => FakepemcontenttypeGet.md} | 26 +- ...kepetiduploadimagewithrequiredfilePost.md} | 32 +- ...> FakequeryparamwithjsoncontenttypeGet.md} | 32 +- .../{Get.md => FakeredirectionGet.md} | 26 +- .../{Get.md => FakerefobjinqueryGet.md} | 26 +- .../{Post.md => FakerefsarraymodelPost.md} | 26 +- .../{Post.md => FakerefsarrayofenumsPost.md} | 26 +- .../{Post.md => FakerefsbooleanPost.md} | 26 +- ...composedoneofnumberwithvalidationsPost.md} | 26 +- .../{Post.md => FakerefsenumPost.md} | 26 +- .../{Post.md => FakerefsmammalPost.md} | 34 +- .../{Post.md => FakerefsnumberPost.md} | 26 +- ...=> FakerefsobjectmodelwithrefpropsPost.md} | 26 +- .../{Post.md => FakerefsstringPost.md} | 26 +- ...Get.md => FakeresponsewithoutschemaGet.md} | 26 +- .../{Put.md => FaketestqueryparamtersPut.md} | 32 +- ...{Post.md => FakeuploaddownloadfilePost.md} | 34 +- .../{Post.md => FakeuploadfilePost.md} | 26 +- .../{Post.md => FakeuploadfilesPost.md} | 26 +- .../{Get.md => FakewildcardresponsesGet.md} | 26 +- .../java/docs/paths/foo/{Get.md => FooGet.md} | 26 +- .../docs/paths/pet/{Post.md => PetPost.md} | 32 +- .../java/docs/paths/pet/{Put.md => PetPut.md} | 32 +- .../{Get.md => PetfindbystatusGet.md} | 32 +- .../get/PetfindbystatusGetServerInfo.md | 62 --- .../get/servers/PetfindbystatusGetServer0.md | 14 - .../get/servers/PetfindbystatusGetServer1.md | 16 - .../get/servers/server1/Variables.md | 355 ------------------ .../{Get.md => PetfindbytagsGet.md} | 32 +- .../petpetid/{Delete.md => PetpetidDelete.md} | 32 +- .../paths/petpetid/{Get.md => PetpetidGet.md} | 32 +- .../petpetid/{Post.md => PetpetidPost.md} | 32 +- .../{Post.md => PetpetiduploadimagePost.md} | 32 +- .../paths/solidus/{Get.md => SolidusGet.md} | 26 +- .../{Get.md => StoreinventoryGet.md} | 26 +- .../storeorder/{Post.md => StoreorderPost.md} | 34 +- .../{Delete.md => StoreorderorderidDelete.md} | 32 +- .../{Get.md => StoreorderorderidGet.md} | 32 +- .../docs/paths/user/{Post.md => UserPost.md} | 34 +- .../{Post.md => UsercreatewitharrayPost.md} | 32 +- .../{Post.md => UsercreatewithlistPost.md} | 32 +- .../userlogin/{Get.md => UserloginGet.md} | 32 +- .../headers/xexpiresafter/Schema200Schema.md | 49 --- .../applicationjson/Schema200Schema.md | 49 --- .../userlogout/{Get.md => UserlogoutGet.md} | 26 +- .../{Delete.md => UserusernameDelete.md} | 32 +- .../{Get.md => UserusernameGet.md} | 32 +- .../{Put.md => UserusernamePut.md} | 34 +- .../client/apis/paths/Anotherfakedummy.java | 4 +- .../client/apis/paths/Commonparamsubdir.java | 12 +- .../client/apis/paths/Fake.java | 16 +- ...eadditionalpropertieswitharrayofenums.java | 4 +- .../apis/paths/Fakebodywithfileschema.java | 4 +- .../apis/paths/Fakebodywithqueryparams.java | 4 +- .../apis/paths/Fakecasesensitiveparams.java | 4 +- .../client/apis/paths/Fakeclassnametest.java | 4 +- .../client/apis/paths/Fakedeletecoffeeid.java | 4 +- .../client/apis/paths/Fakehealth.java | 4 +- .../paths/Fakeinlineadditionalproperties.java | 4 +- .../apis/paths/Fakeinlinecomposition.java | 4 +- .../client/apis/paths/Fakejsonformdata.java | 4 +- .../client/apis/paths/Fakejsonpatch.java | 4 +- .../apis/paths/Fakejsonwithcharset.java | 4 +- .../Fakemultiplerequestbodycontenttypes.java | 4 +- .../paths/Fakemultipleresponsebodies.java | 4 +- .../apis/paths/Fakemultiplesecurities.java | 4 +- .../client/apis/paths/Fakeobjinquery.java | 4 +- .../Fakeparametercollisions1ababselfab.java | 4 +- .../client/apis/paths/Fakepemcontenttype.java | 4 +- .../Fakepetiduploadimagewithrequiredfile.java | 4 +- .../Fakequeryparamwithjsoncontenttype.java | 4 +- .../client/apis/paths/Fakeredirection.java | 4 +- .../client/apis/paths/Fakerefobjinquery.java | 4 +- .../client/apis/paths/Fakerefsarraymodel.java | 4 +- .../apis/paths/Fakerefsarrayofenums.java | 4 +- .../client/apis/paths/Fakerefsboolean.java | 4 +- ...efscomposedoneofnumberwithvalidations.java | 4 +- .../client/apis/paths/Fakerefsenum.java | 4 +- .../client/apis/paths/Fakerefsmammal.java | 4 +- .../client/apis/paths/Fakerefsnumber.java | 4 +- .../Fakerefsobjectmodelwithrefprops.java | 4 +- .../client/apis/paths/Fakerefsstring.java | 4 +- .../apis/paths/Fakeresponsewithoutschema.java | 4 +- .../apis/paths/Faketestqueryparamters.java | 4 +- .../apis/paths/Fakeuploaddownloadfile.java | 4 +- .../client/apis/paths/Fakeuploadfile.java | 4 +- .../client/apis/paths/Fakeuploadfiles.java | 4 +- .../apis/paths/Fakewildcardresponses.java | 4 +- .../client/apis/paths/Foo.java | 4 +- .../client/apis/paths/Pet.java | 8 +- .../client/apis/paths/Petfindbystatus.java | 4 +- .../client/apis/paths/Petfindbytags.java | 4 +- .../client/apis/paths/Petpetid.java | 12 +- .../apis/paths/Petpetiduploadimage.java | 4 +- .../client/apis/paths/Solidus.java | 4 +- .../client/apis/paths/Storeinventory.java | 4 +- .../client/apis/paths/Storeorder.java | 4 +- .../client/apis/paths/Storeorderorderid.java | 8 +- .../client/apis/paths/User.java | 4 +- .../apis/paths/Usercreatewitharray.java | 4 +- .../client/apis/paths/Usercreatewithlist.java | 4 +- .../client/apis/paths/Userlogin.java | 4 +- .../client/apis/paths/Userlogout.java | 4 +- .../client/apis/paths/Userusername.java | 12 +- .../client/apis/tags/Anotherfake.java | 4 +- .../client/apis/tags/Default.java | 4 +- .../client/apis/tags/Fake.java | 172 ++++----- .../apis/tags/Fakeclassnametags123.java | 4 +- .../client/apis/tags/Pet.java | 36 +- .../client/apis/tags/Store.java | 16 +- .../client/apis/tags/User.java | 32 +- ...{Patch.java => AnotherfakedummyPatch.java} | 60 +-- ...lete.java => CommonparamsubdirDelete.java} | 66 ++-- .../{Get.java => CommonparamsubdirGet.java} | 66 ++-- .../{Post.java => CommonparamsubdirPost.java} | 66 ++-- .../fake/{Delete.java => FakeDelete.java} | 88 ++--- .../paths/fake/{Get.java => FakeGet.java} | 60 +-- .../paths/fake/{Patch.java => FakePatch.java} | 60 +-- .../paths/fake/{Post.java => FakePost.java} | 54 +-- ...itionalpropertieswitharrayofenumsGet.java} | 48 +-- ...ut.java => FakebodywithfileschemaPut.java} | 60 +-- ...t.java => FakebodywithqueryparamsPut.java} | 82 ++-- ...t.java => FakecasesensitiveparamsPut.java} | 60 +-- ...Patch.java => FakeclassnametestPatch.java} | 66 ++-- ...ete.java => FakedeletecoffeeidDelete.java} | 60 +-- .../{Get.java => FakehealthGet.java} | 42 +-- ...> FakeinlineadditionalpropertiesPost.java} | 60 +-- ...st.java => FakeinlinecompositionPost.java} | 54 +-- .../{Get.java => FakejsonformdataGet.java} | 48 +-- .../{Patch.java => FakejsonpatchPatch.java} | 48 +-- ...Post.java => FakejsonwithcharsetPost.java} | 48 +-- ...emultiplerequestbodycontenttypesPost.java} | 48 +-- ...ava => FakemultipleresponsebodiesGet.java} | 42 +-- ...et.java => FakemultiplesecuritiesGet.java} | 48 +-- .../{Get.java => FakeobjinqueryGet.java} | 48 +-- ...keparametercollisions1ababselfabPost.java} | 84 ++--- .../{Get.java => FakepemcontenttypeGet.java} | 48 +-- ...petiduploadimagewithrequiredfilePost.java} | 72 ++-- ...FakequeryparamwithjsoncontenttypeGet.java} | 60 +-- .../{Get.java => FakeredirectionGet.java} | 42 +-- .../{Get.java => FakerefobjinqueryGet.java} | 48 +-- ...{Post.java => FakerefsarraymodelPost.java} | 48 +-- ...ost.java => FakerefsarrayofenumsPost.java} | 48 +-- .../{Post.java => FakerefsbooleanPost.java} | 48 +-- ...mposedoneofnumberwithvalidationsPost.java} | 48 +-- .../{Post.java => FakerefsenumPost.java} | 48 +-- .../{Post.java => FakerefsmammalPost.java} | 60 +-- .../{Post.java => FakerefsnumberPost.java} | 48 +-- ... FakerefsobjectmodelwithrefpropsPost.java} | 48 +-- .../{Post.java => FakerefsstringPost.java} | 48 +-- ...java => FakeresponsewithoutschemaGet.java} | 42 +-- ...ut.java => FaketestqueryparamtersPut.java} | 60 +-- ...t.java => FakeuploaddownloadfilePost.java} | 60 +-- .../{Post.java => FakeuploadfilePost.java} | 48 +-- .../{Post.java => FakeuploadfilesPost.java} | 48 +-- ...Get.java => FakewildcardresponsesGet.java} | 42 +-- .../paths/foo/{Get.java => FooGet.java} | 45 +-- .../paths/pet/{Post.java => PetPost.java} | 66 ++-- .../paths/pet/{Put.java => PetPut.java} | 66 ++-- .../{Get.java => PetfindbystatusGet.java} | 66 ++-- .../{Get.java => PetfindbytagsGet.java} | 66 ++-- .../{Delete.java => PetpetidDelete.java} | 72 ++-- .../petpetid/{Get.java => PetpetidGet.java} | 66 ++-- .../petpetid/{Post.java => PetpetidPost.java} | 72 ++-- ...Post.java => PetpetiduploadimagePost.java} | 72 ++-- .../solidus/{Get.java => SolidusGet.java} | 42 +-- .../{Get.java => StoreinventoryGet.java} | 48 +-- .../{Post.java => StoreorderPost.java} | 60 +-- ...lete.java => StoreorderorderidDelete.java} | 60 +-- .../{Get.java => StoreorderorderidGet.java} | 60 +-- .../paths/user/{Post.java => UserPost.java} | 60 +-- ...Post.java => UsercreatewitharrayPost.java} | 60 +-- ...{Post.java => UsercreatewithlistPost.java} | 60 +-- .../userlogin/{Get.java => UserloginGet.java} | 60 +-- .../{Get.java => UserlogoutGet.java} | 42 +-- .../{Delete.java => UserusernameDelete.java} | 60 +-- .../{Get.java => UserusernameGet.java} | 60 +-- .../{Put.java => UserusernamePut.java} | 82 ++-- .../DefaultGeneratorRunner.java | 5 + .../codegen/generators/DefaultGenerator.java | 29 +- .../codegen/generators/Generator.java | 3 + .../generators/JavaClientGenerator.java | 18 +- .../openapimodels/CodegenKeyType.java | 10 + .../generators/openapimodels/CodegenList.java | 4 +- .../main/java/packagename/apis/tags/Api.hbs | 8 +- .../packagename/paths/path/verb/Operation.hbs | 2 + 214 files changed, 3426 insertions(+), 4031 deletions(-) rename samples/client/petstore/java/docs/paths/anotherfakedummy/{Patch.md => AnotherfakedummyPatch.md} (84%) rename samples/client/petstore/java/docs/paths/commonparamsubdir/{Delete.md => CommonparamsubdirDelete.md} (84%) rename samples/client/petstore/java/docs/paths/commonparamsubdir/{Get.md => CommonparamsubdirGet.md} (84%) rename samples/client/petstore/java/docs/paths/commonparamsubdir/{Post.md => CommonparamsubdirPost.md} (84%) delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md rename samples/client/petstore/java/docs/paths/fake/{Delete.md => FakeDelete.md} (90%) rename samples/client/petstore/java/docs/paths/fake/{Get.md => FakeGet.md} (88%) rename samples/client/petstore/java/docs/paths/fake/{Patch.md => FakePatch.md} (86%) rename samples/client/petstore/java/docs/paths/fake/{Post.md => FakePost.md} (89%) rename samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/{Get.md => FakeadditionalpropertieswitharrayofenumsGet.md} (78%) rename samples/client/petstore/java/docs/paths/fakebodywithfileschema/{Put.md => FakebodywithfileschemaPut.md} (81%) rename samples/client/petstore/java/docs/paths/fakebodywithqueryparams/{Put.md => FakebodywithqueryparamsPut.md} (85%) rename samples/client/petstore/java/docs/paths/fakecasesensitiveparams/{Put.md => FakecasesensitiveparamsPut.md} (82%) rename samples/client/petstore/java/docs/paths/fakeclassnametest/{Patch.md => FakeclassnametestPatch.md} (86%) rename samples/client/petstore/java/docs/paths/fakedeletecoffeeid/{Delete.md => FakedeletecoffeeidDelete.md} (83%) rename samples/client/petstore/java/docs/paths/fakehealth/{Get.md => FakehealthGet.md} (84%) rename samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/{Post.md => FakeinlineadditionalpropertiesPost.md} (79%) rename samples/client/petstore/java/docs/paths/fakeinlinecomposition/{Post.md => FakeinlinecompositionPost.md} (84%) rename samples/client/petstore/java/docs/paths/fakejsonformdata/{Get.md => FakejsonformdataGet.md} (84%) rename samples/client/petstore/java/docs/paths/fakejsonpatch/{Patch.md => FakejsonpatchPatch.md} (83%) rename samples/client/petstore/java/docs/paths/fakejsonwithcharset/{Post.md => FakejsonwithcharsetPost.md} (83%) rename samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/{Post.md => FakemultiplerequestbodycontenttypesPost.md} (79%) rename samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/{Get.md => FakemultipleresponsebodiesGet.md} (81%) rename samples/client/petstore/java/docs/paths/fakemultiplesecurities/{Get.md => FakemultiplesecuritiesGet.md} (85%) rename samples/client/petstore/java/docs/paths/fakeobjinquery/{Get.md => FakeobjinqueryGet.md} (83%) rename samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/{Post.md => Fakeparametercollisions1ababselfabPost.md} (84%) rename samples/client/petstore/java/docs/paths/fakepemcontenttype/{Get.md => FakepemcontenttypeGet.md} (84%) rename samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/{Post.md => FakepetiduploadimagewithrequiredfilePost.md} (83%) rename samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/{Get.md => FakequeryparamwithjsoncontenttypeGet.md} (80%) rename samples/client/petstore/java/docs/paths/fakeredirection/{Get.md => FakeredirectionGet.md} (82%) rename samples/client/petstore/java/docs/paths/fakerefobjinquery/{Get.md => FakerefobjinqueryGet.md} (83%) rename samples/client/petstore/java/docs/paths/fakerefsarraymodel/{Post.md => FakerefsarraymodelPost.md} (83%) rename samples/client/petstore/java/docs/paths/fakerefsarrayofenums/{Post.md => FakerefsarrayofenumsPost.md} (83%) rename samples/client/petstore/java/docs/paths/fakerefsboolean/{Post.md => FakerefsbooleanPost.md} (83%) rename samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/{Post.md => FakerefscomposedoneofnumberwithvalidationsPost.md} (78%) rename samples/client/petstore/java/docs/paths/fakerefsenum/{Post.md => FakerefsenumPost.md} (84%) rename samples/client/petstore/java/docs/paths/fakerefsmammal/{Post.md => FakerefsmammalPost.md} (82%) rename samples/client/petstore/java/docs/paths/fakerefsnumber/{Post.md => FakerefsnumberPost.md} (84%) rename samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/{Post.md => FakerefsobjectmodelwithrefpropsPost.md} (80%) rename samples/client/petstore/java/docs/paths/fakerefsstring/{Post.md => FakerefsstringPost.md} (84%) rename samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/{Get.md => FakeresponsewithoutschemaGet.md} (80%) rename samples/client/petstore/java/docs/paths/faketestqueryparamters/{Put.md => FaketestqueryparamtersPut.md} (83%) rename samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/{Post.md => FakeuploaddownloadfilePost.md} (81%) rename samples/client/petstore/java/docs/paths/fakeuploadfile/{Post.md => FakeuploadfilePost.md} (84%) rename samples/client/petstore/java/docs/paths/fakeuploadfiles/{Post.md => FakeuploadfilesPost.md} (83%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/{Get.md => FakewildcardresponsesGet.md} (85%) rename samples/client/petstore/java/docs/paths/foo/{Get.md => FooGet.md} (86%) rename samples/client/petstore/java/docs/paths/pet/{Post.md => PetPost.md} (89%) rename samples/client/petstore/java/docs/paths/pet/{Put.md => PetPut.md} (90%) rename samples/client/petstore/java/docs/paths/petfindbystatus/{Get.md => PetfindbystatusGet.md} (87%) delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetServerInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer0.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer1.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/server1/Variables.md rename samples/client/petstore/java/docs/paths/petfindbytags/{Get.md => PetfindbytagsGet.md} (86%) rename samples/client/petstore/java/docs/paths/petpetid/{Delete.md => PetpetidDelete.md} (87%) rename samples/client/petstore/java/docs/paths/petpetid/{Get.md => PetpetidGet.md} (88%) rename samples/client/petstore/java/docs/paths/petpetid/{Post.md => PetpetidPost.md} (88%) rename samples/client/petstore/java/docs/paths/petpetiduploadimage/{Post.md => PetpetiduploadimagePost.md} (86%) rename samples/client/petstore/java/docs/paths/solidus/{Get.md => SolidusGet.md} (84%) rename samples/client/petstore/java/docs/paths/storeinventory/{Get.md => StoreinventoryGet.md} (85%) rename samples/client/petstore/java/docs/paths/storeorder/{Post.md => StoreorderPost.md} (84%) rename samples/client/petstore/java/docs/paths/storeorderorderid/{Delete.md => StoreorderorderidDelete.md} (83%) rename samples/client/petstore/java/docs/paths/storeorderorderid/{Get.md => StoreorderorderidGet.md} (85%) rename samples/client/petstore/java/docs/paths/user/{Post.md => UserPost.md} (85%) rename samples/client/petstore/java/docs/paths/usercreatewitharray/{Post.md => UsercreatewitharrayPost.md} (85%) rename samples/client/petstore/java/docs/paths/usercreatewithlist/{Post.md => UsercreatewithlistPost.md} (86%) rename samples/client/petstore/java/docs/paths/userlogin/{Get.md => UserloginGet.md} (86%) delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/Schema200Schema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/Schema200Schema.md rename samples/client/petstore/java/docs/paths/userlogout/{Get.md => UserlogoutGet.md} (83%) rename samples/client/petstore/java/docs/paths/userusername/{Delete.md => UserusernameDelete.md} (84%) rename samples/client/petstore/java/docs/paths/userusername/{Get.md => UserusernameGet.md} (85%) rename samples/client/petstore/java/docs/paths/userusername/{Put.md => UserusernamePut.md} (87%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/{Patch.java => AnotherfakedummyPatch.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/{Delete.java => CommonparamsubdirDelete.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/{Get.java => CommonparamsubdirGet.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/{Post.java => CommonparamsubdirPost.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/{Delete.java => FakeDelete.java} (75%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/{Get.java => FakeGet.java} (77%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/{Patch.java => FakePatch.java} (72%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/{Post.java => FakePost.java} (75%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/{Get.java => FakeadditionalpropertieswitharrayofenumsGet.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/{Put.java => FakebodywithfileschemaPut.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/{Put.java => FakebodywithqueryparamsPut.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/{Put.java => FakecasesensitiveparamsPut.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/{Patch.java => FakeclassnametestPatch.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/{Delete.java => FakedeletecoffeeidDelete.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/{Get.java => FakehealthGet.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/{Post.java => FakeinlineadditionalpropertiesPost.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/{Post.java => FakeinlinecompositionPost.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/{Get.java => FakejsonformdataGet.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/{Patch.java => FakejsonpatchPatch.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/{Post.java => FakejsonwithcharsetPost.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/{Post.java => FakemultiplerequestbodycontenttypesPost.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/{Get.java => FakemultipleresponsebodiesGet.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/{Get.java => FakemultiplesecuritiesGet.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/{Get.java => FakeobjinqueryGet.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/{Post.java => Fakeparametercollisions1ababselfabPost.java} (72%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/{Get.java => FakepemcontenttypeGet.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/{Post.java => FakepetiduploadimagewithrequiredfilePost.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/{Get.java => FakequeryparamwithjsoncontenttypeGet.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/{Get.java => FakeredirectionGet.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/{Get.java => FakerefobjinqueryGet.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/{Post.java => FakerefsarraymodelPost.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/{Post.java => FakerefsarrayofenumsPost.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/{Post.java => FakerefsbooleanPost.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/{Post.java => FakerefscomposedoneofnumberwithvalidationsPost.java} (65%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/{Post.java => FakerefsenumPost.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/{Post.java => FakerefsmammalPost.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/{Post.java => FakerefsnumberPost.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/{Post.java => FakerefsobjectmodelwithrefpropsPost.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/{Post.java => FakerefsstringPost.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/{Get.java => FakeresponsewithoutschemaGet.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/{Put.java => FaketestqueryparamtersPut.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/{Post.java => FakeuploaddownloadfilePost.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/{Post.java => FakeuploadfilePost.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/{Post.java => FakeuploadfilesPost.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/{Get.java => FakewildcardresponsesGet.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/{Get.java => FooGet.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/{Post.java => PetPost.java} (75%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/{Put.java => PetPut.java} (75%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/{Get.java => PetfindbystatusGet.java} (72%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/{Get.java => PetfindbytagsGet.java} (72%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/{Delete.java => PetpetidDelete.java} (76%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/{Get.java => PetpetidGet.java} (73%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/{Post.java => PetpetidPost.java} (76%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/{Post.java => PetpetiduploadimagePost.java} (73%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/{Get.java => SolidusGet.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/{Get.java => StoreinventoryGet.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/{Post.java => StoreorderPost.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/{Delete.java => StoreorderorderidDelete.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/{Get.java => StoreorderorderidGet.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/{Post.java => UserPost.java} (72%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/{Post.java => UsercreatewitharrayPost.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/{Post.java => UsercreatewithlistPost.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/{Get.java => UserloginGet.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/{Get.java => UserlogoutGet.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/{Delete.java => UserusernameDelete.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/{Get.java => UserusernameGet.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/{Put.java => UserusernamePut.java} (70%) create mode 100644 src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 8a35888377e..c2b6854bfc1 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -190,14 +190,14 @@ docs/components/securityschemes/HttpBasicTest.md docs/components/securityschemes/HttpSignatureTest.md docs/components/securityschemes/OpenIdConnectTest.md docs/components/securityschemes/PetstoreAuth.md -docs/paths/anotherfakedummy/Patch.md +docs/paths/anotherfakedummy/AnotherfakedummyPatch.md docs/paths/anotherfakedummy/patch/RequestBody.md docs/paths/anotherfakedummy/patch/Responses.md docs/paths/anotherfakedummy/patch/responses/Code200Response.md docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/commonparamsubdir/Delete.md -docs/paths/commonparamsubdir/Get.md -docs/paths/commonparamsubdir/Post.md +docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +docs/paths/commonparamsubdir/CommonparamsubdirGet.md +docs/paths/commonparamsubdir/CommonparamsubdirPost.md docs/paths/commonparamsubdir/delete/HeaderParameters.md docs/paths/commonparamsubdir/delete/PathParameters.md docs/paths/commonparamsubdir/delete/Responses.md @@ -215,10 +215,10 @@ docs/paths/commonparamsubdir/post/PathParameters.md docs/paths/commonparamsubdir/post/Responses.md docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md docs/paths/commonparamsubdir/post/responses/Code200Response.md -docs/paths/fake/Delete.md -docs/paths/fake/Get.md -docs/paths/fake/Patch.md -docs/paths/fake/Post.md +docs/paths/fake/FakeDelete.md +docs/paths/fake/FakeGet.md +docs/paths/fake/FakePatch.md +docs/paths/fake/FakePost.md docs/paths/fake/delete/FakeDeleteSecurityInfo.md docs/paths/fake/delete/HeaderParameters.md docs/paths/fake/delete/QueryParameters.md @@ -256,54 +256,54 @@ docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/Applicati docs/paths/fake/post/responses/Code200Response.md docs/paths/fake/post/responses/Code404Response.md docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md -docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md +docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakebodywithfileschema/Put.md +docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md docs/paths/fakebodywithfileschema/put/RequestBody.md docs/paths/fakebodywithfileschema/put/Responses.md docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithfileschema/put/responses/Code200Response.md -docs/paths/fakebodywithqueryparams/Put.md +docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md docs/paths/fakebodywithqueryparams/put/QueryParameters.md docs/paths/fakebodywithqueryparams/put/RequestBody.md docs/paths/fakebodywithqueryparams/put/Responses.md docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithqueryparams/put/responses/Code200Response.md -docs/paths/fakecasesensitiveparams/Put.md +docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md docs/paths/fakecasesensitiveparams/put/QueryParameters.md docs/paths/fakecasesensitiveparams/put/Responses.md docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md docs/paths/fakecasesensitiveparams/put/responses/Code200Response.md -docs/paths/fakeclassnametest/Patch.md +docs/paths/fakeclassnametest/FakeclassnametestPatch.md docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md docs/paths/fakeclassnametest/patch/RequestBody.md docs/paths/fakeclassnametest/patch/Responses.md docs/paths/fakeclassnametest/patch/responses/Code200Response.md docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md -docs/paths/fakedeletecoffeeid/Delete.md +docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md docs/paths/fakedeletecoffeeid/delete/PathParameters.md docs/paths/fakedeletecoffeeid/delete/Responses.md docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md docs/paths/fakedeletecoffeeid/delete/responses/Code200Response.md docs/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.md -docs/paths/fakehealth/Get.md +docs/paths/fakehealth/FakehealthGet.md docs/paths/fakehealth/get/Responses.md docs/paths/fakehealth/get/responses/Code200Response.md docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeinlineadditionalproperties/Post.md +docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md docs/paths/fakeinlineadditionalproperties/post/RequestBody.md docs/paths/fakeinlineadditionalproperties/post/Responses.md docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlineadditionalproperties/post/responses/Code200Response.md -docs/paths/fakeinlinecomposition/Post.md +docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md docs/paths/fakeinlinecomposition/post/QueryParameters.md docs/paths/fakeinlinecomposition/post/RequestBody.md docs/paths/fakeinlinecomposition/post/Responses.md @@ -314,36 +314,36 @@ docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/Mult docs/paths/fakeinlinecomposition/post/responses/Code200Response.md docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakejsonformdata/Get.md +docs/paths/fakejsonformdata/FakejsonformdataGet.md docs/paths/fakejsonformdata/get/RequestBody.md docs/paths/fakejsonformdata/get/Responses.md docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md docs/paths/fakejsonformdata/get/responses/Code200Response.md -docs/paths/fakejsonpatch/Patch.md +docs/paths/fakejsonpatch/FakejsonpatchPatch.md docs/paths/fakejsonpatch/patch/RequestBody.md docs/paths/fakejsonpatch/patch/Responses.md docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md docs/paths/fakejsonpatch/patch/responses/Code200Response.md -docs/paths/fakejsonwithcharset/Post.md +docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md docs/paths/fakejsonwithcharset/post/RequestBody.md docs/paths/fakejsonwithcharset/post/Responses.md docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md docs/paths/fakejsonwithcharset/post/responses/Code200Response.md docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md -docs/paths/fakemultiplerequestbodycontenttypes/Post.md +docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md docs/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.md docs/paths/fakemultiplerequestbodycontenttypes/post/Responses.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakemultipleresponsebodies/Get.md +docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md docs/paths/fakemultipleresponsebodies/get/Responses.md docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakemultiplesecurities/Get.md +docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md docs/paths/fakemultiplesecurities/get/Responses.md docs/paths/fakemultiplesecurities/get/responses/Code200Response.md @@ -351,12 +351,12 @@ docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicat docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md -docs/paths/fakeobjinquery/Get.md +docs/paths/fakeobjinquery/FakeobjinqueryGet.md docs/paths/fakeobjinquery/get/QueryParameters.md docs/paths/fakeobjinquery/get/Responses.md docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakeobjinquery/get/responses/Code200Response.md -docs/paths/fakeparametercollisions1ababselfab/Post.md +docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md @@ -385,13 +385,13 @@ docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9 docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakepemcontenttype/Get.md +docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md docs/paths/fakepemcontenttype/get/RequestBody.md docs/paths/fakepemcontenttype/get/Responses.md docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md docs/paths/fakepemcontenttype/get/responses/Code200Response.md docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md -docs/paths/fakepetiduploadimagewithrequiredfile/Post.md +docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md docs/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.md @@ -401,79 +401,79 @@ docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipa docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md -docs/paths/fakequeryparamwithjsoncontenttype/Get.md +docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md docs/paths/fakequeryparamwithjsoncontenttype/get/Responses.md docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeredirection/Get.md +docs/paths/fakeredirection/FakeredirectionGet.md docs/paths/fakeredirection/get/Responses.md docs/paths/fakeredirection/get/responses/Code303Response.md docs/paths/fakeredirection/get/responses/Code3XXResponse.md -docs/paths/fakerefobjinquery/Get.md +docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md docs/paths/fakerefobjinquery/get/QueryParameters.md docs/paths/fakerefobjinquery/get/Responses.md docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakerefobjinquery/get/responses/Code200Response.md -docs/paths/fakerefsarraymodel/Post.md +docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md docs/paths/fakerefsarraymodel/post/RequestBody.md docs/paths/fakerefsarraymodel/post/Responses.md docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarraymodel/post/responses/Code200Response.md docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsarrayofenums/Post.md +docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md docs/paths/fakerefsarrayofenums/post/RequestBody.md docs/paths/fakerefsarrayofenums/post/Responses.md docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsboolean/Post.md +docs/paths/fakerefsboolean/FakerefsbooleanPost.md docs/paths/fakerefsboolean/post/RequestBody.md docs/paths/fakerefsboolean/post/Responses.md docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsboolean/post/responses/Code200Response.md docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefscomposedoneofnumberwithvalidations/Post.md +docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsenum/Post.md +docs/paths/fakerefsenum/FakerefsenumPost.md docs/paths/fakerefsenum/post/RequestBody.md docs/paths/fakerefsenum/post/Responses.md docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsenum/post/responses/Code200Response.md docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsmammal/Post.md +docs/paths/fakerefsmammal/FakerefsmammalPost.md docs/paths/fakerefsmammal/post/RequestBody.md docs/paths/fakerefsmammal/post/Responses.md docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsmammal/post/responses/Code200Response.md docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsnumber/Post.md +docs/paths/fakerefsnumber/FakerefsnumberPost.md docs/paths/fakerefsnumber/post/RequestBody.md docs/paths/fakerefsnumber/post/Responses.md docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsnumber/post/responses/Code200Response.md docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsobjectmodelwithrefprops/Post.md +docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md docs/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.md docs/paths/fakerefsobjectmodelwithrefprops/post/Responses.md docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsstring/Post.md +docs/paths/fakerefsstring/FakerefsstringPost.md docs/paths/fakerefsstring/post/RequestBody.md docs/paths/fakerefsstring/post/Responses.md docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsstring/post/responses/Code200Response.md docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeresponsewithoutschema/Get.md +docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md docs/paths/fakeresponsewithoutschema/get/Responses.md docs/paths/fakeresponsewithoutschema/get/responses/Code200Response.md -docs/paths/faketestqueryparamters/Put.md +docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md docs/paths/faketestqueryparamters/put/QueryParameters.md docs/paths/faketestqueryparamters/put/Responses.md docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md @@ -483,25 +483,25 @@ docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md docs/paths/faketestqueryparamters/put/responses/Code200Response.md -docs/paths/fakeuploaddownloadfile/Post.md +docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md docs/paths/fakeuploaddownloadfile/post/RequestBody.md docs/paths/fakeuploaddownloadfile/post/Responses.md docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md -docs/paths/fakeuploadfile/Post.md +docs/paths/fakeuploadfile/FakeuploadfilePost.md docs/paths/fakeuploadfile/post/RequestBody.md docs/paths/fakeuploadfile/post/Responses.md docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakeuploadfile/post/responses/Code200Response.md docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeuploadfiles/Post.md +docs/paths/fakeuploadfiles/FakeuploadfilesPost.md docs/paths/fakeuploadfiles/post/RequestBody.md docs/paths/fakeuploadfiles/post/Responses.md docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakeuploadfiles/post/responses/Code200Response.md docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakewildcardresponses/Get.md +docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md docs/paths/fakewildcardresponses/get/Responses.md docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md docs/paths/fakewildcardresponses/get/responses/Code200Response.md @@ -515,7 +515,7 @@ docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicati docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md -docs/paths/foo/Get.md +docs/paths/foo/FooGet.md docs/paths/foo/get/FooGetServerInfo.md docs/paths/foo/get/Responses.md docs/paths/foo/get/responses/CodedefaultResponse.md @@ -523,8 +523,8 @@ docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/Applica docs/paths/foo/get/servers/FooGetServer0.md docs/paths/foo/get/servers/FooGetServer1.md docs/paths/foo/get/servers/server1/Variables.md -docs/paths/pet/Post.md -docs/paths/pet/Put.md +docs/paths/pet/PetPost.md +docs/paths/pet/PetPut.md docs/paths/pet/post/PetPostSecurityInfo.md docs/paths/pet/post/RequestBody.md docs/paths/pet/post/Responses.md @@ -541,7 +541,7 @@ docs/paths/pet/put/responses/Code404Response.md docs/paths/pet/put/responses/Code405Response.md docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md -docs/paths/petfindbystatus/Get.md +docs/paths/petfindbystatus/PetfindbystatusGet.md docs/paths/petfindbystatus/PetfindbystatusServerInfo.md docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md docs/paths/petfindbystatus/get/QueryParameters.md @@ -555,7 +555,7 @@ docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObj docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md docs/paths/petfindbystatus/servers/server1/Variables.md -docs/paths/petfindbytags/Get.md +docs/paths/petfindbytags/PetfindbytagsGet.md docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md docs/paths/petfindbytags/get/QueryParameters.md docs/paths/petfindbytags/get/Responses.md @@ -564,9 +564,9 @@ docs/paths/petfindbytags/get/responses/Code200Response.md docs/paths/petfindbytags/get/responses/Code400Response.md docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md -docs/paths/petpetid/Delete.md -docs/paths/petpetid/Get.md -docs/paths/petpetid/Post.md +docs/paths/petpetid/PetpetidDelete.md +docs/paths/petpetid/PetpetidGet.md +docs/paths/petpetid/PetpetidPost.md docs/paths/petpetid/delete/HeaderParameters.md docs/paths/petpetid/delete/PathParameters.md docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md @@ -595,7 +595,7 @@ docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/Appli docs/paths/petpetid/post/responses/Code405Response.md docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md -docs/paths/petpetiduploadimage/Post.md +docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md docs/paths/petpetiduploadimage/post/PathParameters.md docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md docs/paths/petpetiduploadimage/post/RequestBody.md @@ -604,15 +604,15 @@ docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/petpetiduploadimage/post/responses/Code200Response.md docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md -docs/paths/solidus/Get.md +docs/paths/solidus/SolidusGet.md docs/paths/solidus/get/Responses.md docs/paths/solidus/get/responses/Code200Response.md -docs/paths/storeinventory/Get.md +docs/paths/storeinventory/StoreinventoryGet.md docs/paths/storeinventory/get/Responses.md docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md docs/paths/storeinventory/get/responses/Code200Response.md docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md -docs/paths/storeorder/Post.md +docs/paths/storeorder/StoreorderPost.md docs/paths/storeorder/post/RequestBody.md docs/paths/storeorder/post/Responses.md docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -620,8 +620,8 @@ docs/paths/storeorder/post/responses/Code200Response.md docs/paths/storeorder/post/responses/Code400Response.md docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md -docs/paths/storeorderorderid/Delete.md -docs/paths/storeorderorderid/Get.md +docs/paths/storeorderorderid/StoreorderorderidDelete.md +docs/paths/storeorderorderid/StoreorderorderidGet.md docs/paths/storeorderorderid/delete/PathParameters.md docs/paths/storeorderorderid/delete/Responses.md docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md @@ -635,20 +635,20 @@ docs/paths/storeorderorderid/get/responses/Code400Response.md docs/paths/storeorderorderid/get/responses/Code404Response.md docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md -docs/paths/user/Post.md +docs/paths/user/UserPost.md docs/paths/user/post/RequestBody.md docs/paths/user/post/Responses.md docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/user/post/responses/CodedefaultResponse.md -docs/paths/usercreatewitharray/Post.md +docs/paths/usercreatewitharray/UsercreatewitharrayPost.md docs/paths/usercreatewitharray/post/RequestBody.md docs/paths/usercreatewitharray/post/Responses.md docs/paths/usercreatewitharray/post/responses/CodedefaultResponse.md -docs/paths/usercreatewithlist/Post.md +docs/paths/usercreatewithlist/UsercreatewithlistPost.md docs/paths/usercreatewithlist/post/RequestBody.md docs/paths/usercreatewithlist/post/Responses.md docs/paths/usercreatewithlist/post/responses/CodedefaultResponse.md -docs/paths/userlogin/Get.md +docs/paths/userlogin/UserloginGet.md docs/paths/userlogin/get/QueryParameters.md docs/paths/userlogin/get/Responses.md docs/paths/userlogin/get/parameters/parameter0/Schema0.md @@ -660,12 +660,12 @@ docs/paths/userlogin/get/responses/code200response/content/applicationjson/Appli docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md -docs/paths/userlogout/Get.md +docs/paths/userlogout/UserlogoutGet.md docs/paths/userlogout/get/Responses.md docs/paths/userlogout/get/responses/CodedefaultResponse.md -docs/paths/userusername/Delete.md -docs/paths/userusername/Get.md -docs/paths/userusername/Put.md +docs/paths/userusername/UserusernameDelete.md +docs/paths/userusername/UserusernameGet.md +docs/paths/userusername/UserusernamePut.md docs/paths/userusername/delete/PathParameters.md docs/paths/userusername/delete/Responses.md docs/paths/userusername/delete/responses/Code200Response.md @@ -1041,14 +1041,14 @@ src/main/java/org/openapijsonschematools/client/paths/Usercreatewithlist.java src/main/java/org/openapijsonschematools/client/paths/Userlogin.java src/main/java/org/openapijsonschematools/client/paths/Userlogout.java src/main/java/org/openapijsonschematools/client/paths/Userusername.java -src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java +src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/Responses.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Delete.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Get.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Post.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java @@ -1074,10 +1074,10 @@ src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Res src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java -src/main/java/org/openapijsonschematools/client/paths/fake/Get.java -src/main/java/org/openapijsonschematools/client/paths/fake/Patch.java -src/main/java/org/openapijsonschematools/client/paths/fake/Post.java +src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java +src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java +src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java +src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java @@ -1129,18 +1129,18 @@ src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/cont src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java -src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/Put.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/Put.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java @@ -1149,7 +1149,7 @@ src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/pu src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/Put.java +src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Responses.java @@ -1160,14 +1160,14 @@ src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/pu src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java +src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java -src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/Delete.java +src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Responses.java @@ -1175,16 +1175,16 @@ src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/ src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java -src/main/java/org/openapijsonschematools/client/paths/fakehealth/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java @@ -1198,36 +1198,36 @@ src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/Patch.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java @@ -1235,14 +1235,14 @@ src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java -src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java @@ -1291,13 +1291,13 @@ src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ab src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java @@ -1309,7 +1309,7 @@ src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithre src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java -src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Responses.java @@ -1317,75 +1317,75 @@ src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncont src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeredirection/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java -src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/Put.java +src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Responses.java @@ -1402,25 +1402,25 @@ src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/Post.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/Get.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java @@ -1434,7 +1434,7 @@ src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/ src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/foo/Get.java +src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java src/main/java/org/openapijsonschematools/client/paths/foo/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java @@ -1442,8 +1442,8 @@ src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefa 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/pet/Post.java -src/main/java/org/openapijsonschematools/client/paths/pet/Put.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/PetPostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/pet/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/pet/post/Responses.java @@ -1460,7 +1460,7 @@ src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404R src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java -src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/Get.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java @@ -1476,7 +1476,7 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/securi 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/petfindbytags/Get.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/PetfindbytagsGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java @@ -1487,9 +1487,9 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/response src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/Delete.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/Get.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/Post.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java @@ -1525,7 +1525,7 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/ src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java -src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/Post.java +src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java @@ -1536,15 +1536,15 @@ src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/p src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java -src/main/java/org/openapijsonschematools/client/paths/solidus/Get.java +src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java src/main/java/org/openapijsonschematools/client/paths/solidus/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/storeinventory/Get.java +src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java -src/main/java/org/openapijsonschematools/client/paths/storeorder/Post.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -1552,8 +1552,8 @@ src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/ src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Delete.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Get.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Responses.java @@ -1571,20 +1571,20 @@ src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/resp src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java -src/main/java/org/openapijsonschematools/client/paths/user/Post.java +src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/user/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/Post.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/Post.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/Get.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Responses.java @@ -1605,12 +1605,12 @@ src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/co src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XRateLimit.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java -src/main/java/org/openapijsonschematools/client/paths/userlogout/Get.java +src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java src/main/java/org/openapijsonschematools/client/paths/userlogout/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java -src/main/java/org/openapijsonschematools/client/paths/userusername/Delete.java -src/main/java/org/openapijsonschematools/client/paths/userusername/Get.java -src/main/java/org/openapijsonschematools/client/paths/userusername/Put.java +src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java +src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java +src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Responses.java diff --git a/samples/client/petstore/java/README.md b/samples/client/petstore/java/README.md index 74b5c37447f..7857eb12e47 100644 --- a/samples/client/petstore/java/README.md +++ b/samples/client/petstore/java/README.md @@ -311,73 +311,73 @@ All URIs are relative to the selected server | HTTP request | Method | Description | | ------------ | ------ | ----------- | -| / **get** | [Get1.get](docs/paths/solidus/Get.md#get1) | slash route | -| /another-fake/dummy **patch** | [Patch1.patch](docs/paths/anotherfakedummy/Patch.md#patch1) | To test special tags | -| /commonParam/{subDir}/ **delete** | [Delete1.delete](docs/paths/commonparamsubdir/Delete.md#delete1) | | -| /commonParam/{subDir}/ **get** | [Get1.get](docs/paths/commonparamsubdir/Get.md#get1) | | -| /commonParam/{subDir}/ **post** | [Post1.post](docs/paths/commonparamsubdir/Post.md#post1) | | -| /fake **delete** | [Delete1.delete](docs/paths/fake/Delete.md#delete1) | Fake endpoint to test group parameters (optional) | -| /fake **get** | [Get1.get](docs/paths/fake/Get.md#get1) | To test enum parameters | -| /fake **patch** | [Patch1.patch](docs/paths/fake/Patch.md#patch1) | To test "client" model | -| /fake **post** | [Post1.post](docs/paths/fake/Post.md#post1) | Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| -| /fake/additional-properties-with-array-of-enums **get** | [Get1.get](docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md#get1) | Additional Properties with Array of Enums | -| /fake/body-with-file-schema **put** | [Put1.put](docs/paths/fakebodywithfileschema/Put.md#put1) | | -| /fake/body-with-query-params **put** | [Put1.put](docs/paths/fakebodywithqueryparams/Put.md#put1) | | -| /fake/case-sensitive-params **put** | [Put1.put](docs/paths/fakecasesensitiveparams/Put.md#put1) | | -| /fake/deleteCoffee/{id} **delete** | [Delete1.delete](docs/paths/fakedeletecoffeeid/Delete.md#delete1) | Delete coffee | -| /fake/health **get** | [Get1.get](docs/paths/fakehealth/Get.md#get1) | Health check endpoint | -| /fake/inline-additionalProperties **post** | [Post1.post](docs/paths/fakeinlineadditionalproperties/Post.md#post1) | test inline additionalProperties | -| /fake/inlineComposition/ **post** | [Post1.post](docs/paths/fakeinlinecomposition/Post.md#post1) | testing composed schemas at inline locations | -| /fake/jsonFormData **get** | [Get1.get](docs/paths/fakejsonformdata/Get.md#get1) | test json serialization of form data | -| /fake/jsonPatch **patch** | [Patch1.patch](docs/paths/fakejsonpatch/Patch.md#patch1) | json patch | -| /fake/jsonWithCharset **post** | [Post1.post](docs/paths/fakejsonwithcharset/Post.md#post1) | json with charset tx and rx | -| /fake/multipleRequestBodyContentTypes/ **post** | [Post1.post](docs/paths/fakemultiplerequestbodycontenttypes/Post.md#post1) | testing composed schemas at inline locations | -| /fake/multipleResponseBodies **get** | [Get1.get](docs/paths/fakemultipleresponsebodies/Get.md#get1) | multiple responses have response bodies | -| /fake/multipleSecurities **get** | [Get1.get](docs/paths/fakemultiplesecurities/Get.md#get1) | multiple security requirements | -| /fake/objInQuery **get** | [Get1.get](docs/paths/fakeobjinquery/Get.md#get1) | user list | -| /fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/ **post** | [Post1.post](docs/paths/fakeparametercollisions1ababselfab/Post.md#post1) | parameter collision case | -| /fake/pemContentType **get** | [Get1.get](docs/paths/fakepemcontenttype/Get.md#get1) | route with tx and rx pem content type | -| /fake/queryParamWithJsonContentType **get** | [Get1.get](docs/paths/fakequeryparamwithjsoncontenttype/Get.md#get1) | query param with json content-type | -| /fake/redirection **get** | [Get1.get](docs/paths/fakeredirection/Get.md#get1) | operation with redirection responses | -| /fake/refObjInQuery **get** | [Get1.get](docs/paths/fakerefobjinquery/Get.md#get1) | user list | -| /fake/refs/array-of-enums **post** | [Post1.post](docs/paths/fakerefsarrayofenums/Post.md#post1) | Array of Enums | -| /fake/refs/arraymodel **post** | [Post1.post](docs/paths/fakerefsarraymodel/Post.md#post1) | | -| /fake/refs/boolean **post** | [Post1.post](docs/paths/fakerefsboolean/Post.md#post1) | | -| /fake/refs/composed_one_of_number_with_validations **post** | [Post1.post](docs/paths/fakerefscomposedoneofnumberwithvalidations/Post.md#post1) | | -| /fake/refs/enum **post** | [Post1.post](docs/paths/fakerefsenum/Post.md#post1) | | -| /fake/refs/mammal **post** | [Post1.post](docs/paths/fakerefsmammal/Post.md#post1) | | -| /fake/refs/number **post** | [Post1.post](docs/paths/fakerefsnumber/Post.md#post1) | | -| /fake/refs/object_model_with_ref_props **post** | [Post1.post](docs/paths/fakerefsobjectmodelwithrefprops/Post.md#post1) | | -| /fake/refs/string **post** | [Post1.post](docs/paths/fakerefsstring/Post.md#post1) | | -| /fake/responseWithoutSchema **get** | [Get1.get](docs/paths/fakeresponsewithoutschema/Get.md#get1) | receives a response without schema | -| /fake/test-query-paramters **put** | [Put1.put](docs/paths/faketestqueryparamters/Put.md#put1) | | -| /fake/uploadDownloadFile **post** | [Post1.post](docs/paths/fakeuploaddownloadfile/Post.md#post1) | uploads a file and downloads a file using application/octet-stream | -| /fake/uploadFile **post** | [Post1.post](docs/paths/fakeuploadfile/Post.md#post1) | uploads a file using multipart/form-data | -| /fake/uploadFiles **post** | [Post1.post](docs/paths/fakeuploadfiles/Post.md#post1) | uploads files using multipart/form-data | -| /fake/wildCardResponses **get** | [Get1.get](docs/paths/fakewildcardresponses/Get.md#get1) | operation with wildcard responses | -| /fake/{petId}/uploadImageWithRequiredFile **post** | [Post1.post](docs/paths/fakepetiduploadimagewithrequiredfile/Post.md#post1) | uploads an image (required) | -| /fake_classname_test **patch** | [Patch1.patch](docs/paths/fakeclassnametest/Patch.md#patch1) | To test class name in snake case | -| /foo **get** | [Get1.get](docs/paths/foo/Get.md#get1) | | -| /pet **post** | [Post1.post](docs/paths/pet/Post.md#post1) | Add a new pet to the store | -| /pet **put** | [Put1.put](docs/paths/pet/Put.md#put1) | Update an existing pet | -| /pet/findByStatus **get** | [Get1.get](docs/paths/petfindbystatus/Get.md#get1) | Finds Pets by status | -| /pet/findByTags **get** | [Get1.get](docs/paths/petfindbytags/Get.md#get1) | Finds Pets by tags | -| /pet/{petId} **delete** | [Delete1.delete](docs/paths/petpetid/Delete.md#delete1) | Deletes a pet | -| /pet/{petId} **get** | [Get1.get](docs/paths/petpetid/Get.md#get1) | Find pet by ID | -| /pet/{petId} **post** | [Post1.post](docs/paths/petpetid/Post.md#post1) | Updates a pet in the store with form data | -| /pet/{petId}/uploadImage **post** | [Post1.post](docs/paths/petpetiduploadimage/Post.md#post1) | uploads an image | -| /store/inventory **get** | [Get1.get](docs/paths/storeinventory/Get.md#get1) | Returns pet inventories by status | -| /store/order **post** | [Post1.post](docs/paths/storeorder/Post.md#post1) | Place an order for a pet | -| /store/order/{order_id} **delete** | [Delete1.delete](docs/paths/storeorderorderid/Delete.md#delete1) | Delete purchase order by ID | -| /store/order/{order_id} **get** | [Get1.get](docs/paths/storeorderorderid/Get.md#get1) | Find purchase order by ID | -| /user **post** | [Post1.post](docs/paths/user/Post.md#post1) | Create user | -| /user/createWithArray **post** | [Post1.post](docs/paths/usercreatewitharray/Post.md#post1) | Creates list of users with given input array | -| /user/createWithList **post** | [Post1.post](docs/paths/usercreatewithlist/Post.md#post1) | Creates list of users with given input array | -| /user/login **get** | [Get1.get](docs/paths/userlogin/Get.md#get1) | Logs user into the system | -| /user/logout **get** | [Get1.get](docs/paths/userlogout/Get.md#get1) | Logs out current logged in user session | -| /user/{username} **delete** | [Delete1.delete](docs/paths/userusername/Delete.md#delete1) | Delete user | -| /user/{username} **get** | [Get1.get](docs/paths/userusername/Get.md#get1) | Get user by user name | -| /user/{username} **put** | [Put1.put](docs/paths/userusername/Put.md#put1) | Updated user | +| / **get** | [SolidusGet1.get](docs/paths/solidus/SolidusGet.md#solidusget1) | slash route | +| /another-fake/dummy **patch** | [AnotherfakedummyPatch1.patch](docs/paths/anotherfakedummy/AnotherfakedummyPatch.md#anotherfakedummypatch1) | To test special tags | +| /commonParam/{subDir}/ **delete** | [CommonparamsubdirDelete1.delete](docs/paths/commonparamsubdir/CommonparamsubdirDelete.md#commonparamsubdirdelete1) | | +| /commonParam/{subDir}/ **get** | [CommonparamsubdirGet1.get](docs/paths/commonparamsubdir/CommonparamsubdirGet.md#commonparamsubdirget1) | | +| /commonParam/{subDir}/ **post** | [CommonparamsubdirPost1.post](docs/paths/commonparamsubdir/CommonparamsubdirPost.md#commonparamsubdirpost1) | | +| /fake **delete** | [FakeDelete1.delete](docs/paths/fake/FakeDelete.md#fakedelete1) | Fake endpoint to test group parameters (optional) | +| /fake **get** | [FakeGet1.get](docs/paths/fake/FakeGet.md#fakeget1) | To test enum parameters | +| /fake **patch** | [FakePatch1.patch](docs/paths/fake/FakePatch.md#fakepatch1) | To test "client" model | +| /fake **post** | [FakePost1.post](docs/paths/fake/FakePost.md#fakepost1) | Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| +| /fake/additional-properties-with-array-of-enums **get** | [FakeadditionalpropertieswitharrayofenumsGet1.get](docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#fakeadditionalpropertieswitharrayofenumsget1) | Additional Properties with Array of Enums | +| /fake/body-with-file-schema **put** | [FakebodywithfileschemaPut1.put](docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#fakebodywithfileschemaput1) | | +| /fake/body-with-query-params **put** | [FakebodywithqueryparamsPut1.put](docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#fakebodywithqueryparamsput1) | | +| /fake/case-sensitive-params **put** | [FakecasesensitiveparamsPut1.put](docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#fakecasesensitiveparamsput1) | | +| /fake/deleteCoffee/{id} **delete** | [FakedeletecoffeeidDelete1.delete](docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#fakedeletecoffeeiddelete1) | Delete coffee | +| /fake/health **get** | [FakehealthGet1.get](docs/paths/fakehealth/FakehealthGet.md#fakehealthget1) | Health check endpoint | +| /fake/inline-additionalProperties **post** | [FakeinlineadditionalpropertiesPost1.post](docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#fakeinlineadditionalpropertiespost1) | test inline additionalProperties | +| /fake/inlineComposition/ **post** | [FakeinlinecompositionPost1.post](docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md#fakeinlinecompositionpost1) | testing composed schemas at inline locations | +| /fake/jsonFormData **get** | [FakejsonformdataGet1.get](docs/paths/fakejsonformdata/FakejsonformdataGet.md#fakejsonformdataget1) | test json serialization of form data | +| /fake/jsonPatch **patch** | [FakejsonpatchPatch1.patch](docs/paths/fakejsonpatch/FakejsonpatchPatch.md#fakejsonpatchpatch1) | json patch | +| /fake/jsonWithCharset **post** | [FakejsonwithcharsetPost1.post](docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#fakejsonwithcharsetpost1) | json with charset tx and rx | +| /fake/multipleRequestBodyContentTypes/ **post** | [FakemultiplerequestbodycontenttypesPost1.post](docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#fakemultiplerequestbodycontenttypespost1) | testing composed schemas at inline locations | +| /fake/multipleResponseBodies **get** | [FakemultipleresponsebodiesGet1.get](docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#fakemultipleresponsebodiesget1) | multiple responses have response bodies | +| /fake/multipleSecurities **get** | [FakemultiplesecuritiesGet1.get](docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#fakemultiplesecuritiesget1) | multiple security requirements | +| /fake/objInQuery **get** | [FakeobjinqueryGet1.get](docs/paths/fakeobjinquery/FakeobjinqueryGet.md#fakeobjinqueryget1) | user list | +| /fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/ **post** | [Fakeparametercollisions1ababselfabPost1.post](docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#fakeparametercollisions1ababselfabpost1) | parameter collision case | +| /fake/pemContentType **get** | [FakepemcontenttypeGet1.get](docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md#fakepemcontenttypeget1) | route with tx and rx pem content type | +| /fake/queryParamWithJsonContentType **get** | [FakequeryparamwithjsoncontenttypeGet1.get](docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#fakequeryparamwithjsoncontenttypeget1) | query param with json content-type | +| /fake/redirection **get** | [FakeredirectionGet1.get](docs/paths/fakeredirection/FakeredirectionGet.md#fakeredirectionget1) | operation with redirection responses | +| /fake/refObjInQuery **get** | [FakerefobjinqueryGet1.get](docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md#fakerefobjinqueryget1) | user list | +| /fake/refs/array-of-enums **post** | [FakerefsarrayofenumsPost1.post](docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#fakerefsarrayofenumspost1) | Array of Enums | +| /fake/refs/arraymodel **post** | [FakerefsarraymodelPost1.post](docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md#fakerefsarraymodelpost1) | | +| /fake/refs/boolean **post** | [FakerefsbooleanPost1.post](docs/paths/fakerefsboolean/FakerefsbooleanPost.md#fakerefsbooleanpost1) | | +| /fake/refs/composed_one_of_number_with_validations **post** | [FakerefscomposedoneofnumberwithvalidationsPost1.post](docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#fakerefscomposedoneofnumberwithvalidationspost1) | | +| /fake/refs/enum **post** | [FakerefsenumPost1.post](docs/paths/fakerefsenum/FakerefsenumPost.md#fakerefsenumpost1) | | +| /fake/refs/mammal **post** | [FakerefsmammalPost1.post](docs/paths/fakerefsmammal/FakerefsmammalPost.md#fakerefsmammalpost1) | | +| /fake/refs/number **post** | [FakerefsnumberPost1.post](docs/paths/fakerefsnumber/FakerefsnumberPost.md#fakerefsnumberpost1) | | +| /fake/refs/object_model_with_ref_props **post** | [FakerefsobjectmodelwithrefpropsPost1.post](docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#fakerefsobjectmodelwithrefpropspost1) | | +| /fake/refs/string **post** | [FakerefsstringPost1.post](docs/paths/fakerefsstring/FakerefsstringPost.md#fakerefsstringpost1) | | +| /fake/responseWithoutSchema **get** | [FakeresponsewithoutschemaGet1.get](docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#fakeresponsewithoutschemaget1) | receives a response without schema | +| /fake/test-query-paramters **put** | [FaketestqueryparamtersPut1.put](docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md#faketestqueryparamtersput1) | | +| /fake/uploadDownloadFile **post** | [FakeuploaddownloadfilePost1.post](docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#fakeuploaddownloadfilepost1) | uploads a file and downloads a file using application/octet-stream | +| /fake/uploadFile **post** | [FakeuploadfilePost1.post](docs/paths/fakeuploadfile/FakeuploadfilePost.md#fakeuploadfilepost1) | uploads a file using multipart/form-data | +| /fake/uploadFiles **post** | [FakeuploadfilesPost1.post](docs/paths/fakeuploadfiles/FakeuploadfilesPost.md#fakeuploadfilespost1) | uploads files using multipart/form-data | +| /fake/wildCardResponses **get** | [FakewildcardresponsesGet1.get](docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md#fakewildcardresponsesget1) | operation with wildcard responses | +| /fake/{petId}/uploadImageWithRequiredFile **post** | [FakepetiduploadimagewithrequiredfilePost1.post](docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#fakepetiduploadimagewithrequiredfilepost1) | uploads an image (required) | +| /fake_classname_test **patch** | [FakeclassnametestPatch1.patch](docs/paths/fakeclassnametest/FakeclassnametestPatch.md#fakeclassnametestpatch1) | To test class name in snake case | +| /foo **get** | [FooGet1.get](docs/paths/foo/FooGet.md#fooget1) | | +| /pet **post** | [PetPost1.post](docs/paths/pet/PetPost.md#petpost1) | Add a new pet to the store | +| /pet **put** | [PetPut1.put](docs/paths/pet/PetPut.md#petput1) | Update an existing pet | +| /pet/findByStatus **get** | [PetfindbystatusGet1.get](docs/paths/petfindbystatus/PetfindbystatusGet.md#petfindbystatusget1) | Finds Pets by status | +| /pet/findByTags **get** | [PetfindbytagsGet1.get](docs/paths/petfindbytags/PetfindbytagsGet.md#petfindbytagsget1) | Finds Pets by tags | +| /pet/{petId} **delete** | [PetpetidDelete1.delete](docs/paths/petpetid/PetpetidDelete.md#petpetiddelete1) | Deletes a pet | +| /pet/{petId} **get** | [PetpetidGet1.get](docs/paths/petpetid/PetpetidGet.md#petpetidget1) | Find pet by ID | +| /pet/{petId} **post** | [PetpetidPost1.post](docs/paths/petpetid/PetpetidPost.md#petpetidpost1) | Updates a pet in the store with form data | +| /pet/{petId}/uploadImage **post** | [PetpetiduploadimagePost1.post](docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md#petpetiduploadimagepost1) | uploads an image | +| /store/inventory **get** | [StoreinventoryGet1.get](docs/paths/storeinventory/StoreinventoryGet.md#storeinventoryget1) | Returns pet inventories by status | +| /store/order **post** | [StoreorderPost1.post](docs/paths/storeorder/StoreorderPost.md#storeorderpost1) | Place an order for a pet | +| /store/order/{order_id} **delete** | [StoreorderorderidDelete1.delete](docs/paths/storeorderorderid/StoreorderorderidDelete.md#storeorderorderiddelete1) | Delete purchase order by ID | +| /store/order/{order_id} **get** | [StoreorderorderidGet1.get](docs/paths/storeorderorderid/StoreorderorderidGet.md#storeorderorderidget1) | Find purchase order by ID | +| /user **post** | [UserPost1.post](docs/paths/user/UserPost.md#userpost1) | Create user | +| /user/createWithArray **post** | [UsercreatewitharrayPost1.post](docs/paths/usercreatewitharray/UsercreatewitharrayPost.md#usercreatewitharraypost1) | Creates list of users with given input array | +| /user/createWithList **post** | [UsercreatewithlistPost1.post](docs/paths/usercreatewithlist/UsercreatewithlistPost.md#usercreatewithlistpost1) | Creates list of users with given input array | +| /user/login **get** | [UserloginGet1.get](docs/paths/userlogin/UserloginGet.md#userloginget1) | Logs user into the system | +| /user/logout **get** | [UserlogoutGet1.get](docs/paths/userlogout/UserlogoutGet.md#userlogoutget1) | Logs out current logged in user session | +| /user/{username} **delete** | [UserusernameDelete1.delete](docs/paths/userusername/UserusernameDelete.md#userusernamedelete1) | Delete user | +| /user/{username} **get** | [UserusernameGet1.get](docs/paths/userusername/UserusernameGet.md#userusernameget1) | Get user by user name | +| /user/{username} **put** | [UserusernamePut1.put](docs/paths/userusername/UserusernamePut.md#userusernameput1) | Updated user | ## Component RequestBodies diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/Patch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md similarity index 84% rename from samples/client/petstore/java/docs/paths/anotherfakedummy/Patch.md rename to samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md index d191146247d..669e037a241 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/Patch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -1,6 +1,6 @@ -# Patch +# AnotherfakedummyPatch -public class Patch +public class AnotherfakedummyPatch A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Patch1](#patch1)
The class that has a patch 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 | [AnotherfakedummyPatch1](#anotherfakedummypatch1)
The class that has a patch method to call the endpoint | +| static class | [AnotherfakedummyPatchRequest](#anotherfakedummypatchrequest)
The final request inputs class | +| static class | [AnotherfakedummyPatchNullableRequest](#anotherfakedummypatchnullablerequest)
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 | -## Patch1 -public static class Patch1 extends ApiClient.ApiClient1 implements PatchOperation
+## AnotherfakedummyPatch1 +public static class AnotherfakedummyPatch1 extends ApiClient.ApiClient1 implements AnotherfakedummyPatchOperation
a class that allows one to call the endpoint using a method named patch @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.anotherfakedummy.Patch; +import org.openapijsonschematools.client.paths.anotherfakedummy.AnotherfakedummyPatch; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Patch.Patch1 apiClient = new Patch.Patch1(apiConfiguration, schemaConfiguration); +AnotherfakedummyPatch.AnotherfakedummyPatch1 apiClient = new AnotherfakedummyPatch.AnotherfakedummyPatch1(apiConfiguration, schemaConfiguration); Client1BoxedMap requestBodyPayload = @@ -108,15 +108,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| AnotherfakedummyPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/anotherfakedummy/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | +| [Responses.EndpointResponse](../../paths/anotherfakedummy/patch/Responses.md#endpointresponse) | patch([AnotherfakedummyPatchRequest](#anotherfakedummypatchrequest) request) | -## PatchRequest -public static class PatchRequest
+## AnotherfakedummyPatchRequest +public static class AnotherfakedummyPatchRequest
a class that stores the final request inputs @@ -127,8 +127,8 @@ a class that stores the final request inputs | [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
+## AnotherfakedummyPatchNullableRequest +public static class AnotherfakedummyPatchNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | +| [AnotherfakedummyPatchRequest](#anotherfakedummypatchrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/Delete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md similarity index 84% rename from samples/client/petstore/java/docs/paths/commonparamsubdir/Delete.md rename to samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index 30991ce975e..90f06e44ad2 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/Delete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -1,6 +1,6 @@ -# Delete +# CommonparamsubdirDelete -public class Delete +public class CommonparamsubdirDelete A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Delete1](#delete1)
The class that has a delete 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 | [CommonparamsubdirDelete1](#commonparamsubdirdelete1)
The class that has a delete method to call the endpoint | +| static class | [CommonparamsubdirDeleteRequest](#commonparamsubdirdeleterequest)
The final request inputs class | +| static class | [CommonparamsubdirDeleteNullableRequest](#commonparamsubdirdeletenullablerequest)
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 | -## Delete1 -public static class Delete1 extends ApiClient.ApiClient1 implements DeleteOperation
+## CommonparamsubdirDelete1 +public static class CommonparamsubdirDelete1 extends ApiClient.ApiClient1 implements CommonparamsubdirDeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.Delete; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirDelete; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); +CommonparamsubdirDelete.CommonparamsubdirDelete1 apiClient = new CommonparamsubdirDelete.CommonparamsubdirDelete1(apiConfiguration, schemaConfiguration); // Map validation @@ -106,15 +106,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| CommonparamsubdirDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/commonparamsubdir/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | +| [Responses.EndpointResponse](../../paths/commonparamsubdir/delete/Responses.md#endpointresponse) | delete([CommonparamsubdirDeleteRequest](#commonparamsubdirdeleterequest) request) | -## DeleteRequest -public static class DeleteRequest
+## CommonparamsubdirDeleteRequest +public static class CommonparamsubdirDeleteRequest
a class that stores the final request inputs @@ -126,8 +126,8 @@ a class that stores the final request inputs | [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
+## CommonparamsubdirDeleteNullableRequest +public static class CommonparamsubdirDeleteNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [CommonparamsubdirDeleteRequest](#commonparamsubdirdeleterequest) | build()
Returns the request input used to call an endpoint method | | [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/delete/HeaderParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/Get.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md similarity index 84% rename from samples/client/petstore/java/docs/paths/commonparamsubdir/Get.md rename to samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index 0dd7f7129e0..47607104775 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/Get.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -1,6 +1,6 @@ -# Get +# CommonparamsubdirGet -public class Get +public class CommonparamsubdirGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get 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 | [CommonparamsubdirGet1](#commonparamsubdirget1)
The class that has a get method to call the endpoint | +| static class | [CommonparamsubdirGetRequest](#commonparamsubdirgetrequest)
The final request inputs class | +| static class | [CommonparamsubdirGetNullableRequest](#commonparamsubdirgetnullablerequest)
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 | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## CommonparamsubdirGet1 +public static class CommonparamsubdirGet1 extends ApiClient.ApiClient1 implements CommonparamsubdirGetOperation
a class that allows one to call the endpoint using a method named get @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.Get; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirGet; import org.openapijsonschematools.client.paths.commonparamsubdir.get.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +CommonparamsubdirGet.CommonparamsubdirGet1 apiClient = new CommonparamsubdirGet.CommonparamsubdirGet1(apiConfiguration, schemaConfiguration); // Map validation @@ -106,15 +106,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| CommonparamsubdirGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/commonparamsubdir/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/commonparamsubdir/get/Responses.md#endpointresponse) | get([CommonparamsubdirGetRequest](#commonparamsubdirgetrequest) request) | -## GetRequest -public static class GetRequest
+## CommonparamsubdirGetRequest +public static class CommonparamsubdirGetRequest
a class that stores the final request inputs @@ -126,8 +126,8 @@ a class that stores the final request inputs | [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
+## CommonparamsubdirGetNullableRequest +public static class CommonparamsubdirGetNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [CommonparamsubdirGetRequest](#commonparamsubdirgetrequest) | build()
Returns the request input used to call an endpoint method | | [Get0RequestBuilder](#get0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/commonparamsubdir/get/QueryParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/Post.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md similarity index 84% rename from samples/client/petstore/java/docs/paths/commonparamsubdir/Post.md rename to samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index 39c630ee0b4..f10f1315ef7 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/Post.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -1,6 +1,6 @@ -# Post +# CommonparamsubdirPost -public class Post +public class CommonparamsubdirPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [CommonparamsubdirPost1](#commonparamsubdirpost1)
The class that has a post method to call the endpoint | +| static class | [CommonparamsubdirPostRequest](#commonparamsubdirpostrequest)
The final request inputs class | +| static class | [CommonparamsubdirPostNullableRequest](#commonparamsubdirpostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## CommonparamsubdirPost1 +public static class CommonparamsubdirPost1 extends ApiClient.ApiClient1 implements CommonparamsubdirPostOperation
a class that allows one to call the endpoint using a method named post @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.Post; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirPost; import org.openapijsonschematools.client.paths.commonparamsubdir.post.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +CommonparamsubdirPost.CommonparamsubdirPost1 apiClient = new CommonparamsubdirPost.CommonparamsubdirPost1(apiConfiguration, schemaConfiguration); // Map validation @@ -106,15 +106,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| CommonparamsubdirPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/commonparamsubdir/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/commonparamsubdir/post/Responses.md#endpointresponse) | post([CommonparamsubdirPostRequest](#commonparamsubdirpostrequest) request) | -## PostRequest -public static class PostRequest
+## CommonparamsubdirPostRequest +public static class CommonparamsubdirPostRequest
a class that stores the final request inputs @@ -126,8 +126,8 @@ a class that stores the final request inputs | [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
+## CommonparamsubdirPostNullableRequest +public static class CommonparamsubdirPostNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [CommonparamsubdirPostRequest](#commonparamsubdirpostrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/post/HeaderParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md deleted file mode 100644 index a862a707c04..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/parameter0/PathParamSchema0.md +++ /dev/null @@ -1,96 +0,0 @@ -# PathParamSchema0 -public class PathParamSchema0
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParamSchema0.PathParamSchema01Boxed](#pathparamschema01boxed)
sealed interface for validated payloads | -| record | [PathParamSchema0.PathParamSchema01BoxedString](#pathparamschema01boxedstring)
boxed class to store validated String payloads | -| static class | [PathParamSchema0.PathParamSchema01](#pathparamschema01)
schema class | -| enum | [PathParamSchema0.StringPathParamSchemaEnums0](#stringpathparamschemaenums0)
String enum | - -## PathParamSchema01Boxed -public sealed interface PathParamSchema01Boxed
-permits
-[PathParamSchema01BoxedString](#pathparamschema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## PathParamSchema01BoxedString -public record PathParamSchema01BoxedString
-implements [PathParamSchema01Boxed](#pathparamschema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParamSchema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## PathParamSchema01 -public static class PathParamSchema01
-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.parameter0.PathParamSchema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// String validation -String validatedPayload = PathParamSchema0.PathParamSchema01.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([StringPathParamSchemaEnums0](#stringpathparamschemaenums0) arg, SchemaConfiguration configuration) | -| [PathParamSchema01BoxedString](#pathparamschema01boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [PathParamSchema01Boxed](#pathparamschema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringPathParamSchemaEnums0 -public enum StringPathParamSchemaEnums0
-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/fake/Delete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md similarity index 90% rename from samples/client/petstore/java/docs/paths/fake/Delete.md rename to samples/client/petstore/java/docs/paths/fake/FakeDelete.md index 38085cff27f..ac627bbf279 100644 --- a/samples/client/petstore/java/docs/paths/fake/Delete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -1,6 +1,6 @@ -# Delete +# FakeDelete -public class Delete +public class FakeDelete A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,16 +11,16 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Delete1](#delete1)
The class that has a delete 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 | [FakeDelete1](#fakedelete1)
The class that has a delete method to call the endpoint | +| static class | [FakeDeleteRequest](#fakedeleterequest)
The final request inputs class | +| static class | [FakeDeleteNullableRequest](#fakedeletenullablerequest)
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 | -## Delete1 -public static class Delete1 extends ApiClient.ApiClient1 implements DeleteOperation
+## FakeDelete1 +public static class FakeDelete1 extends ApiClient.ApiClient1 implements FakeDeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.BearerTest; import org.openapijsonschematools.client.paths.fake.delete.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fake.Delete; +import org.openapijsonschematools.client.paths.fake.FakeDelete; import org.openapijsonschematools.client.paths.fake.delete.Responses; import java.io.IOException; @@ -81,7 +81,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); +FakeDelete.FakeDelete1 apiClient = new FakeDelete.FakeDelete1(apiConfiguration, schemaConfiguration); // Map validation @@ -139,15 +139,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | +| [Responses.EndpointResponse](../../paths/fake/delete/Responses.md#endpointresponse) | delete([FakeDeleteRequest](#fakedeleterequest) request) | -## DeleteRequest -public static class DeleteRequest
+## FakeDeleteRequest +public static class FakeDeleteRequest
a class that stores the final request inputs @@ -160,8 +160,8 @@ a class that stores the final request inputs | [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
+## FakeDeleteNullableRequest +public static class FakeDeleteNullableRequest
a class that stores the initial request inputs @@ -187,7 +187,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [FakeDeleteRequest](#fakedeleterequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fake/Get.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md similarity index 88% rename from samples/client/petstore/java/docs/paths/fake/Get.md rename to samples/client/petstore/java/docs/paths/fake/FakeGet.md index ce06f4cdb92..eea11326b88 100644 --- a/samples/client/petstore/java/docs/paths/fake/Get.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -1,6 +1,6 @@ -# Get +# FakeGet -public class Get +public class FakeGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakeGet1](#fakeget1)
The class that has a get method to call the endpoint | +| static class | [FakeGetRequest](#fakegetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakeGet1 +public static class FakeGet1 extends ApiClient.ApiClient1 implements FakeGetOperation
a class that allows one to call the endpoint using a method named get @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.get.responses.Code200Response; import org.openapijsonschematools.client.paths.fake.get.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fake.Get; +import org.openapijsonschematools.client.paths.fake.FakeGet; import org.openapijsonschematools.client.paths.fake.get.Responses; import java.io.IOException; @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakeGet.FakeGet1 apiClient = new FakeGet.FakeGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -98,15 +98,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fake/get/Responses.md#endpointresponse) | get([FakeGetRequest](#fakegetrequest) request) | -## GetRequest -public static class GetRequest
+## FakeGetRequest +public static class FakeGetRequest
a class that stores the final request inputs @@ -132,7 +132,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeGetRequest](#fakegetrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fake/get/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/fake/get/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fake/get/QueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | diff --git a/samples/client/petstore/java/docs/paths/fake/Patch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md similarity index 86% rename from samples/client/petstore/java/docs/paths/fake/Patch.md rename to samples/client/petstore/java/docs/paths/fake/FakePatch.md index aacb0a78049..c24768087eb 100644 --- a/samples/client/petstore/java/docs/paths/fake/Patch.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -1,6 +1,6 @@ -# Patch +# FakePatch -public class Patch +public class FakePatch A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Patch1](#patch1)
The class that has a patch 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 | [FakePatch1](#fakepatch1)
The class that has a patch method to call the endpoint | +| static class | [FakePatchRequest](#fakepatchrequest)
The final request inputs class | +| static class | [FakePatchNullableRequest](#fakepatchnullablerequest)
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 | -## Patch1 -public static class Patch1 extends ApiClient.ApiClient1 implements PatchOperation
+## FakePatch1 +public static class FakePatch1 extends ApiClient.ApiClient1 implements FakePatchOperation
a class that allows one to call the endpoint using a method named patch @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.patch.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fake.Patch; +import org.openapijsonschematools.client.paths.fake.FakePatch; import org.openapijsonschematools.client.paths.fake.patch.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Patch.Patch1 apiClient = new Patch.Patch1(apiConfiguration, schemaConfiguration); +FakePatch.FakePatch1 apiClient = new FakePatch.FakePatch1(apiConfiguration, schemaConfiguration); Client1BoxedMap requestBodyPayload = @@ -108,15 +108,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakePatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | +| [Responses.EndpointResponse](../../paths/fake/patch/Responses.md#endpointresponse) | patch([FakePatchRequest](#fakepatchrequest) request) | -## PatchRequest -public static class PatchRequest
+## FakePatchRequest +public static class FakePatchRequest
a class that stores the final request inputs @@ -127,8 +127,8 @@ a class that stores the final request inputs | [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
+## FakePatchNullableRequest +public static class FakePatchNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | +| [FakePatchRequest](#fakepatchrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fake/Post.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md similarity index 89% rename from samples/client/petstore/java/docs/paths/fake/Post.md rename to samples/client/petstore/java/docs/paths/fake/FakePost.md index b85dee6e90e..f1b4b42e9ce 100644 --- a/samples/client/petstore/java/docs/paths/fake/Post.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -1,6 +1,6 @@ -# Post +# FakePost -public class Post +public class FakePost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakePost1](#fakepost1)
The class that has a post method to call the endpoint | +| static class | [FakePostRequest](#fakepostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakePost1 +public static class FakePost1 extends ApiClient.ApiClient1 implements FakePostOperation
a class that allows one to call the endpoint using a method named post @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpBasicTes import org.openapijsonschematools.client.paths.fake.post.responses.Code200Response; import org.openapijsonschematools.client.paths.fake.post.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fake.Post; +import org.openapijsonschematools.client.paths.fake.FakePost; import org.openapijsonschematools.client.paths.fake.post.Responses; import java.io.IOException; @@ -78,7 +78,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakePost.FakePost1 apiClient = new FakePost.FakePost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -108,15 +108,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fake/post/Responses.md#endpointresponse) | post([FakePostRequest](#fakepostrequest) request) | -## PostRequest -public static class PostRequest
+## FakePostRequest +public static class FakePostRequest
a class that stores the final request inputs @@ -141,7 +141,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakePostRequest](#fakepostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fake/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md similarity index 78% rename from samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md rename to samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md index 3e2e0cb0ac1..b3d249a16c6 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -1,6 +1,6 @@ -# Get +# FakeadditionalpropertieswitharrayofenumsGet -public class Get +public class FakeadditionalpropertieswitharrayofenumsGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakeadditionalpropertieswitharrayofenumsGet1](#fakeadditionalpropertieswitharrayofenumsget1)
The class that has a get method to call the endpoint | +| static class | [FakeadditionalpropertieswitharrayofenumsGetRequest](#fakeadditionalpropertieswitharrayofenumsgetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakeadditionalpropertieswitharrayofenumsGet1 +public static class FakeadditionalpropertieswitharrayofenumsGet1 extends ApiClient.ApiClient1 implements FakeadditionalpropertieswitharrayofenumsGetOperation
a class that allows one to call the endpoint using a method named get @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.Get; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.FakeadditionalpropertieswitharrayofenumsGet; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakeadditionalpropertieswitharrayofenumsGet.FakeadditionalpropertieswitharrayofenumsGet1 apiClient = new FakeadditionalpropertieswitharrayofenumsGet.FakeadditionalpropertieswitharrayofenumsGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeadditionalpropertieswitharrayofenumsGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md#endpointresponse) | get([FakeadditionalpropertieswitharrayofenumsGetRequest](#fakeadditionalpropertieswitharrayofenumsgetrequest) request) | -## GetRequest -public static class GetRequest
+## FakeadditionalpropertieswitharrayofenumsGetRequest +public static class FakeadditionalpropertieswitharrayofenumsGetRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeadditionalpropertieswitharrayofenumsGetRequest](#fakeadditionalpropertieswitharrayofenumsgetrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/Put.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md similarity index 81% rename from samples/client/petstore/java/docs/paths/fakebodywithfileschema/Put.md rename to samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md index 1f440144acf..aefd6c14d7d 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/Put.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -1,6 +1,6 @@ -# Put +# FakebodywithfileschemaPut -public class Put +public class FakebodywithfileschemaPut A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Put1](#put1)
The class that has a put 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 | [FakebodywithfileschemaPut1](#fakebodywithfileschemaput1)
The class that has a put method to call the endpoint | +| static class | [FakebodywithfileschemaPutRequest](#fakebodywithfileschemaputrequest)
The final request inputs class | +| static class | [FakebodywithfileschemaPutNullableRequest](#fakebodywithfileschemaputnullablerequest)
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 | -## Put1 -public static class Put1 extends ApiClient.ApiClient1 implements PutOperation
+## FakebodywithfileschemaPut1 +public static class FakebodywithfileschemaPut1 extends ApiClient.ApiClient1 implements FakebodywithfileschemaPutOperation
a class that allows one to call the endpoint using a method named put @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.Put; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.FakebodywithfileschemaPut; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); +FakebodywithfileschemaPut.FakebodywithfileschemaPut1 apiClient = new FakebodywithfileschemaPut.FakebodywithfileschemaPut1(apiConfiguration, schemaConfiguration); FileSchemaTestClass1BoxedMap requestBodyPayload = @@ -80,7 +80,7 @@ FileSchemaTestClass1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -Put.SealedRequestBody requestBody = new Put.ApplicationjsonRequestBody(requestBodyPayload); +FakebodywithfileschemaPut.SealedRequestBody requestBody = new FakebodywithfileschemaPut.ApplicationjsonRequestBody(requestBodyPayload); var request = new PutRequestBuilder() .requestBody(requestBody) @@ -108,15 +108,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakebodywithfileschemaPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakebodywithfileschema/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | +| [Responses.EndpointResponse](../../paths/fakebodywithfileschema/put/Responses.md#endpointresponse) | put([FakebodywithfileschemaPutRequest](#fakebodywithfileschemaputrequest) request) | -## PutRequest -public static class PutRequest
+## FakebodywithfileschemaPutRequest +public static class FakebodywithfileschemaPutRequest
a class that stores the final request inputs @@ -127,8 +127,8 @@ a class that stores the final request inputs | [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
+## FakebodywithfileschemaPutNullableRequest +public static class FakebodywithfileschemaPutNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [FakebodywithfileschemaPutRequest](#fakebodywithfileschemaputrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/Put.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md similarity index 85% rename from samples/client/petstore/java/docs/paths/fakebodywithqueryparams/Put.md rename to samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index b1bb899b5a5..75f248b4321 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/Put.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -1,6 +1,6 @@ -# Put +# FakebodywithqueryparamsPut -public class Put +public class FakebodywithqueryparamsPut A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,16 +11,16 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Put1](#put1)
The class that has a put 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 | [FakebodywithqueryparamsPut1](#fakebodywithqueryparamsput1)
The class that has a put method to call the endpoint | +| static class | [FakebodywithqueryparamsPutRequest](#fakebodywithqueryparamsputrequest)
The final request inputs class | +| static class | [FakebodywithqueryparamsPutNullableRequest](#fakebodywithqueryparamsputnullablerequest)
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 | -## Put1 -public static class Put1 extends ApiClient.ApiClient1 implements PutOperation
+## FakebodywithqueryparamsPut1 +public static class FakebodywithqueryparamsPut1 extends ApiClient.ApiClient1 implements FakebodywithqueryparamsPutOperation
a class that allows one to call the endpoint using a method named put @@ -44,7 +44,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.Put; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.FakebodywithqueryparamsPut; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Responses; import java.io.IOException; @@ -70,7 +70,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); +FakebodywithqueryparamsPut.FakebodywithqueryparamsPut1 apiClient = new FakebodywithqueryparamsPut.FakebodywithqueryparamsPut1(apiConfiguration, schemaConfiguration); User1BoxedMap requestBodyPayload = @@ -97,7 +97,7 @@ User1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -Put.SealedRequestBody requestBody = new Put.ApplicationjsonRequestBody(requestBodyPayload); +FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation QueryParameters.QueryParametersMap queryParameters = @@ -136,15 +136,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakebodywithqueryparamsPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakebodywithqueryparams/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | +| [Responses.EndpointResponse](../../paths/fakebodywithqueryparams/put/Responses.md#endpointresponse) | put([FakebodywithqueryparamsPutRequest](#fakebodywithqueryparamsputrequest) request) | -## PutRequest -public static class PutRequest
+## FakebodywithqueryparamsPutRequest +public static class FakebodywithqueryparamsPutRequest
a class that stores the final request inputs @@ -156,8 +156,8 @@ a class that stores the final request inputs | [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
+## FakebodywithqueryparamsPutNullableRequest +public static class FakebodywithqueryparamsPutNullableRequest
a class that stores the initial request inputs @@ -182,7 +182,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [FakebodywithqueryparamsPutRequest](#fakebodywithqueryparamsputrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/Put.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md similarity index 82% rename from samples/client/petstore/java/docs/paths/fakecasesensitiveparams/Put.md rename to samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index 7e8b7e8933a..a10d7d1b215 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/Put.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -1,6 +1,6 @@ -# Put +# FakecasesensitiveparamsPut -public class Put +public class FakecasesensitiveparamsPut A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Put1](#put1)
The class that has a put 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 | [FakecasesensitiveparamsPut1](#fakecasesensitiveparamsput1)
The class that has a put method to call the endpoint | +| static class | [FakecasesensitiveparamsPutRequest](#fakecasesensitiveparamsputrequest)
The final request inputs class | +| static class | [FakecasesensitiveparamsPutNullableRequest](#fakecasesensitiveparamsputnullablerequest)
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 | -## Put1 -public static class Put1 extends ApiClient.ApiClient1 implements PutOperation
+## FakecasesensitiveparamsPut1 +public static class FakecasesensitiveparamsPut1 extends ApiClient.ApiClient1 implements FakecasesensitiveparamsPutOperation
a class that allows one to call the endpoint using a method named put @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.Put; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.FakecasesensitiveparamsPut; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Responses; import java.io.IOException; @@ -66,7 +66,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); +FakecasesensitiveparamsPut.FakecasesensitiveparamsPut1 apiClient = new FakecasesensitiveparamsPut.FakecasesensitiveparamsPut1(apiConfiguration, schemaConfiguration); // Map validation @@ -109,15 +109,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakecasesensitiveparamsPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakecasesensitiveparams/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | +| [Responses.EndpointResponse](../../paths/fakecasesensitiveparams/put/Responses.md#endpointresponse) | put([FakecasesensitiveparamsPutRequest](#fakecasesensitiveparamsputrequest) request) | -## PutRequest -public static class PutRequest
+## FakecasesensitiveparamsPutRequest +public static class FakecasesensitiveparamsPutRequest
a class that stores the final request inputs @@ -128,8 +128,8 @@ a class that stores the final request inputs | [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
+## FakecasesensitiveparamsPutNullableRequest +public static class FakecasesensitiveparamsPutNullableRequest
a class that stores the initial request inputs @@ -153,7 +153,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [FakecasesensitiveparamsPutRequest](#fakecasesensitiveparamsputrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/Patch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md similarity index 86% rename from samples/client/petstore/java/docs/paths/fakeclassnametest/Patch.md rename to samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md index 4fec21e62e9..52f0272713e 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/Patch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -1,6 +1,6 @@ -# Patch +# FakeclassnametestPatch -public class Patch +public class FakeclassnametestPatch A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Patch1](#patch1)
The class that has a patch 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 | [FakeclassnametestPatch1](#fakeclassnametestpatch1)
The class that has a patch method to call the endpoint | +| static class | [FakeclassnametestPatchRequest](#fakeclassnametestpatchrequest)
The final request inputs class | +| static class | [FakeclassnametestPatchNullableRequest](#fakeclassnametestpatchnullablerequest)
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 | -## Patch1 -public static class Patch1 extends ApiClient.ApiClient1 implements PatchOperation
+## FakeclassnametestPatch1 +public static class FakeclassnametestPatch1 extends ApiClient.ApiClient1 implements FakeclassnametestPatchOperation
a class that allows one to call the endpoint using a method named patch @@ -44,7 +44,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeclassnametest.Patch; +import org.openapijsonschematools.client.paths.fakeclassnametest.FakeclassnametestPatch; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.Responses; import java.io.IOException; @@ -79,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Patch.Patch1 apiClient = new Patch.Patch1(apiConfiguration, schemaConfiguration); +FakeclassnametestPatch.FakeclassnametestPatch1 apiClient = new FakeclassnametestPatch.FakeclassnametestPatch1(apiConfiguration, schemaConfiguration); Client1BoxedMap requestBodyPayload = @@ -120,15 +120,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeclassnametestPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeclassnametest/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeclassnametest/patch/Responses.md#endpointresponse) | patch([FakeclassnametestPatchRequest](#fakeclassnametestpatchrequest) request) | -## PatchRequest -public static class PatchRequest
+## FakeclassnametestPatchRequest +public static class FakeclassnametestPatchRequest
a class that stores the final request inputs @@ -140,8 +140,8 @@ a class that stores the final request inputs | [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
+## FakeclassnametestPatchNullableRequest +public static class FakeclassnametestPatchNullableRequest
a class that stores the initial request inputs @@ -166,7 +166,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeclassnametestPatchRequest](#fakeclassnametestpatchrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/Delete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakedeletecoffeeid/Delete.md rename to samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index add571b8591..ae2e2507d6e 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/Delete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -1,6 +1,6 @@ -# Delete +# FakedeletecoffeeidDelete -public class Delete +public class FakedeletecoffeeidDelete A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Delete1](#delete1)
The class that has a delete 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 | [FakedeletecoffeeidDelete1](#fakedeletecoffeeiddelete1)
The class that has a delete method to call the endpoint | +| static class | [FakedeletecoffeeidDeleteRequest](#fakedeletecoffeeiddeleterequest)
The final request inputs class | +| static class | [FakedeletecoffeeidDeleteNullableRequest](#fakedeletecoffeeiddeletenullablerequest)
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 | -## Delete1 -public static class Delete1 extends ApiClient.ApiClient1 implements DeleteOperation
+## FakedeletecoffeeidDelete1 +public static class FakedeletecoffeeidDelete1 extends ApiClient.ApiClient1 implements FakedeletecoffeeidDeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.Code200Response; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.Delete; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.FakedeletecoffeeidDelete; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); +FakedeletecoffeeidDelete.FakedeletecoffeeidDelete1 apiClient = new FakedeletecoffeeidDelete.FakedeletecoffeeidDelete1(apiConfiguration, schemaConfiguration); // Map validation @@ -109,15 +109,15 @@ if (response instanceof Responses.EndpointCode200Response castResponse) { ### Constructor Summary | Constructor and Description | | --------------------------- | -| Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakedeletecoffeeidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | +| [Responses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/Responses.md#endpointresponse) | delete([FakedeletecoffeeidDeleteRequest](#fakedeletecoffeeiddeleterequest) request) | -## DeleteRequest -public static class DeleteRequest
+## FakedeletecoffeeidDeleteRequest +public static class FakedeletecoffeeidDeleteRequest
a class that stores the final request inputs @@ -128,8 +128,8 @@ a class that stores the final request inputs | [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
+## FakedeletecoffeeidDeleteNullableRequest +public static class FakedeletecoffeeidDeleteNullableRequest
a class that stores the initial request inputs @@ -153,7 +153,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [FakedeletecoffeeidDeleteRequest](#fakedeletecoffeeiddeleterequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakehealth/Get.md b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fakehealth/Get.md rename to samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md index 599ca6ae6c0..495d5e35f2b 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/Get.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md @@ -1,6 +1,6 @@ -# Get +# FakehealthGet -public class Get +public class FakehealthGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakehealthGet1](#fakehealthget1)
The class that has a get method to call the endpoint | +| static class | [FakehealthGetRequest](#fakehealthgetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakehealthGet1 +public static class FakehealthGet1 extends ApiClient.ApiClient1 implements FakehealthGetOperation
a class that allows one to call the endpoint using a method named get @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakehealth.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakehealth.Get; +import org.openapijsonschematools.client.paths.fakehealth.FakehealthGet; import org.openapijsonschematools.client.paths.fakehealth.get.Responses; import java.io.IOException; @@ -63,7 +63,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakehealthGet.FakehealthGet1 apiClient = new FakehealthGet.FakehealthGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -92,15 +92,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakehealthGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakehealth/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakehealth/get/Responses.md#endpointresponse) | get([FakehealthGetRequest](#fakehealthgetrequest) request) | -## GetRequest -public static class GetRequest
+## FakehealthGetRequest +public static class FakehealthGetRequest
a class that stores the final request inputs @@ -123,7 +123,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakehealthGetRequest](#fakehealthgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/Post.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/Post.md rename to samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md index 23787504db8..1ca73fb81c2 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -1,6 +1,6 @@ -# Post +# FakeinlineadditionalpropertiesPost -public class Post +public class FakeinlineadditionalpropertiesPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [FakeinlineadditionalpropertiesPost1](#fakeinlineadditionalpropertiespost1)
The class that has a post method to call the endpoint | +| static class | [FakeinlineadditionalpropertiesPostRequest](#fakeinlineadditionalpropertiespostrequest)
The final request inputs class | +| static class | [FakeinlineadditionalpropertiesPostNullableRequest](#fakeinlineadditionalpropertiespostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakeinlineadditionalpropertiesPost1 +public static class FakeinlineadditionalpropertiesPost1 extends ApiClient.ApiClient1 implements FakeinlineadditionalpropertiesPostOperation
a class that allows one to call the endpoint using a method named post @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.Post; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.FakeinlineadditionalpropertiesPost; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakeinlineadditionalpropertiesPost.FakeinlineadditionalpropertiesPost1 apiClient = new FakeinlineadditionalpropertiesPost.FakeinlineadditionalpropertiesPost1(apiConfiguration, schemaConfiguration); ApplicationjsonSchema1BoxedMap requestBodyPayload = @@ -78,7 +78,7 @@ ApplicationjsonSchema1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -Post.SealedRequestBody requestBody = new Post.ApplicationjsonRequestBody(requestBodyPayload); +FakeinlineadditionalpropertiesPost.SealedRequestBody requestBody = new FakeinlineadditionalpropertiesPost.ApplicationjsonRequestBody(requestBodyPayload); var request = new PostRequestBuilder() .requestBody(requestBody) @@ -106,15 +106,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeinlineadditionalpropertiesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/Responses.md#endpointresponse) | post([FakeinlineadditionalpropertiesPostRequest](#fakeinlineadditionalpropertiespostrequest) request) | -## PostRequest -public static class PostRequest
+## FakeinlineadditionalpropertiesPostRequest +public static class FakeinlineadditionalpropertiesPostRequest
a class that stores the final request inputs @@ -125,8 +125,8 @@ a class that stores the final request inputs | [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
+## FakeinlineadditionalpropertiesPostNullableRequest +public static class FakeinlineadditionalpropertiesPostNullableRequest
a class that stores the initial request inputs @@ -150,7 +150,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeinlineadditionalpropertiesPostRequest](#fakeinlineadditionalpropertiespostrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/Post.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fakeinlinecomposition/Post.md rename to samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index e2d3daaae41..dbe77cb9dd0 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -1,6 +1,6 @@ -# Post +# FakeinlinecompositionPost -public class Post +public class FakeinlinecompositionPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakeinlinecompositionPost1](#fakeinlinecompositionpost1)
The class that has a post method to call the endpoint | +| static class | [FakeinlinecompositionPostRequest](#fakeinlinecompositionpostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakeinlinecompositionPost1 +public static class FakeinlinecompositionPost1 extends ApiClient.ApiClient1 implements FakeinlinecompositionPostOperation
a class that allows one to call the endpoint using a method named post @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.Post; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.FakeinlinecompositionPost; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Responses; import java.io.IOException; @@ -66,7 +66,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakeinlinecompositionPost.FakeinlinecompositionPost1 apiClient = new FakeinlinecompositionPost.FakeinlinecompositionPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -99,15 +99,15 @@ if (castResponse.body instanceof Code200Response.ApplicationjsonResponseBody des ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeinlinecompositionPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeinlinecomposition/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeinlinecomposition/post/Responses.md#endpointresponse) | post([FakeinlinecompositionPostRequest](#fakeinlinecompositionpostrequest) request) | -## PostRequest -public static class PostRequest
+## FakeinlinecompositionPostRequest +public static class FakeinlinecompositionPostRequest
a class that stores the final request inputs @@ -132,7 +132,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeinlinecompositionPostRequest](#fakeinlinecompositionpostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeinlinecomposition/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [PostRequestBuilder](#postrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakeinlinecomposition/post/QueryParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/Get.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fakejsonformdata/Get.md rename to samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md index 4baac6db8d2..e10080449eb 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/Get.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -1,6 +1,6 @@ -# Get +# FakejsonformdataGet -public class Get +public class FakejsonformdataGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakejsonformdataGet1](#fakejsonformdataget1)
The class that has a get method to call the endpoint | +| static class | [FakejsonformdataGetRequest](#fakejsonformdatagetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakejsonformdataGet1 +public static class FakejsonformdataGet1 extends ApiClient.ApiClient1 implements FakejsonformdataGetOperation
a class that allows one to call the endpoint using a method named get @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakejsonformdata.Get; +import org.openapijsonschematools.client.paths.fakejsonformdata.FakejsonformdataGet; import org.openapijsonschematools.client.paths.fakejsonformdata.get.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakejsonformdataGet.FakejsonformdataGet1 apiClient = new FakejsonformdataGet.FakejsonformdataGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -92,15 +92,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakejsonformdataGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakejsonformdata/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakejsonformdata/get/Responses.md#endpointresponse) | get([FakejsonformdataGetRequest](#fakejsonformdatagetrequest) request) | -## GetRequest -public static class GetRequest
+## FakejsonformdataGetRequest +public static class FakejsonformdataGetRequest
a class that stores the final request inputs @@ -124,7 +124,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakejsonformdataGetRequest](#fakejsonformdatagetrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakejsonformdata/get/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/Patch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakejsonpatch/Patch.md rename to samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md index 71e68b2f798..5bd33a25b19 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/Patch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -1,6 +1,6 @@ -# Patch +# FakejsonpatchPatch -public class Patch +public class FakejsonpatchPatch A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Patch1](#patch1)
The class that has a patch method to call the endpoint | -| static class | [PatchRequest](#patchrequest)
The request inputs class | +| static class | [FakejsonpatchPatch1](#fakejsonpatchpatch1)
The class that has a patch method to call the endpoint | +| static class | [FakejsonpatchPatchRequest](#fakejsonpatchpatchrequest)
The request inputs class | | static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | -## Patch1 -public static class Patch1 extends ApiClient.ApiClient1 implements PatchOperation
+## FakejsonpatchPatch1 +public static class FakejsonpatchPatch1 extends ApiClient.ApiClient1 implements FakejsonpatchPatchOperation
a class that allows one to call the endpoint using a method named patch @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakejsonpatch.Patch; +import org.openapijsonschematools.client.paths.fakejsonpatch.FakejsonpatchPatch; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Patch.Patch1 apiClient = new Patch.Patch1(apiConfiguration, schemaConfiguration); +FakejsonpatchPatch.FakejsonpatchPatch1 apiClient = new FakejsonpatchPatch.FakejsonpatchPatch1(apiConfiguration, schemaConfiguration); var request = new PatchRequestBuilder().build(); @@ -92,15 +92,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakejsonpatchPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakejsonpatch/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | +| [Responses.EndpointResponse](../../paths/fakejsonpatch/patch/Responses.md#endpointresponse) | patch([FakejsonpatchPatchRequest](#fakejsonpatchpatchrequest) request) | -## PatchRequest -public static class PatchRequest
+## FakejsonpatchPatchRequest +public static class FakejsonpatchPatchRequest
a class that stores the final request inputs @@ -124,7 +124,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | +| [FakejsonpatchPatchRequest](#fakejsonpatchpatchrequest) | build()
Returns the request input used to call an endpoint method | | [PatchRequestBuilder](#patchrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakejsonpatch/patch/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/Post.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakejsonwithcharset/Post.md rename to samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md index 53835ba8607..babb877ee26 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/Post.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -1,6 +1,6 @@ -# Post +# FakejsonwithcharsetPost -public class Post +public class FakejsonwithcharsetPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakejsonwithcharsetPost1](#fakejsonwithcharsetpost1)
The class that has a post method to call the endpoint | +| static class | [FakejsonwithcharsetPostRequest](#fakejsonwithcharsetpostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakejsonwithcharsetPost1 +public static class FakejsonwithcharsetPost1 extends ApiClient.ApiClient1 implements FakejsonwithcharsetPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.Post; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.FakejsonwithcharsetPost; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakejsonwithcharsetPost.FakejsonwithcharsetPost1 apiClient = new FakejsonwithcharsetPost.FakejsonwithcharsetPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (Code2 ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakejsonwithcharsetPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakejsonwithcharset/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakejsonwithcharset/post/Responses.md#endpointresponse) | post([FakejsonwithcharsetPostRequest](#fakejsonwithcharsetpostrequest) request) | -## PostRequest -public static class PostRequest
+## FakejsonwithcharsetPostRequest +public static class FakejsonwithcharsetPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakejsonwithcharsetPostRequest](#fakejsonwithcharsetpostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakejsonwithcharset/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/Post.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/Post.md rename to samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md index 645f512d5e3..18e6c298fac 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/Post.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -1,6 +1,6 @@ -# Post +# FakemultiplerequestbodycontenttypesPost -public class Post +public class FakemultiplerequestbodycontenttypesPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakemultiplerequestbodycontenttypesPost1](#fakemultiplerequestbodycontenttypespost1)
The class that has a post method to call the endpoint | +| static class | [FakemultiplerequestbodycontenttypesPostRequest](#fakemultiplerequestbodycontenttypespostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakemultiplerequestbodycontenttypesPost1 +public static class FakemultiplerequestbodycontenttypesPost1 extends ApiClient.ApiClient1 implements FakemultiplerequestbodycontenttypesPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.Post; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.FakemultiplerequestbodycontenttypesPost; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakemultiplerequestbodycontenttypesPost.FakemultiplerequestbodycontenttypesPost1 apiClient = new FakemultiplerequestbodycontenttypesPost.FakemultiplerequestbodycontenttypesPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakemultiplerequestbodycontenttypesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/Responses.md#endpointresponse) | post([FakemultiplerequestbodycontenttypesPostRequest](#fakemultiplerequestbodycontenttypespostrequest) request) | -## PostRequest -public static class PostRequest
+## FakemultiplerequestbodycontenttypesPostRequest +public static class FakemultiplerequestbodycontenttypesPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakemultiplerequestbodycontenttypesPostRequest](#fakemultiplerequestbodycontenttypespostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/Get.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md similarity index 81% rename from samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/Get.md rename to samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md index b0a9bc68466..1674966f5d5 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/Get.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md @@ -1,6 +1,6 @@ -# Get +# FakemultipleresponsebodiesGet -public class Get +public class FakemultipleresponsebodiesGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakemultipleresponsebodiesGet1](#fakemultipleresponsebodiesget1)
The class that has a get method to call the endpoint | +| static class | [FakemultipleresponsebodiesGetRequest](#fakemultipleresponsebodiesgetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakemultipleresponsebodiesGet1 +public static class FakemultipleresponsebodiesGet1 extends ApiClient.ApiClient1 implements FakemultipleresponsebodiesGetOperation
a class that allows one to call the endpoint using a method named get @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.Code200Response; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.Code202Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.Get; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.FakemultipleresponsebodiesGet; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.Responses; import java.io.IOException; @@ -64,7 +64,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakemultipleresponsebodiesGet.FakemultipleresponsebodiesGet1 apiClient = new FakemultipleresponsebodiesGet.FakemultipleresponsebodiesGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -98,15 +98,15 @@ Code202Response.ApplicationjsonResponseBody deserializedBody = (Code202Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakemultipleresponsebodiesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/Responses.md#endpointresponse) | get([FakemultipleresponsebodiesGetRequest](#fakemultipleresponsebodiesgetrequest) request) | -## GetRequest -public static class GetRequest
+## FakemultipleresponsebodiesGetRequest +public static class FakemultipleresponsebodiesGetRequest
a class that stores the final request inputs @@ -129,7 +129,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakemultipleresponsebodiesGetRequest](#fakemultipleresponsebodiesgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/Get.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md similarity index 85% rename from samples/client/petstore/java/docs/paths/fakemultiplesecurities/Get.md rename to samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md index f17fe936fdf..7bb50421871 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/Get.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md @@ -1,6 +1,6 @@ -# Get +# FakemultiplesecuritiesGet -public class Get +public class FakemultiplesecuritiesGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakemultiplesecuritiesGet1](#fakemultiplesecuritiesget1)
The class that has a get method to call the endpoint | +| static class | [FakemultiplesecuritiesGetRequest](#fakemultiplesecuritiesgetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakemultiplesecuritiesGet1 +public static class FakemultiplesecuritiesGet1 extends ApiClient.ApiClient1 implements FakemultiplesecuritiesGetOperation
a class that allows one to call the endpoint using a method named get @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.Get; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.FakemultiplesecuritiesGet; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.Responses; import java.io.IOException; @@ -80,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakemultiplesecuritiesGet.FakemultiplesecuritiesGet1 apiClient = new FakemultiplesecuritiesGet.FakemultiplesecuritiesGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -109,15 +109,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakemultiplesecuritiesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakemultiplesecurities/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakemultiplesecurities/get/Responses.md#endpointresponse) | get([FakemultiplesecuritiesGetRequest](#fakemultiplesecuritiesgetrequest) request) | -## GetRequest -public static class GetRequest
+## FakemultiplesecuritiesGetRequest +public static class FakemultiplesecuritiesGetRequest
a class that stores the final request inputs @@ -141,7 +141,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakemultiplesecuritiesGetRequest](#fakemultiplesecuritiesgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/Get.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakeobjinquery/Get.md rename to samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index 0bb145e285a..56ae38f5fb3 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/Get.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -1,6 +1,6 @@ -# Get +# FakeobjinqueryGet -public class Get +public class FakeobjinqueryGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakeobjinqueryGet1](#fakeobjinqueryget1)
The class that has a get method to call the endpoint | +| static class | [FakeobjinqueryGetRequest](#fakeobjinquerygetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakeobjinqueryGet1 +public static class FakeobjinqueryGet1 extends ApiClient.ApiClient1 implements FakeobjinqueryGetOperation
a class that allows one to call the endpoint using a method named get @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeobjinquery.Get; +import org.openapijsonschematools.client.paths.fakeobjinquery.FakeobjinqueryGet; import org.openapijsonschematools.client.paths.fakeobjinquery.get.Responses; import java.io.IOException; @@ -64,7 +64,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakeobjinqueryGet.FakeobjinqueryGet1 apiClient = new FakeobjinqueryGet.FakeobjinqueryGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -91,15 +91,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeobjinqueryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeobjinquery/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeobjinquery/get/Responses.md#endpointresponse) | get([FakeobjinqueryGetRequest](#fakeobjinquerygetrequest) request) | -## GetRequest -public static class GetRequest
+## FakeobjinqueryGetRequest +public static class FakeobjinqueryGetRequest
a class that stores the final request inputs @@ -123,7 +123,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeobjinqueryGetRequest](#fakeobjinquerygetrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakeobjinquery/get/QueryParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Post.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Post.md rename to samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index 04bdd7cc49f..56a9c8084bb 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -1,6 +1,6 @@ -# Post +# Fakeparametercollisions1ababselfabPost -public class Post +public class Fakeparametercollisions1ababselfabPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [Fakeparametercollisions1ababselfabPost1](#fakeparametercollisions1ababselfabpost1)
The class that has a post method to call the endpoint | +| static class | [Fakeparametercollisions1ababselfabPostRequest](#fakeparametercollisions1ababselfabpostrequest)
The final request inputs class | +| static class | [Fakeparametercollisions1ababselfabPostNullableRequest](#fakeparametercollisions1ababselfabpostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## Fakeparametercollisions1ababselfabPost1 +public static class Fakeparametercollisions1ababselfabPost1 extends ApiClient.ApiClient1 implements Fakeparametercollisions1ababselfabPostOperation
a class that allows one to call the endpoint using a method named post @@ -44,7 +44,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Post; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Fakeparametercollisions1ababselfabPost; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Responses; import java.io.IOException; @@ -70,7 +70,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +Fakeparametercollisions1ababselfabPost.Fakeparametercollisions1ababselfabPost1 apiClient = new Fakeparametercollisions1ababselfabPost.Fakeparametercollisions1ababselfabPost1(apiConfiguration, schemaConfiguration); // Map validation @@ -119,15 +119,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Fakeparametercollisions1ababselfabPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Responses.md#endpointresponse) | post([Fakeparametercollisions1ababselfabPostRequest](#fakeparametercollisions1ababselfabpostrequest) request) | -## PostRequest -public static class PostRequest
+## Fakeparametercollisions1ababselfabPostRequest +public static class Fakeparametercollisions1ababselfabPostRequest
a class that stores the final request inputs @@ -142,8 +142,8 @@ a class that stores the final request inputs | [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
+## Fakeparametercollisions1ababselfabPostNullableRequest +public static class Fakeparametercollisions1ababselfabPostNullableRequest
a class that stores the initial request inputs @@ -171,7 +171,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Fakeparametercollisions1ababselfabPostRequest](#fakeparametercollisions1ababselfabpostrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/QueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/Get.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fakepemcontenttype/Get.md rename to samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md index c355850ea3b..f365298ff4b 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/Get.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -1,6 +1,6 @@ -# Get +# FakepemcontenttypeGet -public class Get +public class FakepemcontenttypeGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakepemcontenttypeGet1](#fakepemcontenttypeget1)
The class that has a get method to call the endpoint | +| static class | [FakepemcontenttypeGetRequest](#fakepemcontenttypegetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakepemcontenttypeGet1 +public static class FakepemcontenttypeGet1 extends ApiClient.ApiClient1 implements FakepemcontenttypeGetOperation
a class that allows one to call the endpoint using a method named get @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakepemcontenttype.Get; +import org.openapijsonschematools.client.paths.fakepemcontenttype.FakepemcontenttypeGet; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakepemcontenttypeGet.FakepemcontenttypeGet1 apiClient = new FakepemcontenttypeGet.FakepemcontenttypeGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationxpemfileResponseBody deserializedBody = (Code200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakepemcontenttypeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakepemcontenttype/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakepemcontenttype/get/Responses.md#endpointresponse) | get([FakepemcontenttypeGetRequest](#fakepemcontenttypegetrequest) request) | -## GetRequest -public static class GetRequest
+## FakepemcontenttypeGetRequest +public static class FakepemcontenttypeGetRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakepemcontenttypeGetRequest](#fakepemcontenttypegetrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakepemcontenttype/get/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/Post.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/Post.md rename to samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index c1236de9529..f6932d2bbef 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/Post.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -1,6 +1,6 @@ -# Post +# FakepetiduploadimagewithrequiredfilePost -public class Post +public class FakepetiduploadimagewithrequiredfilePost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [FakepetiduploadimagewithrequiredfilePost1](#fakepetiduploadimagewithrequiredfilepost1)
The class that has a post method to call the endpoint | +| static class | [FakepetiduploadimagewithrequiredfilePostRequest](#fakepetiduploadimagewithrequiredfilepostrequest)
The final request inputs class | +| static class | [FakepetiduploadimagewithrequiredfilePostNullableRequest](#fakepetiduploadimagewithrequiredfilepostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakepetiduploadimagewithrequiredfilePost1 +public static class FakepetiduploadimagewithrequiredfilePost1 extends ApiClient.ApiClient1 implements FakepetiduploadimagewithrequiredfilePostOperation
a class that allows one to call the endpoint using a method named post @@ -44,7 +44,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.Post; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.FakepetiduploadimagewithrequiredfilePost; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.Responses; import java.io.IOException; @@ -76,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakepetiduploadimagewithrequiredfilePost.FakepetiduploadimagewithrequiredfilePost1 apiClient = new FakepetiduploadimagewithrequiredfilePost.FakepetiduploadimagewithrequiredfilePost1(apiConfiguration, schemaConfiguration); // Map validation @@ -117,15 +117,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakepetiduploadimagewithrequiredfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/Responses.md#endpointresponse) | post([FakepetiduploadimagewithrequiredfilePostRequest](#fakepetiduploadimagewithrequiredfilepostrequest) request) | -## PostRequest -public static class PostRequest
+## FakepetiduploadimagewithrequiredfilePostRequest +public static class FakepetiduploadimagewithrequiredfilePostRequest
a class that stores the final request inputs @@ -138,8 +138,8 @@ a class that stores the final request inputs | [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
+## FakepetiduploadimagewithrequiredfilePostNullableRequest +public static class FakepetiduploadimagewithrequiredfilePostNullableRequest
a class that stores the initial request inputs @@ -165,7 +165,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakepetiduploadimagewithrequiredfilePostRequest](#fakepetiduploadimagewithrequiredfilepostrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/Get.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md similarity index 80% rename from samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/Get.md rename to samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index 74a0727c609..99a63adbc47 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/Get.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -1,6 +1,6 @@ -# Get +# FakequeryparamwithjsoncontenttypeGet -public class Get +public class FakequeryparamwithjsoncontenttypeGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get 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 | [FakequeryparamwithjsoncontenttypeGet1](#fakequeryparamwithjsoncontenttypeget1)
The class that has a get method to call the endpoint | +| static class | [FakequeryparamwithjsoncontenttypeGetRequest](#fakequeryparamwithjsoncontenttypegetrequest)
The final request inputs class | +| static class | [FakequeryparamwithjsoncontenttypeGetNullableRequest](#fakequeryparamwithjsoncontenttypegetnullablerequest)
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 | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakequeryparamwithjsoncontenttypeGet1 +public static class FakequeryparamwithjsoncontenttypeGet1 extends ApiClient.ApiClient1 implements FakequeryparamwithjsoncontenttypeGetOperation
a class that allows one to call the endpoint using a method named get @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.Get; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.FakequeryparamwithjsoncontenttypeGet; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.Responses; import java.io.IOException; @@ -66,7 +66,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakequeryparamwithjsoncontenttypeGet.FakequeryparamwithjsoncontenttypeGet1 apiClient = new FakequeryparamwithjsoncontenttypeGet.FakequeryparamwithjsoncontenttypeGet1(apiConfiguration, schemaConfiguration); // Map validation @@ -105,15 +105,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakequeryparamwithjsoncontenttypeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/Responses.md#endpointresponse) | get([FakequeryparamwithjsoncontenttypeGetRequest](#fakequeryparamwithjsoncontenttypegetrequest) request) | -## GetRequest -public static class GetRequest
+## FakequeryparamwithjsoncontenttypeGetRequest +public static class FakequeryparamwithjsoncontenttypeGetRequest
a class that stores the final request inputs @@ -124,8 +124,8 @@ a class that stores the final request inputs | [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
+## FakequeryparamwithjsoncontenttypeGetNullableRequest +public static class FakequeryparamwithjsoncontenttypeGetNullableRequest
a class that stores the initial request inputs @@ -149,7 +149,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakequeryparamwithjsoncontenttypeGetRequest](#fakequeryparamwithjsoncontenttypegetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/Get.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md similarity index 82% rename from samples/client/petstore/java/docs/paths/fakeredirection/Get.md rename to samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md index e640e6b3330..1463e93de95 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/Get.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md @@ -1,6 +1,6 @@ -# Get +# FakeredirectionGet -public class Get +public class FakeredirectionGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakeredirectionGet1](#fakeredirectionget1)
The class that has a get method to call the endpoint | +| static class | [FakeredirectionGetRequest](#fakeredirectiongetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakeredirectionGet1 +public static class FakeredirectionGet1 extends ApiClient.ApiClient1 implements FakeredirectionGetOperation
a class that allows one to call the endpoint using a method named get @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.Code303Response; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.Code3XXResponse; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeredirection.Get; +import org.openapijsonschematools.client.paths.fakeredirection.FakeredirectionGet; import org.openapijsonschematools.client.paths.fakeredirection.get.Responses; import java.io.IOException; @@ -64,7 +64,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakeredirectionGet.FakeredirectionGet1 apiClient = new FakeredirectionGet.FakeredirectionGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -94,15 +94,15 @@ if (response instanceof Responses.EndpointCode3XXResponse castResponse) { ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeredirectionGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeredirection/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeredirection/get/Responses.md#endpointresponse) | get([FakeredirectionGetRequest](#fakeredirectiongetrequest) request) | -## GetRequest -public static class GetRequest
+## FakeredirectionGetRequest +public static class FakeredirectionGetRequest
a class that stores the final request inputs @@ -125,7 +125,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeredirectionGetRequest](#fakeredirectiongetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/Get.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakerefobjinquery/Get.md rename to samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index f4d03b3f970..a352d3b4119 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/Get.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -1,6 +1,6 @@ -# Get +# FakerefobjinqueryGet -public class Get +public class FakerefobjinqueryGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakerefobjinqueryGet1](#fakerefobjinqueryget1)
The class that has a get method to call the endpoint | +| static class | [FakerefobjinqueryGetRequest](#fakerefobjinquerygetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakerefobjinqueryGet1 +public static class FakerefobjinqueryGet1 extends ApiClient.ApiClient1 implements FakerefobjinqueryGetOperation
a class that allows one to call the endpoint using a method named get @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefobjinquery.Get; +import org.openapijsonschematools.client.paths.fakerefobjinquery.FakerefobjinqueryGet; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Responses; import java.io.IOException; @@ -64,7 +64,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakerefobjinqueryGet.FakerefobjinqueryGet1 apiClient = new FakerefobjinqueryGet.FakerefobjinqueryGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -91,15 +91,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefobjinqueryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefobjinquery/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefobjinquery/get/Responses.md#endpointresponse) | get([FakerefobjinqueryGetRequest](#fakerefobjinquerygetrequest) request) | -## GetRequest -public static class GetRequest
+## FakerefobjinqueryGetRequest +public static class FakerefobjinqueryGetRequest
a class that stores the final request inputs @@ -123,7 +123,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefobjinqueryGetRequest](#fakerefobjinquerygetrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakerefobjinquery/get/QueryParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/Post.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakerefsarraymodel/Post.md rename to samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md index 4bc163fabaa..ad700a9af8d 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -1,6 +1,6 @@ -# Post +# FakerefsarraymodelPost -public class Post +public class FakerefsarraymodelPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakerefsarraymodelPost1](#fakerefsarraymodelpost1)
The class that has a post method to call the endpoint | +| static class | [FakerefsarraymodelPostRequest](#fakerefsarraymodelpostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakerefsarraymodelPost1 +public static class FakerefsarraymodelPost1 extends ApiClient.ApiClient1 implements FakerefsarraymodelPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.Post; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.FakerefsarraymodelPost; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakerefsarraymodelPost.FakerefsarraymodelPost1 apiClient = new FakerefsarraymodelPost.FakerefsarraymodelPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefsarraymodelPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsarraymodel/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsarraymodel/post/Responses.md#endpointresponse) | post([FakerefsarraymodelPostRequest](#fakerefsarraymodelpostrequest) request) | -## PostRequest -public static class PostRequest
+## FakerefsarraymodelPostRequest +public static class FakerefsarraymodelPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefsarraymodelPostRequest](#fakerefsarraymodelpostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsarraymodel/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/Post.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakerefsarrayofenums/Post.md rename to samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md index 200542c4704..49bfa09465c 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -1,6 +1,6 @@ -# Post +# FakerefsarrayofenumsPost -public class Post +public class FakerefsarrayofenumsPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakerefsarrayofenumsPost1](#fakerefsarrayofenumspost1)
The class that has a post method to call the endpoint | +| static class | [FakerefsarrayofenumsPostRequest](#fakerefsarrayofenumspostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakerefsarrayofenumsPost1 +public static class FakerefsarrayofenumsPost1 extends ApiClient.ApiClient1 implements FakerefsarrayofenumsPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.Post; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.FakerefsarrayofenumsPost; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakerefsarrayofenumsPost.FakerefsarrayofenumsPost1 apiClient = new FakerefsarrayofenumsPost.FakerefsarrayofenumsPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefsarrayofenumsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsarrayofenums/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsarrayofenums/post/Responses.md#endpointresponse) | post([FakerefsarrayofenumsPostRequest](#fakerefsarrayofenumspostrequest) request) | -## PostRequest -public static class PostRequest
+## FakerefsarrayofenumsPostRequest +public static class FakerefsarrayofenumsPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefsarrayofenumsPostRequest](#fakerefsarrayofenumspostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsarrayofenums/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/Post.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakerefsboolean/Post.md rename to samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md index 7df44e941e1..ca11428d276 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -1,6 +1,6 @@ -# Post +# FakerefsbooleanPost -public class Post +public class FakerefsbooleanPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakerefsbooleanPost1](#fakerefsbooleanpost1)
The class that has a post method to call the endpoint | +| static class | [FakerefsbooleanPostRequest](#fakerefsbooleanpostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakerefsbooleanPost1 +public static class FakerefsbooleanPost1 extends ApiClient.ApiClient1 implements FakerefsbooleanPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsboolean.Post; +import org.openapijsonschematools.client.paths.fakerefsboolean.FakerefsbooleanPost; import org.openapijsonschematools.client.paths.fakerefsboolean.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakerefsbooleanPost.FakerefsbooleanPost1 apiClient = new FakerefsbooleanPost.FakerefsbooleanPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefsbooleanPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsboolean/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsboolean/post/Responses.md#endpointresponse) | post([FakerefsbooleanPostRequest](#fakerefsbooleanpostrequest) request) | -## PostRequest -public static class PostRequest
+## FakerefsbooleanPostRequest +public static class FakerefsbooleanPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefsbooleanPostRequest](#fakerefsbooleanpostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsboolean/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/Post.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md similarity index 78% rename from samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/Post.md rename to samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md index 4b26f154cf2..8262c481053 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -1,6 +1,6 @@ -# Post +# FakerefscomposedoneofnumberwithvalidationsPost -public class Post +public class FakerefscomposedoneofnumberwithvalidationsPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakerefscomposedoneofnumberwithvalidationsPost1](#fakerefscomposedoneofnumberwithvalidationspost1)
The class that has a post method to call the endpoint | +| static class | [FakerefscomposedoneofnumberwithvalidationsPostRequest](#fakerefscomposedoneofnumberwithvalidationspostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakerefscomposedoneofnumberwithvalidationsPost1 +public static class FakerefscomposedoneofnumberwithvalidationsPost1 extends ApiClient.ApiClient1 implements FakerefscomposedoneofnumberwithvalidationsPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.Post; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.FakerefscomposedoneofnumberwithvalidationsPost; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakerefscomposedoneofnumberwithvalidationsPost.FakerefscomposedoneofnumberwithvalidationsPost1 apiClient = new FakerefscomposedoneofnumberwithvalidationsPost.FakerefscomposedoneofnumberwithvalidationsPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefscomposedoneofnumberwithvalidationsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md#endpointresponse) | post([FakerefscomposedoneofnumberwithvalidationsPostRequest](#fakerefscomposedoneofnumberwithvalidationspostrequest) request) | -## PostRequest -public static class PostRequest
+## FakerefscomposedoneofnumberwithvalidationsPostRequest +public static class FakerefscomposedoneofnumberwithvalidationsPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefscomposedoneofnumberwithvalidationsPostRequest](#fakerefscomposedoneofnumberwithvalidationspostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/Post.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fakerefsenum/Post.md rename to samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md index 9c6f0dcd85f..145ed9e8e61 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -1,6 +1,6 @@ -# Post +# FakerefsenumPost -public class Post +public class FakerefsenumPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakerefsenumPost1](#fakerefsenumpost1)
The class that has a post method to call the endpoint | +| static class | [FakerefsenumPostRequest](#fakerefsenumpostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakerefsenumPost1 +public static class FakerefsenumPost1 extends ApiClient.ApiClient1 implements FakerefsenumPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsenum.Post; +import org.openapijsonschematools.client.paths.fakerefsenum.FakerefsenumPost; import org.openapijsonschematools.client.paths.fakerefsenum.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakerefsenumPost.FakerefsenumPost1 apiClient = new FakerefsenumPost.FakerefsenumPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefsenumPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsenum/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsenum/post/Responses.md#endpointresponse) | post([FakerefsenumPostRequest](#fakerefsenumpostrequest) request) | -## PostRequest -public static class PostRequest
+## FakerefsenumPostRequest +public static class FakerefsenumPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefsenumPostRequest](#fakerefsenumpostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsenum/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/Post.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md similarity index 82% rename from samples/client/petstore/java/docs/paths/fakerefsmammal/Post.md rename to samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md index e346a48bda1..50e508573d6 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -1,6 +1,6 @@ -# Post +# FakerefsmammalPost -public class Post +public class FakerefsmammalPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [FakerefsmammalPost1](#fakerefsmammalpost1)
The class that has a post method to call the endpoint | +| static class | [FakerefsmammalPostRequest](#fakerefsmammalpostrequest)
The final request inputs class | +| static class | [FakerefsmammalPostNullableRequest](#fakerefsmammalpostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakerefsmammalPost1 +public static class FakerefsmammalPost1 extends ApiClient.ApiClient1 implements FakerefsmammalPostOperation
a class that allows one to call the endpoint using a method named post @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsmammal.Post; +import org.openapijsonschematools.client.paths.fakerefsmammal.FakerefsmammalPost; import org.openapijsonschematools.client.paths.fakerefsmammal.post.Responses; import java.io.IOException; @@ -67,9 +67,9 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakerefsmammalPost.FakerefsmammalPost1 apiClient = new FakerefsmammalPost.FakerefsmammalPost1(apiConfiguration, schemaConfiguration); -Post.SealedRequestBody requestBody = new Post.ApplicationjsonRequestBody(requestBodyPayload); +FakerefsmammalPost.SealedRequestBody requestBody = new FakerefsmammalPost.ApplicationjsonRequestBody(requestBodyPayload); var request = new PostRequestBuilder() .requestBody(requestBody) @@ -99,15 +99,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefsmammalPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsmammal/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsmammal/post/Responses.md#endpointresponse) | post([FakerefsmammalPostRequest](#fakerefsmammalpostrequest) request) | -## PostRequest -public static class PostRequest
+## FakerefsmammalPostRequest +public static class FakerefsmammalPostRequest
a class that stores the final request inputs @@ -118,8 +118,8 @@ a class that stores the final request inputs | [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
+## FakerefsmammalPostNullableRequest +public static class FakerefsmammalPostNullableRequest
a class that stores the initial request inputs @@ -143,7 +143,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefsmammalPostRequest](#fakerefsmammalpostrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/Post.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fakerefsnumber/Post.md rename to samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md index 41bcd1d2a69..d2f298df5b8 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -1,6 +1,6 @@ -# Post +# FakerefsnumberPost -public class Post +public class FakerefsnumberPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakerefsnumberPost1](#fakerefsnumberpost1)
The class that has a post method to call the endpoint | +| static class | [FakerefsnumberPostRequest](#fakerefsnumberpostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakerefsnumberPost1 +public static class FakerefsnumberPost1 extends ApiClient.ApiClient1 implements FakerefsnumberPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsnumber.Post; +import org.openapijsonschematools.client.paths.fakerefsnumber.FakerefsnumberPost; import org.openapijsonschematools.client.paths.fakerefsnumber.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakerefsnumberPost.FakerefsnumberPost1 apiClient = new FakerefsnumberPost.FakerefsnumberPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefsnumberPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsnumber/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsnumber/post/Responses.md#endpointresponse) | post([FakerefsnumberPostRequest](#fakerefsnumberpostrequest) request) | -## PostRequest -public static class PostRequest
+## FakerefsnumberPostRequest +public static class FakerefsnumberPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefsnumberPostRequest](#fakerefsnumberpostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsnumber/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/Post.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md similarity index 80% rename from samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/Post.md rename to samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md index a897bfcdcc9..ef606c41c91 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -1,6 +1,6 @@ -# Post +# FakerefsobjectmodelwithrefpropsPost -public class Post +public class FakerefsobjectmodelwithrefpropsPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakerefsobjectmodelwithrefpropsPost1](#fakerefsobjectmodelwithrefpropspost1)
The class that has a post method to call the endpoint | +| static class | [FakerefsobjectmodelwithrefpropsPostRequest](#fakerefsobjectmodelwithrefpropspostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakerefsobjectmodelwithrefpropsPost1 +public static class FakerefsobjectmodelwithrefpropsPost1 extends ApiClient.ApiClient1 implements FakerefsobjectmodelwithrefpropsPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.Post; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.FakerefsobjectmodelwithrefpropsPost; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakerefsobjectmodelwithrefpropsPost.FakerefsobjectmodelwithrefpropsPost1 apiClient = new FakerefsobjectmodelwithrefpropsPost.FakerefsobjectmodelwithrefpropsPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefsobjectmodelwithrefpropsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/Responses.md#endpointresponse) | post([FakerefsobjectmodelwithrefpropsPostRequest](#fakerefsobjectmodelwithrefpropspostrequest) request) | -## PostRequest -public static class PostRequest
+## FakerefsobjectmodelwithrefpropsPostRequest +public static class FakerefsobjectmodelwithrefpropsPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefsobjectmodelwithrefpropsPostRequest](#fakerefsobjectmodelwithrefpropspostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/Post.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fakerefsstring/Post.md rename to samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md index 8586be22c86..9000653c049 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -1,6 +1,6 @@ -# Post +# FakerefsstringPost -public class Post +public class FakerefsstringPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakerefsstringPost1](#fakerefsstringpost1)
The class that has a post method to call the endpoint | +| static class | [FakerefsstringPostRequest](#fakerefsstringpostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakerefsstringPost1 +public static class FakerefsstringPost1 extends ApiClient.ApiClient1 implements FakerefsstringPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsstring.Post; +import org.openapijsonschematools.client.paths.fakerefsstring.FakerefsstringPost; import org.openapijsonschematools.client.paths.fakerefsstring.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakerefsstringPost.FakerefsstringPost1 apiClient = new FakerefsstringPost.FakerefsstringPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakerefsstringPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsstring/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsstring/post/Responses.md#endpointresponse) | post([FakerefsstringPostRequest](#fakerefsstringpostrequest) request) | -## PostRequest -public static class PostRequest
+## FakerefsstringPostRequest +public static class FakerefsstringPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakerefsstringPostRequest](#fakerefsstringpostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsstring/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/Get.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md similarity index 80% rename from samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/Get.md rename to samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md index 2cd0d406ab3..76c3a9972f3 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/Get.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md @@ -1,6 +1,6 @@ -# Get +# FakeresponsewithoutschemaGet -public class Get +public class FakeresponsewithoutschemaGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakeresponsewithoutschemaGet1](#fakeresponsewithoutschemaget1)
The class that has a get method to call the endpoint | +| static class | [FakeresponsewithoutschemaGetRequest](#fakeresponsewithoutschemagetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakeresponsewithoutschemaGet1 +public static class FakeresponsewithoutschemaGet1 extends ApiClient.ApiClient1 implements FakeresponsewithoutschemaGetOperation
a class that allows one to call the endpoint using a method named get @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.Get; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.FakeresponsewithoutschemaGet; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.Responses; import java.io.IOException; @@ -63,7 +63,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakeresponsewithoutschemaGet.FakeresponsewithoutschemaGet1 apiClient = new FakeresponsewithoutschemaGet.FakeresponsewithoutschemaGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -90,15 +90,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeresponsewithoutschemaGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/Responses.md#endpointresponse) | get([FakeresponsewithoutschemaGetRequest](#fakeresponsewithoutschemagetrequest) request) | -## GetRequest -public static class GetRequest
+## FakeresponsewithoutschemaGetRequest +public static class FakeresponsewithoutschemaGetRequest
a class that stores the final request inputs @@ -121,7 +121,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeresponsewithoutschemaGetRequest](#fakeresponsewithoutschemagetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/Put.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md similarity index 83% rename from samples/client/petstore/java/docs/paths/faketestqueryparamters/Put.md rename to samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index c9832cb9a3f..9b4fff3218e 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/Put.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -1,6 +1,6 @@ -# Put +# FaketestqueryparamtersPut -public class Put +public class FaketestqueryparamtersPut A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Put1](#put1)
The class that has a put 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 | [FaketestqueryparamtersPut1](#faketestqueryparamtersput1)
The class that has a put method to call the endpoint | +| static class | [FaketestqueryparamtersPutRequest](#faketestqueryparamtersputrequest)
The final request inputs class | +| static class | [FaketestqueryparamtersPutNullableRequest](#faketestqueryparamtersputnullablerequest)
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 | -## Put1 -public static class Put1 extends ApiClient.ApiClient1 implements PutOperation
+## FaketestqueryparamtersPut1 +public static class FaketestqueryparamtersPut1 extends ApiClient.ApiClient1 implements FaketestqueryparamtersPutOperation
a class that allows one to call the endpoint using a method named put @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.faketestqueryparamters.Put; +import org.openapijsonschematools.client.paths.faketestqueryparamters.FaketestqueryparamtersPut; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Responses; import java.io.IOException; @@ -66,7 +66,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); +FaketestqueryparamtersPut.FaketestqueryparamtersPut1 apiClient = new FaketestqueryparamtersPut.FaketestqueryparamtersPut1(apiConfiguration, schemaConfiguration); // Map validation @@ -130,15 +130,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FaketestqueryparamtersPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/faketestqueryparamters/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | +| [Responses.EndpointResponse](../../paths/faketestqueryparamters/put/Responses.md#endpointresponse) | put([FaketestqueryparamtersPutRequest](#faketestqueryparamtersputrequest) request) | -## PutRequest -public static class PutRequest
+## FaketestqueryparamtersPutRequest +public static class FaketestqueryparamtersPutRequest
a class that stores the final request inputs @@ -149,8 +149,8 @@ a class that stores the final request inputs | [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
+## FaketestqueryparamtersPutNullableRequest +public static class FaketestqueryparamtersPutNullableRequest
a class that stores the initial request inputs @@ -174,7 +174,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [FaketestqueryparamtersPutRequest](#faketestqueryparamtersputrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/Post.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md similarity index 81% rename from samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/Post.md rename to samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md index 35c1e1b7891..2230d0be9eb 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -1,6 +1,6 @@ -# Post +# FakeuploaddownloadfilePost -public class Post +public class FakeuploaddownloadfilePost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [FakeuploaddownloadfilePost1](#fakeuploaddownloadfilepost1)
The class that has a post method to call the endpoint | +| static class | [FakeuploaddownloadfilePostRequest](#fakeuploaddownloadfilepostrequest)
The final request inputs class | +| static class | [FakeuploaddownloadfilePostNullableRequest](#fakeuploaddownloadfilepostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakeuploaddownloadfilePost1 +public static class FakeuploaddownloadfilePost1 extends ApiClient.ApiClient1 implements FakeuploaddownloadfilePostOperation
a class that allows one to call the endpoint using a method named post @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.Post; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.FakeuploaddownloadfilePost; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.Responses; import java.io.IOException; @@ -67,14 +67,14 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakeuploaddownloadfilePost.FakeuploaddownloadfilePost1 apiClient = new FakeuploaddownloadfilePost.FakeuploaddownloadfilePost1(apiConfiguration, schemaConfiguration); ApplicationoctetstreamSchema1BoxedString requestBodyPayload = ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.validateAndBox( "a", schemaConfiguration ); -Post.SealedRequestBody requestBody = new Post.ApplicationoctetstreamRequestBody(requestBodyPayload); +FakeuploaddownloadfilePost.SealedRequestBody requestBody = new FakeuploaddownloadfilePost.ApplicationoctetstreamRequestBody(requestBodyPayload); var request = new PostRequestBuilder() .requestBody(requestBody) @@ -104,15 +104,15 @@ Code200Response.ApplicationoctetstreamResponseBody deserializedBody = (Code200Re ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeuploaddownloadfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/Responses.md#endpointresponse) | post([FakeuploaddownloadfilePostRequest](#fakeuploaddownloadfilepostrequest) request) | -## PostRequest -public static class PostRequest
+## FakeuploaddownloadfilePostRequest +public static class FakeuploaddownloadfilePostRequest
a class that stores the final request inputs @@ -123,8 +123,8 @@ a class that stores the final request inputs | [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
+## FakeuploaddownloadfilePostNullableRequest +public static class FakeuploaddownloadfilePostNullableRequest
a class that stores the initial request inputs @@ -148,7 +148,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeuploaddownloadfilePostRequest](#fakeuploaddownloadfilepostrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/Post.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fakeuploadfile/Post.md rename to samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md index 218e1cd247c..d57693485ab 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -1,6 +1,6 @@ -# Post +# FakeuploadfilePost -public class Post +public class FakeuploadfilePost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakeuploadfilePost1](#fakeuploadfilepost1)
The class that has a post method to call the endpoint | +| static class | [FakeuploadfilePostRequest](#fakeuploadfilepostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakeuploadfilePost1 +public static class FakeuploadfilePost1 extends ApiClient.ApiClient1 implements FakeuploadfilePostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeuploadfile.Post; +import org.openapijsonschematools.client.paths.fakeuploadfile.FakeuploadfilePost; import org.openapijsonschematools.client.paths.fakeuploadfile.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakeuploadfilePost.FakeuploadfilePost1 apiClient = new FakeuploadfilePost.FakeuploadfilePost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeuploadfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeuploadfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeuploadfile/post/Responses.md#endpointresponse) | post([FakeuploadfilePostRequest](#fakeuploadfilepostrequest) request) | -## PostRequest -public static class PostRequest
+## FakeuploadfilePostRequest +public static class FakeuploadfilePostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeuploadfilePostRequest](#fakeuploadfilepostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeuploadfile/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/Post.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md similarity index 83% rename from samples/client/petstore/java/docs/paths/fakeuploadfiles/Post.md rename to samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md index 570249e79f7..1bc33d99436 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -1,6 +1,6 @@ -# Post +# FakeuploadfilesPost -public class Post +public class FakeuploadfilesPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [FakeuploadfilesPost1](#fakeuploadfilespost1)
The class that has a post method to call the endpoint | +| static class | [FakeuploadfilesPostRequest](#fakeuploadfilespostrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## FakeuploadfilesPost1 +public static class FakeuploadfilesPost1 extends ApiClient.ApiClient1 implements FakeuploadfilesPostOperation
a class that allows one to call the endpoint using a method named post @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeuploadfiles.Post; +import org.openapijsonschematools.client.paths.fakeuploadfiles.FakeuploadfilesPost; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.Responses; import java.io.IOException; @@ -65,7 +65,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +FakeuploadfilesPost.FakeuploadfilesPost1 apiClient = new FakeuploadfilesPost.FakeuploadfilesPost1(apiConfiguration, schemaConfiguration); var request = new PostRequestBuilder().build(); @@ -94,15 +94,15 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakeuploadfilesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeuploadfiles/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeuploadfiles/post/Responses.md#endpointresponse) | post([FakeuploadfilesPostRequest](#fakeuploadfilespostrequest) request) | -## PostRequest -public static class PostRequest
+## FakeuploadfilesPostRequest +public static class FakeuploadfilesPostRequest
a class that stores the final request inputs @@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [FakeuploadfilesPostRequest](#fakeuploadfilespostrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeuploadfiles/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/Get.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md similarity index 85% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/Get.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md index 179e8247d35..d8701d9c122 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/Get.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md @@ -1,6 +1,6 @@ -# Get +# FakewildcardresponsesGet -public class Get +public class FakewildcardresponsesGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FakewildcardresponsesGet1](#fakewildcardresponsesget1)
The class that has a get method to call the endpoint | +| static class | [FakewildcardresponsesGetRequest](#fakewildcardresponsesgetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FakewildcardresponsesGet1 +public static class FakewildcardresponsesGet1 extends ApiClient.ApiClient1 implements FakewildcardresponsesGetOperation
a class that allows one to call the endpoint using a method named get @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.respons import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code4XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code5XXResponse; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.fakewildcardresponses.Get; +import org.openapijsonschematools.client.paths.fakewildcardresponses.FakewildcardresponsesGet; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.Responses; import java.io.IOException; @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FakewildcardresponsesGet.FakewildcardresponsesGet1 apiClient = new FakewildcardresponsesGet.FakewildcardresponsesGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -111,15 +111,15 @@ Code3XXResponse.ApplicationjsonResponseBody deserializedBody = (Code3XXResponse. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FakewildcardresponsesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakewildcardresponses/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/fakewildcardresponses/get/Responses.md#endpointresponse) | get([FakewildcardresponsesGetRequest](#fakewildcardresponsesgetrequest) request) | -## GetRequest -public static class GetRequest
+## FakewildcardresponsesGetRequest +public static class FakewildcardresponsesGetRequest
a class that stores the final request inputs @@ -142,7 +142,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FakewildcardresponsesGetRequest](#fakewildcardresponsesgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/foo/Get.md b/samples/client/petstore/java/docs/paths/foo/FooGet.md similarity index 86% rename from samples/client/petstore/java/docs/paths/foo/Get.md rename to samples/client/petstore/java/docs/paths/foo/FooGet.md index 38db180aac1..11ffb7ea8e6 100644 --- a/samples/client/petstore/java/docs/paths/foo/Get.md +++ b/samples/client/petstore/java/docs/paths/foo/FooGet.md @@ -1,6 +1,6 @@ -# Get +# FooGet -public class Get +public class FooGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [FooGet1](#fooget1)
The class that has a get method to call the endpoint | +| static class | [FooGetRequest](#foogetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## FooGet1 +public static class FooGet1 extends ApiClient.ApiClient1 implements FooGetOperation
a class that allows one to call the endpoint using a method named get @@ -36,7 +36,7 @@ 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.CodedefaultResponse; import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; -import org.openapijsonschematools.client.paths.foo.Get; +import org.openapijsonschematools.client.paths.foo.FooGet; import org.openapijsonschematools.client.paths.foo.get.Responses; import java.io.IOException; @@ -62,7 +62,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +FooGet.FooGet1 apiClient = new FooGet.FooGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -91,15 +91,15 @@ CodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (CodedefaultR ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| FooGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/foo/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/foo/get/Responses.md#endpointresponse) | get([FooGetRequest](#foogetrequest) request) | -## GetRequest -public static class GetRequest
+## FooGetRequest +public static class FooGetRequest
a class that stores the final request inputs @@ -122,7 +122,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [FooGetRequest](#foogetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/pet/Post.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md similarity index 89% rename from samples/client/petstore/java/docs/paths/pet/Post.md rename to samples/client/petstore/java/docs/paths/pet/PetPost.md index 63af19b69b0..f1d18111488 100644 --- a/samples/client/petstore/java/docs/paths/pet/Post.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -1,6 +1,6 @@ -# Post +# PetPost -public class Post +public class PetPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [PetPost1](#petpost1)
The class that has a post method to call the endpoint | +| static class | [PetPostRequest](#petpostrequest)
The final request inputs class | +| static class | [PetPostNullableRequest](#petpostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## PetPost1 +public static class PetPost1 extends ApiClient.ApiClient1 implements PetPostOperation
a class that allows one to call the endpoint using a method named post @@ -47,7 +47,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.pet.post.responses.Code200Response; import org.openapijsonschematools.client.paths.pet.post.responses.Code405Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.pet.Post; +import org.openapijsonschematools.client.paths.pet.PetPost; import org.openapijsonschematools.client.paths.pet.post.Responses; import java.io.IOException; @@ -82,7 +82,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +PetPost.PetPost1 apiClient = new PetPost.PetPost1(apiConfiguration, schemaConfiguration); Pet1BoxedMap requestBodyPayload = @@ -155,15 +155,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| PetPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/pet/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/pet/post/Responses.md#endpointresponse) | post([PetPostRequest](#petpostrequest) request) | -## PostRequest -public static class PostRequest
+## PetPostRequest +public static class PetPostRequest
a class that stores the final request inputs @@ -175,8 +175,8 @@ a class that stores the final request inputs | [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
+## PetPostNullableRequest +public static class PetPostNullableRequest
a class that stores the initial request inputs @@ -201,7 +201,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PetPostRequest](#petpostrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/pet/Put.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md similarity index 90% rename from samples/client/petstore/java/docs/paths/pet/Put.md rename to samples/client/petstore/java/docs/paths/pet/PetPut.md index 7591339e641..5009b82781b 100644 --- a/samples/client/petstore/java/docs/paths/pet/Put.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -1,6 +1,6 @@ -# Put +# PetPut -public class Put +public class PetPut A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Put1](#put1)
The class that has a put 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 | [PetPut1](#petput1)
The class that has a put method to call the endpoint | +| static class | [PetPutRequest](#petputrequest)
The final request inputs class | +| static class | [PetPutNullableRequest](#petputnullablerequest)
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 | -## Put1 -public static class Put1 extends ApiClient.ApiClient1 implements PutOperation
+## PetPut1 +public static class PetPut1 extends ApiClient.ApiClient1 implements PetPutOperation
a class that allows one to call the endpoint using a method named put @@ -47,7 +47,7 @@ import org.openapijsonschematools.client.paths.pet.put.responses.Code400Response import org.openapijsonschematools.client.paths.pet.put.responses.Code404Response; import org.openapijsonschematools.client.paths.pet.put.responses.Code405Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.pet.Put; +import org.openapijsonschematools.client.paths.pet.PetPut; import org.openapijsonschematools.client.paths.pet.put.Responses; import java.io.IOException; @@ -79,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); +PetPut.PetPut1 apiClient = new PetPut.PetPut1(apiConfiguration, schemaConfiguration); Pet1BoxedMap requestBodyPayload = @@ -151,15 +151,15 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| PetPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | put([PutRequest](#putrequest) request) | +| Void | put([PetPutRequest](#petputrequest) request) | -## PutRequest -public static class PutRequest
+## PetPutRequest +public static class PetPutRequest
a class that stores the final request inputs @@ -171,8 +171,8 @@ a class that stores the final request inputs | [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
+## PetPutNullableRequest +public static class PetPutNullableRequest
a class that stores the initial request inputs @@ -197,7 +197,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [PetPutRequest](#petputrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/Get.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md similarity index 87% rename from samples/client/petstore/java/docs/paths/petfindbystatus/Get.md rename to samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index cc3571ee859..07232cb3b51 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/Get.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -1,6 +1,6 @@ -# Get +# PetfindbystatusGet -public class Get +public class PetfindbystatusGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get 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 | [PetfindbystatusGet1](#petfindbystatusget1)
The class that has a get method to call the endpoint | +| static class | [PetfindbystatusGetRequest](#petfindbystatusgetrequest)
The final request inputs class | +| static class | [PetfindbystatusGetNullableRequest](#petfindbystatusgetnullablerequest)
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 | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## PetfindbystatusGet1 +public static class PetfindbystatusGet1 extends ApiClient.ApiClient1 implements PetfindbystatusGetOperation
a class that allows one to call the endpoint using a method named get @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.Code200Response; import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.Code400Response; import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; -import org.openapijsonschematools.client.paths.petfindbystatus.Get; +import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusGet; import org.openapijsonschematools.client.paths.petfindbystatus.get.Responses; import java.io.IOException; @@ -80,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +PetfindbystatusGet.PetfindbystatusGet1 apiClient = new PetfindbystatusGet.PetfindbystatusGet1(apiConfiguration, schemaConfiguration); // Map validation @@ -126,15 +126,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| PetfindbystatusGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petfindbystatus/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/petfindbystatus/get/Responses.md#endpointresponse) | get([PetfindbystatusGetRequest](#petfindbystatusgetrequest) request) | -## GetRequest -public static class GetRequest
+## PetfindbystatusGetRequest +public static class PetfindbystatusGetRequest
a class that stores the final request inputs @@ -146,8 +146,8 @@ a class that stores the final request inputs | [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
+## PetfindbystatusGetNullableRequest +public static class PetfindbystatusGetNullableRequest
a class that stores the initial request inputs @@ -172,7 +172,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [PetfindbystatusGetRequest](#petfindbystatusgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetServerInfo.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetServerInfo.md deleted file mode 100644 index 7ca3f5adb40..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetServerInfo.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/servers/PetfindbystatusGetServer0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer0.md deleted file mode 100644 index 475550269b3..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer0.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/get/servers/PetfindbystatusGetServer1.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer1.md deleted file mode 100644 index ab28355949d..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer1.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([Variables.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}" | -| [Variables.VariablesMap](../../../../paths/petfindbystatus/servers/server1/Variables.md#variablesmap) | variables | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/server1/Variables.md deleted file mode 100644 index 46cdc192bca..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/server1/Variables.md +++ /dev/null @@ -1,355 +0,0 @@ -# Variables -public class Variables
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [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
-permits
-[Variables1BoxedMap](#variables1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Variables1BoxedMap -public record Variables1BoxedMap
-implements [Variables1Boxed](#variables1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Variables1BoxedMap([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 | - -## Variables1 -public static class Variables1
-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.Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// Map validation -Variables.VariablesMap validatedPayload = - Variables.Variables1.validate( - new Variables.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) | -| [Variables1BoxedMap](#variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Variables1Boxed](#variables1boxed) | 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.Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); - -// String validation -String validatedPayload = Variables.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/Get.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md similarity index 86% rename from samples/client/petstore/java/docs/paths/petfindbytags/Get.md rename to samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index 28775d29957..6dacf840373 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/Get.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -1,6 +1,6 @@ -# Get +# PetfindbytagsGet -public class Get +public class PetfindbytagsGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get 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 | [PetfindbytagsGet1](#petfindbytagsget1)
The class that has a get method to call the endpoint | +| static class | [PetfindbytagsGetRequest](#petfindbytagsgetrequest)
The final request inputs class | +| static class | [PetfindbytagsGetNullableRequest](#petfindbytagsgetnullablerequest)
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 | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## PetfindbytagsGet1 +public static class PetfindbytagsGet1 extends ApiClient.ApiClient1 implements PetfindbytagsGetOperation
a class that allows one to call the endpoint using a method named get @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.petfindbytags.get.responses.Code200Response; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.Code400Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.petfindbytags.Get; +import org.openapijsonschematools.client.paths.petfindbytags.PetfindbytagsGet; import org.openapijsonschematools.client.paths.petfindbytags.get.Responses; import java.io.IOException; @@ -77,7 +77,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +PetfindbytagsGet.PetfindbytagsGet1 apiClient = new PetfindbytagsGet.PetfindbytagsGet1(apiConfiguration, schemaConfiguration); // Map validation @@ -123,15 +123,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| PetfindbytagsGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petfindbytags/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/petfindbytags/get/Responses.md#endpointresponse) | get([PetfindbytagsGetRequest](#petfindbytagsgetrequest) request) | -## GetRequest -public static class GetRequest
+## PetfindbytagsGetRequest +public static class PetfindbytagsGetRequest
a class that stores the final request inputs @@ -143,8 +143,8 @@ a class that stores the final request inputs | [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
+## PetfindbytagsGetNullableRequest +public static class PetfindbytagsGetNullableRequest
a class that stores the initial request inputs @@ -169,7 +169,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [PetfindbytagsGetRequest](#petfindbytagsgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/Delete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md similarity index 87% rename from samples/client/petstore/java/docs/paths/petpetid/Delete.md rename to samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index 1ba8d30cd1c..59d89a99446 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/Delete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -1,6 +1,6 @@ -# Delete +# PetpetidDelete -public class Delete +public class PetpetidDelete A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Delete1](#delete1)
The class that has a delete 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 | [PetpetidDelete1](#petpetiddelete1)
The class that has a delete method to call the endpoint | +| static class | [PetpetidDeleteRequest](#petpetiddeleterequest)
The final request inputs class | +| static class | [PetpetidDeleteNullableRequest](#petpetiddeletenullablerequest)
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 | -## Delete1 -public static class Delete1 extends ApiClient.ApiClient1 implements DeleteOperation
+## PetpetidDelete1 +public static class PetpetidDelete1 extends ApiClient.ApiClient1 implements PetpetidDeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.delete.responses.Code400Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.petpetid.Delete; +import org.openapijsonschematools.client.paths.petpetid.PetpetidDelete; import org.openapijsonschematools.client.paths.petpetid.delete.Responses; import java.io.IOException; @@ -80,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); +PetpetidDelete.PetpetidDelete1 apiClient = new PetpetidDelete.PetpetidDelete1(apiConfiguration, schemaConfiguration); // Map validation @@ -121,15 +121,15 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| PetpetidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | delete([DeleteRequest](#deleterequest) request) | +| Void | delete([PetpetidDeleteRequest](#petpetiddeleterequest) request) | -## DeleteRequest -public static class DeleteRequest
+## PetpetidDeleteRequest +public static class PetpetidDeleteRequest
a class that stores the final request inputs @@ -142,8 +142,8 @@ a class that stores the final request inputs | [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
+## PetpetidDeleteNullableRequest +public static class PetpetidDeleteNullableRequest
a class that stores the initial request inputs @@ -169,7 +169,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [PetpetidDeleteRequest](#petpetiddeleterequest) | build()
Returns the request input used to call an endpoint method | | [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/petpetid/delete/HeaderParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/Get.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md similarity index 88% rename from samples/client/petstore/java/docs/paths/petpetid/Get.md rename to samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index 6ca724ecbd4..150e61af10f 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/Get.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -1,6 +1,6 @@ -# Get +# PetpetidGet -public class Get +public class PetpetidGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get 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 | [PetpetidGet1](#petpetidget1)
The class that has a get method to call the endpoint | +| static class | [PetpetidGetRequest](#petpetidgetrequest)
The final request inputs class | +| static class | [PetpetidGetNullableRequest](#petpetidgetnullablerequest)
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 | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## PetpetidGet1 +public static class PetpetidGet1 extends ApiClient.ApiClient1 implements PetpetidGetOperation
a class that allows one to call the endpoint using a method named get @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.paths.petpetid.get.responses.Code200Res import org.openapijsonschematools.client.paths.petpetid.get.responses.Code400Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.petpetid.Get; +import org.openapijsonschematools.client.paths.petpetid.PetpetidGet; import org.openapijsonschematools.client.paths.petpetid.get.Responses; import java.io.IOException; @@ -80,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +PetpetidGet.PetpetidGet1 apiClient = new PetpetidGet.PetpetidGet1(apiConfiguration, schemaConfiguration); // Map validation @@ -128,15 +128,15 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| PetpetidGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petpetid/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/petpetid/get/Responses.md#endpointresponse) | get([PetpetidGetRequest](#petpetidgetrequest) request) | -## GetRequest -public static class GetRequest
+## PetpetidGetRequest +public static class PetpetidGetRequest
a class that stores the final request inputs @@ -148,8 +148,8 @@ a class that stores the final request inputs | [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
+## PetpetidGetNullableRequest +public static class PetpetidGetNullableRequest
a class that stores the initial request inputs @@ -174,7 +174,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [PetpetidGetRequest](#petpetidgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/Post.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md similarity index 88% rename from samples/client/petstore/java/docs/paths/petpetid/Post.md rename to samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index 15b4e3eff77..d9eed9b0ca0 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/Post.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -1,6 +1,6 @@ -# Post +# PetpetidPost -public class Post +public class PetpetidPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [PetpetidPost1](#petpetidpost1)
The class that has a post method to call the endpoint | +| static class | [PetpetidPostRequest](#petpetidpostrequest)
The final request inputs class | +| static class | [PetpetidPostNullableRequest](#petpetidpostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## PetpetidPost1 +public static class PetpetidPost1 extends ApiClient.ApiClient1 implements PetpetidPostOperation
a class that allows one to call the endpoint using a method named post @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.post.responses.Code405Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.petpetid.Post; +import org.openapijsonschematools.client.paths.petpetid.PetpetidPost; import org.openapijsonschematools.client.paths.petpetid.post.Responses; import java.io.IOException; @@ -80,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +PetpetidPost.PetpetidPost1 apiClient = new PetpetidPost.PetpetidPost1(apiConfiguration, schemaConfiguration); // Map validation @@ -121,15 +121,15 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| PetpetidPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | post([PostRequest](#postrequest) request) | +| Void | post([PetpetidPostRequest](#petpetidpostrequest) request) | -## PostRequest -public static class PostRequest
+## PetpetidPostRequest +public static class PetpetidPostRequest
a class that stores the final request inputs @@ -142,8 +142,8 @@ a class that stores the final request inputs | [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
+## PetpetidPostNullableRequest +public static class PetpetidPostNullableRequest
a class that stores the initial request inputs @@ -169,7 +169,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PetpetidPostRequest](#petpetidpostrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/petpetid/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/Post.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md similarity index 86% rename from samples/client/petstore/java/docs/paths/petpetiduploadimage/Post.md rename to samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index 45edecffc72..291200c3e89 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/Post.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -1,6 +1,6 @@ -# Post +# PetpetiduploadimagePost -public class Post +public class PetpetiduploadimagePost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [PetpetiduploadimagePost1](#petpetiduploadimagepost1)
The class that has a post method to call the endpoint | +| static class | [PetpetiduploadimagePostRequest](#petpetiduploadimagepostrequest)
The final request inputs class | +| static class | [PetpetiduploadimagePostNullableRequest](#petpetiduploadimagepostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## PetpetiduploadimagePost1 +public static class PetpetiduploadimagePost1 extends ApiClient.ApiClient1 implements PetpetiduploadimagePostOperation
a class that allows one to call the endpoint using a method named post @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.Code200Response; import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.petpetiduploadimage.Post; +import org.openapijsonschematools.client.paths.petpetiduploadimage.PetpetiduploadimagePost; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Responses; import java.io.IOException; @@ -77,7 +77,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +PetpetiduploadimagePost.PetpetiduploadimagePost1 apiClient = new PetpetiduploadimagePost.PetpetiduploadimagePost1(apiConfiguration, schemaConfiguration); // Map validation @@ -117,15 +117,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| PetpetiduploadimagePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petpetiduploadimage/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/petpetiduploadimage/post/Responses.md#endpointresponse) | post([PetpetiduploadimagePostRequest](#petpetiduploadimagepostrequest) request) | -## PostRequest -public static class PostRequest
+## PetpetiduploadimagePostRequest +public static class PetpetiduploadimagePostRequest
a class that stores the final request inputs @@ -138,8 +138,8 @@ a class that stores the final request inputs | [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
+## PetpetiduploadimagePostNullableRequest +public static class PetpetiduploadimagePostNullableRequest
a class that stores the initial request inputs @@ -165,7 +165,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PetpetiduploadimagePostRequest](#petpetiduploadimagepostrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/petpetiduploadimage/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/solidus/Get.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md similarity index 84% rename from samples/client/petstore/java/docs/paths/solidus/Get.md rename to samples/client/petstore/java/docs/paths/solidus/SolidusGet.md index 6068cd9b6f2..988af4cd9f4 100644 --- a/samples/client/petstore/java/docs/paths/solidus/Get.md +++ b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md @@ -1,6 +1,6 @@ -# Get +# SolidusGet -public class Get +public class SolidusGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [SolidusGet1](#solidusget1)
The class that has a get method to call the endpoint | +| static class | [SolidusGetRequest](#solidusgetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## SolidusGet1 +public static class SolidusGet1 extends ApiClient.ApiClient1 implements SolidusGetOperation
a class that allows one to call the endpoint using a method named get @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.solidus.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.solidus.Get; +import org.openapijsonschematools.client.paths.solidus.SolidusGet; import org.openapijsonschematools.client.paths.solidus.get.Responses; import java.io.IOException; @@ -63,7 +63,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +SolidusGet.SolidusGet1 apiClient = new SolidusGet.SolidusGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -90,15 +90,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| SolidusGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/solidus/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/solidus/get/Responses.md#endpointresponse) | get([SolidusGetRequest](#solidusgetrequest) request) | -## GetRequest -public static class GetRequest
+## SolidusGetRequest +public static class SolidusGetRequest
a class that stores the final request inputs @@ -121,7 +121,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [SolidusGetRequest](#solidusgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/storeinventory/Get.md b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md similarity index 85% rename from samples/client/petstore/java/docs/paths/storeinventory/Get.md rename to samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md index f4469bfa327..66d97c3b23a 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/Get.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md @@ -1,6 +1,6 @@ -# Get +# StoreinventoryGet -public class Get +public class StoreinventoryGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [StoreinventoryGet1](#storeinventoryget1)
The class that has a get method to call the endpoint | +| static class | [StoreinventoryGetRequest](#storeinventorygetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## StoreinventoryGet1 +public static class StoreinventoryGet1 extends ApiClient.ApiClient1 implements StoreinventoryGetOperation
a class that allows one to call the endpoint using a method named get @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.storeinventory.get.responses.Code200Response; import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.storeinventory.Get; +import org.openapijsonschematools.client.paths.storeinventory.StoreinventoryGet; import org.openapijsonschematools.client.paths.storeinventory.get.Responses; import java.io.IOException; @@ -76,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +StoreinventoryGet.StoreinventoryGet1 apiClient = new StoreinventoryGet.StoreinventoryGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -104,15 +104,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| StoreinventoryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/storeinventory/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/storeinventory/get/Responses.md#endpointresponse) | get([StoreinventoryGetRequest](#storeinventorygetrequest) request) | -## GetRequest -public static class GetRequest
+## StoreinventoryGetRequest +public static class StoreinventoryGetRequest
a class that stores the final request inputs @@ -136,7 +136,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [StoreinventoryGetRequest](#storeinventorygetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/storeorder/Post.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md similarity index 84% rename from samples/client/petstore/java/docs/paths/storeorder/Post.md rename to samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md index 02a949a945c..aefab85f6ea 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/Post.md +++ b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md @@ -1,6 +1,6 @@ -# Post +# StoreorderPost -public class Post +public class StoreorderPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [StoreorderPost1](#storeorderpost1)
The class that has a post method to call the endpoint | +| static class | [StoreorderPostRequest](#storeorderpostrequest)
The final request inputs class | +| static class | [StoreorderPostNullableRequest](#storeorderpostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## StoreorderPost1 +public static class StoreorderPost1 extends ApiClient.ApiClient1 implements StoreorderPostOperation
a class that allows one to call the endpoint using a method named post @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorder.post.responses.Code200Response; import org.openapijsonschematools.client.paths.storeorder.post.responses.Code400Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.storeorder.Post; +import org.openapijsonschematools.client.paths.storeorder.StoreorderPost; import org.openapijsonschematools.client.paths.storeorder.post.Responses; import java.io.IOException; @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +StoreorderPost.StoreorderPost1 apiClient = new StoreorderPost.StoreorderPost1(apiConfiguration, schemaConfiguration); Order1BoxedMap requestBodyPayload = @@ -89,7 +89,7 @@ Order1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -Post.SealedRequestBody requestBody = new Post.ApplicationjsonRequestBody(requestBodyPayload); +StoreorderPost.SealedRequestBody requestBody = new StoreorderPost.ApplicationjsonRequestBody(requestBodyPayload); var request = new PostRequestBuilder() .requestBody(requestBody) @@ -126,15 +126,15 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| StoreorderPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/storeorder/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/storeorder/post/Responses.md#endpointresponse) | post([StoreorderPostRequest](#storeorderpostrequest) request) | -## PostRequest -public static class PostRequest
+## StoreorderPostRequest +public static class StoreorderPostRequest
a class that stores the final request inputs @@ -145,8 +145,8 @@ a class that stores the final request inputs | [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
+## StoreorderPostNullableRequest +public static class StoreorderPostNullableRequest
a class that stores the initial request inputs @@ -170,7 +170,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [StoreorderPostRequest](#storeorderpostrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/Delete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md similarity index 83% rename from samples/client/petstore/java/docs/paths/storeorderorderid/Delete.md rename to samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index c0d7e4a4dff..27264b0a2ee 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/Delete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -1,6 +1,6 @@ -# Delete +# StoreorderorderidDelete -public class Delete +public class StoreorderorderidDelete A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Delete1](#delete1)
The class that has a delete 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 | [StoreorderorderidDelete1](#storeorderorderiddelete1)
The class that has a delete method to call the endpoint | +| static class | [StoreorderorderidDeleteRequest](#storeorderorderiddeleterequest)
The final request inputs class | +| static class | [StoreorderorderidDeleteNullableRequest](#storeorderorderiddeletenullablerequest)
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 | -## Delete1 -public static class Delete1 extends ApiClient.ApiClient1 implements DeleteOperation
+## StoreorderorderidDelete1 +public static class StoreorderorderidDelete1 extends ApiClient.ApiClient1 implements StoreorderorderidDeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.Code400Response; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.Delete; +import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidDelete; import org.openapijsonschematools.client.paths.storeorderorderid.delete.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); +StoreorderorderidDelete.StoreorderorderidDelete1 apiClient = new StoreorderorderidDelete.StoreorderorderidDelete1(apiConfiguration, schemaConfiguration); // Map validation @@ -108,15 +108,15 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| StoreorderorderidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | delete([DeleteRequest](#deleterequest) request) | +| Void | delete([StoreorderorderidDeleteRequest](#storeorderorderiddeleterequest) request) | -## DeleteRequest -public static class DeleteRequest
+## StoreorderorderidDeleteRequest +public static class StoreorderorderidDeleteRequest
a class that stores the final request inputs @@ -127,8 +127,8 @@ a class that stores the final request inputs | [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
+## StoreorderorderidDeleteNullableRequest +public static class StoreorderorderidDeleteNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [StoreorderorderidDeleteRequest](#storeorderorderiddeleterequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/Get.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md similarity index 85% rename from samples/client/petstore/java/docs/paths/storeorderorderid/Get.md rename to samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index 89a0141de5f..f7d786b9889 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/Get.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -1,6 +1,6 @@ -# Get +# StoreorderorderidGet -public class Get +public class StoreorderorderidGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get 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 | [StoreorderorderidGet1](#storeorderorderidget1)
The class that has a get method to call the endpoint | +| static class | [StoreorderorderidGetRequest](#storeorderorderidgetrequest)
The final request inputs class | +| static class | [StoreorderorderidGetNullableRequest](#storeorderorderidgetnullablerequest)
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 | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## StoreorderorderidGet1 +public static class StoreorderorderidGet1 extends ApiClient.ApiClient1 implements StoreorderorderidGetOperation
a class that allows one to call the endpoint using a method named get @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.C import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code400Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.Get; +import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidGet; import org.openapijsonschematools.client.paths.storeorderorderid.get.Responses; import java.io.IOException; @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +StoreorderorderidGet.StoreorderorderidGet1 apiClient = new StoreorderorderidGet.StoreorderorderidGet1(apiConfiguration, schemaConfiguration); // Map validation @@ -116,15 +116,15 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| StoreorderorderidGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/storeorderorderid/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/storeorderorderid/get/Responses.md#endpointresponse) | get([StoreorderorderidGetRequest](#storeorderorderidgetrequest) request) | -## GetRequest -public static class GetRequest
+## StoreorderorderidGetRequest +public static class StoreorderorderidGetRequest
a class that stores the final request inputs @@ -135,8 +135,8 @@ a class that stores the final request inputs | [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
+## StoreorderorderidGetNullableRequest +public static class StoreorderorderidGetNullableRequest
a class that stores the initial request inputs @@ -160,7 +160,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [StoreorderorderidGetRequest](#storeorderorderidgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/user/Post.md b/samples/client/petstore/java/docs/paths/user/UserPost.md similarity index 85% rename from samples/client/petstore/java/docs/paths/user/Post.md rename to samples/client/petstore/java/docs/paths/user/UserPost.md index 06bbac3ed12..94457661411 100644 --- a/samples/client/petstore/java/docs/paths/user/Post.md +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -1,6 +1,6 @@ -# Post +# UserPost -public class Post +public class UserPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [UserPost1](#userpost1)
The class that has a post method to call the endpoint | +| static class | [UserPostRequest](#userpostrequest)
The final request inputs class | +| static class | [UserPostNullableRequest](#userpostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## UserPost1 +public static class UserPost1 extends ApiClient.ApiClient1 implements UserPostOperation
a class that allows one to call the endpoint using a method named post @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.user.post.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.user.Post; +import org.openapijsonschematools.client.paths.user.UserPost; import org.openapijsonschematools.client.paths.user.post.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +UserPost.UserPost1 apiClient = new UserPost.UserPost1(apiConfiguration, schemaConfiguration); User1BoxedMap requestBodyPayload = @@ -94,7 +94,7 @@ User1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -Post.SealedRequestBody requestBody = new Post.ApplicationjsonRequestBody(requestBodyPayload); +UserPost.SealedRequestBody requestBody = new UserPost.ApplicationjsonRequestBody(requestBodyPayload); var request = new PostRequestBuilder() .requestBody(requestBody) @@ -122,15 +122,15 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| UserPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/user/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/user/post/Responses.md#endpointresponse) | post([UserPostRequest](#userpostrequest) request) | -## PostRequest -public static class PostRequest
+## UserPostRequest +public static class UserPostRequest
a class that stores the final request inputs @@ -141,8 +141,8 @@ a class that stores the final request inputs | [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
+## UserPostNullableRequest +public static class UserPostNullableRequest
a class that stores the initial request inputs @@ -166,7 +166,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [UserPostRequest](#userpostrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/Post.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md similarity index 85% rename from samples/client/petstore/java/docs/paths/usercreatewitharray/Post.md rename to samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md index 006267d3476..0a55276a3fb 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/Post.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -1,6 +1,6 @@ -# Post +# UsercreatewitharrayPost -public class Post +public class UsercreatewitharrayPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [UsercreatewitharrayPost1](#usercreatewitharraypost1)
The class that has a post method to call the endpoint | +| static class | [UsercreatewitharrayPostRequest](#usercreatewitharraypostrequest)
The final request inputs class | +| static class | [UsercreatewitharrayPostNullableRequest](#usercreatewitharraypostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## UsercreatewitharrayPost1 +public static class UsercreatewitharrayPost1 extends ApiClient.ApiClient1 implements UsercreatewitharrayPostOperation
a class that allows one to call the endpoint using a method named post @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.usercreatewitharray.Post; +import org.openapijsonschematools.client.paths.usercreatewitharray.UsercreatewitharrayPost; import org.openapijsonschematools.client.paths.usercreatewitharray.post.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +UsercreatewitharrayPost.UsercreatewitharrayPost1 apiClient = new UsercreatewitharrayPost.UsercreatewitharrayPost1(apiConfiguration, schemaConfiguration); ApplicationjsonSchema1BoxedList requestBodyPayload = @@ -144,15 +144,15 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| UsercreatewitharrayPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/usercreatewitharray/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/usercreatewitharray/post/Responses.md#endpointresponse) | post([UsercreatewitharrayPostRequest](#usercreatewitharraypostrequest) request) | -## PostRequest -public static class PostRequest
+## UsercreatewitharrayPostRequest +public static class UsercreatewitharrayPostRequest
a class that stores the final request inputs @@ -163,8 +163,8 @@ a class that stores the final request inputs | [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
+## UsercreatewitharrayPostNullableRequest +public static class UsercreatewitharrayPostNullableRequest
a class that stores the initial request inputs @@ -188,7 +188,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [UsercreatewitharrayPostRequest](#usercreatewitharraypostrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/Post.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md similarity index 86% rename from samples/client/petstore/java/docs/paths/usercreatewithlist/Post.md rename to samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md index 90b283456b3..234e525da63 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/Post.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -1,6 +1,6 @@ -# Post +# UsercreatewithlistPost -public class Post +public class UsercreatewithlistPost A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Post1](#post1)
The class that has a post 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 | [UsercreatewithlistPost1](#usercreatewithlistpost1)
The class that has a post method to call the endpoint | +| static class | [UsercreatewithlistPostRequest](#usercreatewithlistpostrequest)
The final request inputs class | +| static class | [UsercreatewithlistPostNullableRequest](#usercreatewithlistpostnullablerequest)
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 | -## Post1 -public static class Post1 extends ApiClient.ApiClient1 implements PostOperation
+## UsercreatewithlistPost1 +public static class UsercreatewithlistPost1 extends ApiClient.ApiClient1 implements UsercreatewithlistPostOperation
a class that allows one to call the endpoint using a method named post @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.usercreatewithlist.Post; +import org.openapijsonschematools.client.paths.usercreatewithlist.UsercreatewithlistPost; import org.openapijsonschematools.client.paths.usercreatewithlist.post.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); +UsercreatewithlistPost.UsercreatewithlistPost1 apiClient = new UsercreatewithlistPost.UsercreatewithlistPost1(apiConfiguration, schemaConfiguration); ApplicationjsonSchema1BoxedList requestBodyPayload = @@ -144,15 +144,15 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Constructor Summary | Constructor and Description | | --------------------------- | -| Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| UsercreatewithlistPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/usercreatewithlist/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Responses.EndpointResponse](../../paths/usercreatewithlist/post/Responses.md#endpointresponse) | post([UsercreatewithlistPostRequest](#usercreatewithlistpostrequest) request) | -## PostRequest -public static class PostRequest
+## UsercreatewithlistPostRequest +public static class UsercreatewithlistPostRequest
a class that stores the final request inputs @@ -163,8 +163,8 @@ a class that stores the final request inputs | [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
+## UsercreatewithlistPostNullableRequest +public static class UsercreatewithlistPostNullableRequest
a class that stores the initial request inputs @@ -188,7 +188,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [UsercreatewithlistPostRequest](#usercreatewithlistpostrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/userlogin/Get.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md similarity index 86% rename from samples/client/petstore/java/docs/paths/userlogin/Get.md rename to samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index 54e6b3b874f..9e4c5e3bf97 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/Get.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -1,6 +1,6 @@ -# Get +# UserloginGet -public class Get +public class UserloginGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get 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 | [UserloginGet1](#userloginget1)
The class that has a get method to call the endpoint | +| static class | [UserloginGetRequest](#userlogingetrequest)
The final request inputs class | +| static class | [UserloginGetNullableRequest](#userlogingetnullablerequest)
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 | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## UserloginGet1 +public static class UserloginGet1 extends ApiClient.ApiClient1 implements UserloginGetOperation
a class that allows one to call the endpoint using a method named get @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.userlogin.get.responses.Code200Re import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.Code200ResponseHeadersSchema; import org.openapijsonschematools.client.paths.userlogin.get.responses.Code400Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.userlogin.Get; +import org.openapijsonschematools.client.paths.userlogin.UserloginGet; import org.openapijsonschematools.client.paths.userlogin.get.Responses; import java.io.IOException; @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +UserloginGet.UserloginGet1 apiClient = new UserloginGet.UserloginGet1(apiConfiguration, schemaConfiguration); // Map validation @@ -118,15 +118,15 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| UserloginGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userlogin/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/userlogin/get/Responses.md#endpointresponse) | get([UserloginGetRequest](#userlogingetrequest) request) | -## GetRequest -public static class GetRequest
+## UserloginGetRequest +public static class UserloginGetRequest
a class that stores the final request inputs @@ -137,8 +137,8 @@ a class that stores the final request inputs | [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
+## UserloginGetNullableRequest +public static class UserloginGetNullableRequest
a class that stores the initial request inputs @@ -162,7 +162,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [UserloginGetRequest](#userlogingetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/Schema200Schema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/Schema200Schema.md deleted file mode 100644 index 190f86e0058..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/Schema200Schema.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema200Schema -public class Schema200Schema
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [Schema200Schema.Schema200Schema1Boxed](#schema200schema1boxed)
sealed interface for validated payloads | -| record | [Schema200Schema.Schema200Schema1BoxedString](#schema200schema1boxedstring)
boxed class to store validated String payloads | -| static class | [Schema200Schema.Schema200Schema1](#schema200schema1)
schema class | - -## Schema200Schema1Boxed -public sealed interface Schema200Schema1Boxed
-permits
-[Schema200Schema1BoxedString](#schema200schema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema200Schema1BoxedString -public record Schema200Schema1BoxedString
-implements [Schema200Schema1Boxed](#schema200schema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema200Schema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema200Schema1 -public static class Schema200Schema1
-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/Schema200Schema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/Schema200Schema.md deleted file mode 100644 index 4bb062364ad..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/Schema200Schema.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema200Schema -public class Schema200Schema
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [Schema200Schema.Schema200Schema1Boxed](#schema200schema1boxed)
sealed interface for validated payloads | -| record | [Schema200Schema.Schema200Schema1BoxedNumber](#schema200schema1boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema200Schema.Schema200Schema1](#schema200schema1)
schema class | - -## Schema200Schema1Boxed -public sealed interface Schema200Schema1Boxed
-permits
-[Schema200Schema1BoxedNumber](#schema200schema1boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema200Schema1BoxedNumber -public record Schema200Schema1BoxedNumber
-implements [Schema200Schema1Boxed](#schema200schema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema200Schema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema200Schema1 -public static class Schema200Schema1
-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/Get.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md similarity index 83% rename from samples/client/petstore/java/docs/paths/userlogout/Get.md rename to samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md index 8a32d82824d..7e655277c48 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/Get.md +++ b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md @@ -1,6 +1,6 @@ -# Get +# UserlogoutGet -public class Get +public class UserlogoutGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [UserlogoutGet1](#userlogoutget1)
The class that has a get method to call the endpoint | +| static class | [UserlogoutGetRequest](#userlogoutgetrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## UserlogoutGet1 +public static class UserlogoutGet1 extends ApiClient.ApiClient1 implements UserlogoutGetOperation
a class that allows one to call the endpoint using a method named get @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogout.get.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.userlogout.Get; +import org.openapijsonschematools.client.paths.userlogout.UserlogoutGet; import org.openapijsonschematools.client.paths.userlogout.get.Responses; import java.io.IOException; @@ -63,7 +63,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +UserlogoutGet.UserlogoutGet1 apiClient = new UserlogoutGet.UserlogoutGet1(apiConfiguration, schemaConfiguration); var request = new GetRequestBuilder().build(); @@ -90,15 +90,15 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| UserlogoutGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userlogout/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/userlogout/get/Responses.md#endpointresponse) | get([UserlogoutGetRequest](#userlogoutgetrequest) request) | -## GetRequest -public static class GetRequest
+## UserlogoutGetRequest +public static class UserlogoutGetRequest
a class that stores the final request inputs @@ -121,7 +121,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [UserlogoutGetRequest](#userlogoutgetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/userusername/Delete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md similarity index 84% rename from samples/client/petstore/java/docs/paths/userusername/Delete.md rename to samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index d9918ee712b..dd10719ecf5 100644 --- a/samples/client/petstore/java/docs/paths/userusername/Delete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -1,6 +1,6 @@ -# Delete +# UserusernameDelete -public class Delete +public class UserusernameDelete A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Delete1](#delete1)
The class that has a delete 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 | [UserusernameDelete1](#userusernamedelete1)
The class that has a delete method to call the endpoint | +| static class | [UserusernameDeleteRequest](#userusernamedeleterequest)
The final request inputs class | +| static class | [UserusernameDeleteNullableRequest](#userusernamedeletenullablerequest)
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 | -## Delete1 -public static class Delete1 extends ApiClient.ApiClient1 implements DeleteOperation
+## UserusernameDelete1 +public static class UserusernameDelete1 extends ApiClient.ApiClient1 implements UserusernameDeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.delete.responses.Code200Response; import org.openapijsonschematools.client.paths.userusername.delete.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.userusername.Delete; +import org.openapijsonschematools.client.paths.userusername.UserusernameDelete; import org.openapijsonschematools.client.paths.userusername.delete.Responses; import java.io.IOException; @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); +UserusernameDelete.UserusernameDelete1 apiClient = new UserusernameDelete.UserusernameDelete1(apiConfiguration, schemaConfiguration); // Map validation @@ -109,15 +109,15 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| UserusernameDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userusername/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | +| [Responses.EndpointResponse](../../paths/userusername/delete/Responses.md#endpointresponse) | delete([UserusernameDeleteRequest](#userusernamedeleterequest) request) | -## DeleteRequest -public static class DeleteRequest
+## UserusernameDeleteRequest +public static class UserusernameDeleteRequest
a class that stores the final request inputs @@ -128,8 +128,8 @@ a class that stores the final request inputs | [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
+## UserusernameDeleteNullableRequest +public static class UserusernameDeleteNullableRequest
a class that stores the initial request inputs @@ -153,7 +153,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [UserusernameDeleteRequest](#userusernamedeleterequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/userusername/Get.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md similarity index 85% rename from samples/client/petstore/java/docs/paths/userusername/Get.md rename to samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index 00672634aab..d39f0452487 100644 --- a/samples/client/petstore/java/docs/paths/userusername/Get.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -1,6 +1,6 @@ -# Get +# UserusernameGet -public class Get +public class UserusernameGet A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Get1](#get1)
The class that has a get 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 | [UserusernameGet1](#userusernameget1)
The class that has a get method to call the endpoint | +| static class | [UserusernameGetRequest](#userusernamegetrequest)
The final request inputs class | +| static class | [UserusernameGetNullableRequest](#userusernamegetnullablerequest)
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 | -## Get1 -public static class Get1 extends ApiClient.ApiClient1 implements GetOperation
+## UserusernameGet1 +public static class UserusernameGet1 extends ApiClient.ApiClient1 implements UserusernameGetOperation
a class that allows one to call the endpoint using a method named get @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.userusername.get.responses.Code20 import org.openapijsonschematools.client.paths.userusername.get.responses.Code400Response; import org.openapijsonschematools.client.paths.userusername.get.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.userusername.Get; +import org.openapijsonschematools.client.paths.userusername.UserusernameGet; import org.openapijsonschematools.client.paths.userusername.get.Responses; import java.io.IOException; @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); +UserusernameGet.UserusernameGet1 apiClient = new UserusernameGet.UserusernameGet1(apiConfiguration, schemaConfiguration); // Map validation @@ -116,15 +116,15 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| UserusernameGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userusername/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [Responses.EndpointResponse](../../paths/userusername/get/Responses.md#endpointresponse) | get([UserusernameGetRequest](#userusernamegetrequest) request) | -## GetRequest -public static class GetRequest
+## UserusernameGetRequest +public static class UserusernameGetRequest
a class that stores the final request inputs @@ -135,8 +135,8 @@ a class that stores the final request inputs | [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
+## UserusernameGetNullableRequest +public static class UserusernameGetNullableRequest
a class that stores the initial request inputs @@ -160,7 +160,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [UserusernameGetRequest](#userusernamegetrequest) | 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 | diff --git a/samples/client/petstore/java/docs/paths/userusername/Put.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md similarity index 87% rename from samples/client/petstore/java/docs/paths/userusername/Put.md rename to samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index f8d1fa60840..dbb7a81a981 100644 --- a/samples/client/petstore/java/docs/paths/userusername/Put.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -1,6 +1,6 @@ -# Put +# UserusernamePut -public class Put +public class UserusernamePut A class that contains necessary endpoint classes - a class that calls the endpoint method using the http verb @@ -11,16 +11,16 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Put1](#put1)
The class that has a put 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 | [UserusernamePut1](#userusernameput1)
The class that has a put method to call the endpoint | +| static class | [UserusernamePutRequest](#userusernameputrequest)
The final request inputs class | +| static class | [UserusernamePutNullableRequest](#userusernameputnullablerequest)
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 | -## Put1 -public static class Put1 extends ApiClient.ApiClient1 implements PutOperation
+## UserusernamePut1 +public static class UserusernamePut1 extends ApiClient.ApiClient1 implements UserusernamePutOperation
a class that allows one to call the endpoint using a method named put @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.put.responses.Code400Response; import org.openapijsonschematools.client.paths.userusername.put.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; -import org.openapijsonschematools.client.paths.userusername.Put; +import org.openapijsonschematools.client.paths.userusername.UserusernamePut; import org.openapijsonschematools.client.paths.userusername.put.Responses; import java.io.IOException; @@ -71,7 +71,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); +UserusernamePut.UserusernamePut1 apiClient = new UserusernamePut.UserusernamePut1(apiConfiguration, schemaConfiguration); User1BoxedMap requestBodyPayload = @@ -98,7 +98,7 @@ User1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -Put.SealedRequestBody requestBody = new Put.ApplicationjsonRequestBody(requestBodyPayload); +UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation PathParameters.PathParametersMap pathParameters = @@ -139,15 +139,15 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| UserusernamePut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | put([PutRequest](#putrequest) request) | +| Void | put([UserusernamePutRequest](#userusernameputrequest) request) | -## PutRequest -public static class PutRequest
+## UserusernamePutRequest +public static class UserusernamePutRequest
a class that stores the final request inputs @@ -159,8 +159,8 @@ a class that stores the final request inputs | [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
+## UserusernamePutNullableRequest +public static class UserusernamePutNullableRequest
a class that stores the initial request inputs @@ -185,7 +185,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [UserusernamePutRequest](#userusernameputrequest) | 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 | diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java index b96500d8de6..08c73e071c4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.anotherfakedummy.Patch; +import org.openapijsonschematools.client.paths.anotherfakedummy.AnotherfakedummyPatch; public class Anotherfakedummy extends ApiClient implements - Patch.PatchOperation + AnotherfakedummyPatch.AnotherfakedummyPatchOperation { public Anotherfakedummy(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java index f1717c68757..983adc651f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java @@ -3,14 +3,14 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.commonparamsubdir.Delete; -import org.openapijsonschematools.client.paths.commonparamsubdir.Get; -import org.openapijsonschematools.client.paths.commonparamsubdir.Post; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirDelete; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirGet; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirPost; public class Commonparamsubdir extends ApiClient implements - Delete.DeleteOperation, - Get.GetOperation, - Post.PostOperation + CommonparamsubdirDelete.CommonparamsubdirDeleteOperation, + CommonparamsubdirGet.CommonparamsubdirGetOperation, + CommonparamsubdirPost.CommonparamsubdirPostOperation { public Commonparamsubdir(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fake.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fake.java index 2cadb3de28b..76ba03537db 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fake.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fake.java @@ -3,16 +3,16 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fake.Delete; -import org.openapijsonschematools.client.paths.fake.Get; -import org.openapijsonschematools.client.paths.fake.Patch; -import org.openapijsonschematools.client.paths.fake.Post; +import org.openapijsonschematools.client.paths.fake.FakeDelete; +import org.openapijsonschematools.client.paths.fake.FakeGet; +import org.openapijsonschematools.client.paths.fake.FakePatch; +import org.openapijsonschematools.client.paths.fake.FakePost; public class Fake extends ApiClient implements - Delete.DeleteOperation, - Get.GetOperation, - Patch.PatchOperation, - Post.PostOperation + FakeDelete.FakeDeleteOperation, + FakeGet.FakeGetOperation, + FakePatch.FakePatchOperation, + FakePost.FakePostOperation { public Fake(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeadditionalpropertieswitharrayofenums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeadditionalpropertieswitharrayofenums.java index 902986e4f1a..5ff78d1e8ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeadditionalpropertieswitharrayofenums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeadditionalpropertieswitharrayofenums.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.Get; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.FakeadditionalpropertieswitharrayofenumsGet; public class Fakeadditionalpropertieswitharrayofenums extends ApiClient implements - Get.GetOperation + FakeadditionalpropertieswitharrayofenumsGet.FakeadditionalpropertieswitharrayofenumsGetOperation { public Fakeadditionalpropertieswitharrayofenums(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithfileschema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithfileschema.java index b29d43748eb..9144a7928f6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithfileschema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithfileschema.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.Put; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.FakebodywithfileschemaPut; public class Fakebodywithfileschema extends ApiClient implements - Put.PutOperation + FakebodywithfileschemaPut.FakebodywithfileschemaPutOperation { public Fakebodywithfileschema(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithqueryparams.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithqueryparams.java index 8ea41376bbe..684edddaf3d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithqueryparams.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithqueryparams.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.Put; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.FakebodywithqueryparamsPut; public class Fakebodywithqueryparams extends ApiClient implements - Put.PutOperation + FakebodywithqueryparamsPut.FakebodywithqueryparamsPutOperation { public Fakebodywithqueryparams(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakecasesensitiveparams.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakecasesensitiveparams.java index 120a353ca22..0b4d03f9f8d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakecasesensitiveparams.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakecasesensitiveparams.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.Put; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.FakecasesensitiveparamsPut; public class Fakecasesensitiveparams extends ApiClient implements - Put.PutOperation + FakecasesensitiveparamsPut.FakecasesensitiveparamsPutOperation { public Fakecasesensitiveparams(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeclassnametest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeclassnametest.java index cfbadfcb722..ec74db271e8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeclassnametest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeclassnametest.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeclassnametest.Patch; +import org.openapijsonschematools.client.paths.fakeclassnametest.FakeclassnametestPatch; public class Fakeclassnametest extends ApiClient implements - Patch.PatchOperation + FakeclassnametestPatch.FakeclassnametestPatchOperation { public Fakeclassnametest(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakedeletecoffeeid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakedeletecoffeeid.java index db4535ddf34..2a525eb3bc5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakedeletecoffeeid.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakedeletecoffeeid.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.Delete; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.FakedeletecoffeeidDelete; public class Fakedeletecoffeeid extends ApiClient implements - Delete.DeleteOperation + FakedeletecoffeeidDelete.FakedeletecoffeeidDeleteOperation { public Fakedeletecoffeeid(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakehealth.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakehealth.java index 58e692b13b4..1f0eaa6541a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakehealth.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakehealth.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakehealth.Get; +import org.openapijsonschematools.client.paths.fakehealth.FakehealthGet; public class Fakehealth extends ApiClient implements - Get.GetOperation + FakehealthGet.FakehealthGetOperation { public Fakehealth(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlineadditionalproperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlineadditionalproperties.java index e528dc7fdf6..786c69bf463 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlineadditionalproperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlineadditionalproperties.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.Post; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.FakeinlineadditionalpropertiesPost; public class Fakeinlineadditionalproperties extends ApiClient implements - Post.PostOperation + FakeinlineadditionalpropertiesPost.FakeinlineadditionalpropertiesPostOperation { public Fakeinlineadditionalproperties(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlinecomposition.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlinecomposition.java index fb535e78d76..0d57ccf3267 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlinecomposition.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlinecomposition.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.Post; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.FakeinlinecompositionPost; public class Fakeinlinecomposition extends ApiClient implements - Post.PostOperation + FakeinlinecompositionPost.FakeinlinecompositionPostOperation { public Fakeinlinecomposition(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonformdata.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonformdata.java index 9417cc26264..6227e45bac9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonformdata.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonformdata.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakejsonformdata.Get; +import org.openapijsonschematools.client.paths.fakejsonformdata.FakejsonformdataGet; public class Fakejsonformdata extends ApiClient implements - Get.GetOperation + FakejsonformdataGet.FakejsonformdataGetOperation { public Fakejsonformdata(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonpatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonpatch.java index 3c8c51c7950..c57487f3c7d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonpatch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonpatch.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakejsonpatch.Patch; +import org.openapijsonschematools.client.paths.fakejsonpatch.FakejsonpatchPatch; public class Fakejsonpatch extends ApiClient implements - Patch.PatchOperation + FakejsonpatchPatch.FakejsonpatchPatchOperation { public Fakejsonpatch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonwithcharset.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonwithcharset.java index e32bd66c62c..9eb98c770f0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonwithcharset.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonwithcharset.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.Post; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.FakejsonwithcharsetPost; public class Fakejsonwithcharset extends ApiClient implements - Post.PostOperation + FakejsonwithcharsetPost.FakejsonwithcharsetPostOperation { public Fakejsonwithcharset(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplerequestbodycontenttypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplerequestbodycontenttypes.java index a0a98250053..627bff34d28 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplerequestbodycontenttypes.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplerequestbodycontenttypes.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.Post; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.FakemultiplerequestbodycontenttypesPost; public class Fakemultiplerequestbodycontenttypes extends ApiClient implements - Post.PostOperation + FakemultiplerequestbodycontenttypesPost.FakemultiplerequestbodycontenttypesPostOperation { public Fakemultiplerequestbodycontenttypes(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultipleresponsebodies.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultipleresponsebodies.java index 6a85170bb25..ddacd36f570 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultipleresponsebodies.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultipleresponsebodies.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.Get; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.FakemultipleresponsebodiesGet; public class Fakemultipleresponsebodies extends ApiClient implements - Get.GetOperation + FakemultipleresponsebodiesGet.FakemultipleresponsebodiesGetOperation { public Fakemultipleresponsebodies(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplesecurities.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplesecurities.java index f5d91eaff14..7b1a9a96309 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplesecurities.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplesecurities.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.Get; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.FakemultiplesecuritiesGet; public class Fakemultiplesecurities extends ApiClient implements - Get.GetOperation + FakemultiplesecuritiesGet.FakemultiplesecuritiesGetOperation { public Fakemultiplesecurities(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeobjinquery.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeobjinquery.java index 054390b63be..27940b0510f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeobjinquery.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeobjinquery.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeobjinquery.Get; +import org.openapijsonschematools.client.paths.fakeobjinquery.FakeobjinqueryGet; public class Fakeobjinquery extends ApiClient implements - Get.GetOperation + FakeobjinqueryGet.FakeobjinqueryGetOperation { public Fakeobjinquery(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeparametercollisions1ababselfab.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeparametercollisions1ababselfab.java index 3980e253303..8b1b3932af1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeparametercollisions1ababselfab.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeparametercollisions1ababselfab.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Post; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Fakeparametercollisions1ababselfabPost; public class Fakeparametercollisions1ababselfab extends ApiClient implements - Post.PostOperation + Fakeparametercollisions1ababselfabPost.Fakeparametercollisions1ababselfabPostOperation { public Fakeparametercollisions1ababselfab(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepemcontenttype.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepemcontenttype.java index 2fe9f5087b6..c49218da6de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepemcontenttype.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepemcontenttype.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakepemcontenttype.Get; +import org.openapijsonschematools.client.paths.fakepemcontenttype.FakepemcontenttypeGet; public class Fakepemcontenttype extends ApiClient implements - Get.GetOperation + FakepemcontenttypeGet.FakepemcontenttypeGetOperation { public Fakepemcontenttype(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepetiduploadimagewithrequiredfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepetiduploadimagewithrequiredfile.java index d5be7e96039..4dfeb2d67ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepetiduploadimagewithrequiredfile.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepetiduploadimagewithrequiredfile.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.Post; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.FakepetiduploadimagewithrequiredfilePost; public class Fakepetiduploadimagewithrequiredfile extends ApiClient implements - Post.PostOperation + FakepetiduploadimagewithrequiredfilePost.FakepetiduploadimagewithrequiredfilePostOperation { public Fakepetiduploadimagewithrequiredfile(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakequeryparamwithjsoncontenttype.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakequeryparamwithjsoncontenttype.java index fbb17e7d0c0..2d2d33dc263 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakequeryparamwithjsoncontenttype.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakequeryparamwithjsoncontenttype.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.Get; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.FakequeryparamwithjsoncontenttypeGet; public class Fakequeryparamwithjsoncontenttype extends ApiClient implements - Get.GetOperation + FakequeryparamwithjsoncontenttypeGet.FakequeryparamwithjsoncontenttypeGetOperation { public Fakequeryparamwithjsoncontenttype(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeredirection.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeredirection.java index efe0033e513..3c9829f474b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeredirection.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeredirection.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeredirection.Get; +import org.openapijsonschematools.client.paths.fakeredirection.FakeredirectionGet; public class Fakeredirection extends ApiClient implements - Get.GetOperation + FakeredirectionGet.FakeredirectionGetOperation { public Fakeredirection(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefobjinquery.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefobjinquery.java index b939a7c7b43..251f8a6ca75 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefobjinquery.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefobjinquery.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefobjinquery.Get; +import org.openapijsonschematools.client.paths.fakerefobjinquery.FakerefobjinqueryGet; public class Fakerefobjinquery extends ApiClient implements - Get.GetOperation + FakerefobjinqueryGet.FakerefobjinqueryGetOperation { public Fakerefobjinquery(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarraymodel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarraymodel.java index 15e1f153ba3..cd0a1fd446c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarraymodel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarraymodel.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.Post; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.FakerefsarraymodelPost; public class Fakerefsarraymodel extends ApiClient implements - Post.PostOperation + FakerefsarraymodelPost.FakerefsarraymodelPostOperation { public Fakerefsarraymodel(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarrayofenums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarrayofenums.java index 211075237b6..4ef73f4af2f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarrayofenums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarrayofenums.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.Post; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.FakerefsarrayofenumsPost; public class Fakerefsarrayofenums extends ApiClient implements - Post.PostOperation + FakerefsarrayofenumsPost.FakerefsarrayofenumsPostOperation { public Fakerefsarrayofenums(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsboolean.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsboolean.java index 9f9d4604bf5..34535d603cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsboolean.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsboolean.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefsboolean.Post; +import org.openapijsonschematools.client.paths.fakerefsboolean.FakerefsbooleanPost; public class Fakerefsboolean extends ApiClient implements - Post.PostOperation + FakerefsbooleanPost.FakerefsbooleanPostOperation { public Fakerefsboolean(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefscomposedoneofnumberwithvalidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefscomposedoneofnumberwithvalidations.java index 7803c3943cc..6691b8d8a15 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefscomposedoneofnumberwithvalidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefscomposedoneofnumberwithvalidations.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.Post; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.FakerefscomposedoneofnumberwithvalidationsPost; public class Fakerefscomposedoneofnumberwithvalidations extends ApiClient implements - Post.PostOperation + FakerefscomposedoneofnumberwithvalidationsPost.FakerefscomposedoneofnumberwithvalidationsPostOperation { public Fakerefscomposedoneofnumberwithvalidations(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsenum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsenum.java index 45d740d1e97..cb4a852888e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsenum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsenum.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefsenum.Post; +import org.openapijsonschematools.client.paths.fakerefsenum.FakerefsenumPost; public class Fakerefsenum extends ApiClient implements - Post.PostOperation + FakerefsenumPost.FakerefsenumPostOperation { public Fakerefsenum(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsmammal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsmammal.java index 5ba915d49ad..7ed9558c5cf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsmammal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsmammal.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefsmammal.Post; +import org.openapijsonschematools.client.paths.fakerefsmammal.FakerefsmammalPost; public class Fakerefsmammal extends ApiClient implements - Post.PostOperation + FakerefsmammalPost.FakerefsmammalPostOperation { public Fakerefsmammal(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsnumber.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsnumber.java index 8be0ed82a67..53624771c0d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsnumber.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsnumber.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefsnumber.Post; +import org.openapijsonschematools.client.paths.fakerefsnumber.FakerefsnumberPost; public class Fakerefsnumber extends ApiClient implements - Post.PostOperation + FakerefsnumberPost.FakerefsnumberPostOperation { public Fakerefsnumber(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsobjectmodelwithrefprops.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsobjectmodelwithrefprops.java index 8efd99ec952..da355974eaf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsobjectmodelwithrefprops.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsobjectmodelwithrefprops.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.Post; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.FakerefsobjectmodelwithrefpropsPost; public class Fakerefsobjectmodelwithrefprops extends ApiClient implements - Post.PostOperation + FakerefsobjectmodelwithrefpropsPost.FakerefsobjectmodelwithrefpropsPostOperation { public Fakerefsobjectmodelwithrefprops(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsstring.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsstring.java index 0e1120f0490..06b029fddad 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsstring.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsstring.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakerefsstring.Post; +import org.openapijsonschematools.client.paths.fakerefsstring.FakerefsstringPost; public class Fakerefsstring extends ApiClient implements - Post.PostOperation + FakerefsstringPost.FakerefsstringPostOperation { public Fakerefsstring(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeresponsewithoutschema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeresponsewithoutschema.java index 2b3b017a001..8fe4a1f0335 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeresponsewithoutschema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeresponsewithoutschema.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.Get; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.FakeresponsewithoutschemaGet; public class Fakeresponsewithoutschema extends ApiClient implements - Get.GetOperation + FakeresponsewithoutschemaGet.FakeresponsewithoutschemaGetOperation { public Fakeresponsewithoutschema(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Faketestqueryparamters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Faketestqueryparamters.java index e304bfcefab..9ec454c9adb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Faketestqueryparamters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Faketestqueryparamters.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.faketestqueryparamters.Put; +import org.openapijsonschematools.client.paths.faketestqueryparamters.FaketestqueryparamtersPut; public class Faketestqueryparamters extends ApiClient implements - Put.PutOperation + FaketestqueryparamtersPut.FaketestqueryparamtersPutOperation { public Faketestqueryparamters(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploaddownloadfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploaddownloadfile.java index 49440fbd9e2..31144e1f7e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploaddownloadfile.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploaddownloadfile.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.Post; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.FakeuploaddownloadfilePost; public class Fakeuploaddownloadfile extends ApiClient implements - Post.PostOperation + FakeuploaddownloadfilePost.FakeuploaddownloadfilePostOperation { public Fakeuploaddownloadfile(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfile.java index 460e055ed5a..a05e716499d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfile.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfile.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeuploadfile.Post; +import org.openapijsonschematools.client.paths.fakeuploadfile.FakeuploadfilePost; public class Fakeuploadfile extends ApiClient implements - Post.PostOperation + FakeuploadfilePost.FakeuploadfilePostOperation { public Fakeuploadfile(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfiles.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfiles.java index e1fab8525f2..073872527ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfiles.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfiles.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeuploadfiles.Post; +import org.openapijsonschematools.client.paths.fakeuploadfiles.FakeuploadfilesPost; public class Fakeuploadfiles extends ApiClient implements - Post.PostOperation + FakeuploadfilesPost.FakeuploadfilesPostOperation { public Fakeuploadfiles(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakewildcardresponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakewildcardresponses.java index 2b78ed8990a..57f27bd0ff4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakewildcardresponses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakewildcardresponses.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakewildcardresponses.Get; +import org.openapijsonschematools.client.paths.fakewildcardresponses.FakewildcardresponsesGet; public class Fakewildcardresponses extends ApiClient implements - Get.GetOperation + FakewildcardresponsesGet.FakewildcardresponsesGetOperation { public Fakewildcardresponses(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Foo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Foo.java index 60f398da011..5af065e8818 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Foo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Foo.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.foo.Get; +import org.openapijsonschematools.client.paths.foo.FooGet; public class Foo extends ApiClient implements - Get.GetOperation + FooGet.FooGetOperation { public Foo(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Pet.java index e64187644af..c006d00badd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Pet.java @@ -3,12 +3,12 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.pet.Post; -import org.openapijsonschematools.client.paths.pet.Put; +import org.openapijsonschematools.client.paths.pet.PetPost; +import org.openapijsonschematools.client.paths.pet.PetPut; public class Pet extends ApiClient implements - Post.PostOperation, - Put.PutOperation + PetPost.PetPostOperation, + PetPut.PetPutOperation { public Pet(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbystatus.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbystatus.java index 26340368d45..ed24441d5fb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbystatus.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbystatus.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.petfindbystatus.Get; +import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusGet; public class Petfindbystatus extends ApiClient implements - Get.GetOperation + PetfindbystatusGet.PetfindbystatusGetOperation { public Petfindbystatus(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbytags.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbytags.java index 1acb4910d89..acf50abb14b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbytags.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbytags.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.petfindbytags.Get; +import org.openapijsonschematools.client.paths.petfindbytags.PetfindbytagsGet; public class Petfindbytags extends ApiClient implements - Get.GetOperation + PetfindbytagsGet.PetfindbytagsGetOperation { public Petfindbytags(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetid.java index eddc15f7999..3916478e532 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetid.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetid.java @@ -3,14 +3,14 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.petpetid.Delete; -import org.openapijsonschematools.client.paths.petpetid.Get; -import org.openapijsonschematools.client.paths.petpetid.Post; +import org.openapijsonschematools.client.paths.petpetid.PetpetidDelete; +import org.openapijsonschematools.client.paths.petpetid.PetpetidGet; +import org.openapijsonschematools.client.paths.petpetid.PetpetidPost; public class Petpetid extends ApiClient implements - Delete.DeleteOperation, - Get.GetOperation, - Post.PostOperation + PetpetidDelete.PetpetidDeleteOperation, + PetpetidGet.PetpetidGetOperation, + PetpetidPost.PetpetidPostOperation { public Petpetid(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetiduploadimage.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetiduploadimage.java index fcc5f547542..8a24f579fac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetiduploadimage.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetiduploadimage.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.petpetiduploadimage.Post; +import org.openapijsonschematools.client.paths.petpetiduploadimage.PetpetiduploadimagePost; public class Petpetiduploadimage extends ApiClient implements - Post.PostOperation + PetpetiduploadimagePost.PetpetiduploadimagePostOperation { public Petpetiduploadimage(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Solidus.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Solidus.java index d4a5ba55c59..0fb3e45facd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Solidus.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Solidus.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.solidus.Get; +import org.openapijsonschematools.client.paths.solidus.SolidusGet; public class Solidus extends ApiClient implements - Get.GetOperation + SolidusGet.SolidusGetOperation { public Solidus(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeinventory.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeinventory.java index 427a6023a0d..282b7afd29b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeinventory.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeinventory.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.storeinventory.Get; +import org.openapijsonschematools.client.paths.storeinventory.StoreinventoryGet; public class Storeinventory extends ApiClient implements - Get.GetOperation + StoreinventoryGet.StoreinventoryGetOperation { public Storeinventory(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorder.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorder.java index f96c91e28be..9d80f15ee88 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorder.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorder.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.storeorder.Post; +import org.openapijsonschematools.client.paths.storeorder.StoreorderPost; public class Storeorder extends ApiClient implements - Post.PostOperation + StoreorderPost.StoreorderPostOperation { public Storeorder(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorderorderid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorderorderid.java index 2ae9840bfb3..ac437d1c7c6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorderorderid.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorderorderid.java @@ -3,12 +3,12 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.storeorderorderid.Delete; -import org.openapijsonschematools.client.paths.storeorderorderid.Get; +import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidDelete; +import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidGet; public class Storeorderorderid extends ApiClient implements - Delete.DeleteOperation, - Get.GetOperation + StoreorderorderidDelete.StoreorderorderidDeleteOperation, + StoreorderorderidGet.StoreorderorderidGetOperation { public Storeorderorderid(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/User.java index dc6340be833..10f8be6811e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/User.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.user.Post; +import org.openapijsonschematools.client.paths.user.UserPost; public class User extends ApiClient implements - Post.PostOperation + UserPost.UserPostOperation { public User(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewitharray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewitharray.java index 10a36f1bcf2..a3606f15e38 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewitharray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewitharray.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.usercreatewitharray.Post; +import org.openapijsonschematools.client.paths.usercreatewitharray.UsercreatewitharrayPost; public class Usercreatewitharray extends ApiClient implements - Post.PostOperation + UsercreatewitharrayPost.UsercreatewitharrayPostOperation { public Usercreatewitharray(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.java index 49c1c2d4462..8e93076b682 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.usercreatewithlist.Post; +import org.openapijsonschematools.client.paths.usercreatewithlist.UsercreatewithlistPost; public class Usercreatewithlist extends ApiClient implements - Post.PostOperation + UsercreatewithlistPost.UsercreatewithlistPostOperation { public Usercreatewithlist(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java index c078435825e..e3a55277bd1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.userlogin.Get; +import org.openapijsonschematools.client.paths.userlogin.UserloginGet; public class Userlogin extends ApiClient implements - Get.GetOperation + UserloginGet.UserloginGetOperation { public Userlogin(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java index 5b58353ec75..c49f22c40b0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.userlogout.Get; +import org.openapijsonschematools.client.paths.userlogout.UserlogoutGet; public class Userlogout extends ApiClient implements - Get.GetOperation + UserlogoutGet.UserlogoutGetOperation { public Userlogout(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java index 2b967538231..0b50eb4f0d0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java @@ -3,14 +3,14 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.userusername.Delete; -import org.openapijsonschematools.client.paths.userusername.Get; -import org.openapijsonschematools.client.paths.userusername.Put; +import org.openapijsonschematools.client.paths.userusername.UserusernameDelete; +import org.openapijsonschematools.client.paths.userusername.UserusernameGet; +import org.openapijsonschematools.client.paths.userusername.UserusernamePut; public class Userusername extends ApiClient implements - Delete.DeleteOperation, - Get.GetOperation, - Put.PutOperation + UserusernameDelete.UserusernameDeleteOperation, + UserusernameGet.UserusernameGetOperation, + UserusernamePut.UserusernamePutOperation { public Userusername(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Anotherfake.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Anotherfake.java index fec33d32829..844875c8f4b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Anotherfake.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Anotherfake.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.anotherfakedummy.Patch; +import org.openapijsonschematools.client.paths.anotherfakedummy.AnotherfakedummyPatch; public class Anotherfake extends ApiClient implements - Patch.Model123TestSpecialTagsOperation + AnotherfakedummyPatch.Model123TestSpecialTagsOperation { public Anotherfake(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Default.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Default.java index 6873682cd36..b55a09a58f4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Default.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Default.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.foo.Get; +import org.openapijsonschematools.client.paths.foo.FooGet; public class Default extends ApiClient implements - Get.FooGetOperation + FooGet.FooGetOperation { public Default(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fake.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fake.java index d1889d8636b..2694e40d4c0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fake.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fake.java @@ -3,94 +3,94 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakejsonpatch.Patch; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.Post; -import org.openapijsonschematools.client.paths.commonparamsubdir.Delete; -import org.openapijsonschematools.client.paths.commonparamsubdir.Get; -import org.openapijsonschematools.client.paths.commonparamsubdir.Post; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.Put; -import org.openapijsonschematools.client.paths.fakewildcardresponses.Get; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.Put; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.Post; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.Post; -import org.openapijsonschematools.client.paths.fakehealth.Get; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.Post; -import org.openapijsonschematools.client.paths.fakerefobjinquery.Get; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.Put; -import org.openapijsonschematools.client.paths.fakerefsenum.Post; -import org.openapijsonschematools.client.paths.fakeredirection.Get; -import org.openapijsonschematools.client.paths.fakeuploadfile.Post; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.Post; -import org.openapijsonschematools.client.paths.fake.Delete; -import org.openapijsonschematools.client.paths.fake.Get; -import org.openapijsonschematools.client.paths.fake.Patch; -import org.openapijsonschematools.client.paths.fake.Post; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.Post; -import org.openapijsonschematools.client.paths.fakepemcontenttype.Get; -import org.openapijsonschematools.client.paths.fakerefsnumber.Post; -import org.openapijsonschematools.client.paths.fakerefsstring.Post; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.Post; -import org.openapijsonschematools.client.paths.fakerefsmammal.Post; -import org.openapijsonschematools.client.paths.solidus.Get; -import org.openapijsonschematools.client.paths.fakerefsboolean.Post; -import org.openapijsonschematools.client.paths.fakejsonformdata.Get; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Post; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.Get; -import org.openapijsonschematools.client.paths.fakeobjinquery.Get; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.Get; -import org.openapijsonschematools.client.paths.faketestqueryparamters.Put; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.Get; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.Get; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.Post; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.Post; -import org.openapijsonschematools.client.paths.fakeuploadfiles.Post; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.Get; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.Delete; +import org.openapijsonschematools.client.paths.fakejsonpatch.FakejsonpatchPatch; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.FakerefsarrayofenumsPost; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirDelete; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirGet; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirPost; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.FakecasesensitiveparamsPut; +import org.openapijsonschematools.client.paths.fakewildcardresponses.FakewildcardresponsesGet; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.FakebodywithqueryparamsPut; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.FakejsonwithcharsetPost; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.FakerefsarraymodelPost; +import org.openapijsonschematools.client.paths.fakehealth.FakehealthGet; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.FakerefscomposedoneofnumberwithvalidationsPost; +import org.openapijsonschematools.client.paths.fakerefobjinquery.FakerefobjinqueryGet; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.FakebodywithfileschemaPut; +import org.openapijsonschematools.client.paths.fakerefsenum.FakerefsenumPost; +import org.openapijsonschematools.client.paths.fakeredirection.FakeredirectionGet; +import org.openapijsonschematools.client.paths.fakeuploadfile.FakeuploadfilePost; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.FakeinlinecompositionPost; +import org.openapijsonschematools.client.paths.fake.FakeDelete; +import org.openapijsonschematools.client.paths.fake.FakeGet; +import org.openapijsonschematools.client.paths.fake.FakePatch; +import org.openapijsonschematools.client.paths.fake.FakePost; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.FakerefsobjectmodelwithrefpropsPost; +import org.openapijsonschematools.client.paths.fakepemcontenttype.FakepemcontenttypeGet; +import org.openapijsonschematools.client.paths.fakerefsnumber.FakerefsnumberPost; +import org.openapijsonschematools.client.paths.fakerefsstring.FakerefsstringPost; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.FakeinlineadditionalpropertiesPost; +import org.openapijsonschematools.client.paths.fakerefsmammal.FakerefsmammalPost; +import org.openapijsonschematools.client.paths.solidus.SolidusGet; +import org.openapijsonschematools.client.paths.fakerefsboolean.FakerefsbooleanPost; +import org.openapijsonschematools.client.paths.fakejsonformdata.FakejsonformdataGet; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Fakeparametercollisions1ababselfabPost; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.FakequeryparamwithjsoncontenttypeGet; +import org.openapijsonschematools.client.paths.fakeobjinquery.FakeobjinqueryGet; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.FakemultiplesecuritiesGet; +import org.openapijsonschematools.client.paths.faketestqueryparamters.FaketestqueryparamtersPut; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.FakemultipleresponsebodiesGet; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.FakeresponsewithoutschemaGet; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.FakemultiplerequestbodycontenttypesPost; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.FakeuploaddownloadfilePost; +import org.openapijsonschematools.client.paths.fakeuploadfiles.FakeuploadfilesPost; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.FakeadditionalpropertieswitharrayofenumsGet; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.FakedeletecoffeeidDelete; public class Fake extends ApiClient implements - Patch.JsonPatchOperation - Post.ArrayOfEnumsOperation - Delete.DeleteCommonParamOperation, - Get.GetCommonParamOperation, - Post.PostCommonParamOperation - Put.CaseSensitiveParamsOperation - Get.WildCardResponsesOperation - Put.BodyWithQueryParamsOperation - Post.JsonWithCharsetOperation - Post.ArrayModelOperation - Get.FakeHealthGetOperation - Post.ComposedOneOfDifferentTypesOperation - Get.RefObjectInQueryOperation - Put.BodyWithFileSchemaOperation - Post.StringEnumOperation - Get.RedirectionOperation - Post.UploadFileOperation - Post.InlineCompositionOperation - Delete.GroupParametersOperation, - Get.EnumParametersOperation, - Patch.ClientModelOperation, - Post.EndpointParametersOperation - Post.ObjectModelWithRefPropsOperation - Get.PemContentTypeOperation - Post.NumberWithValidationsOperation - Post.ModelStringOperation - Post.InlineAdditionalPropertiesOperation - Post.MammalOperation - Get.SlashRouteOperation - Post.ModelBooleanOperation - Get.JsonFormDataOperation - Post.ParameterCollisionsOperation - Get.QueryParamWithJsonContentTypeOperation - Get.ObjectInQueryOperation - Get.MultipleSecuritiesOperation - Put.QueryParameterCollectionFormatOperation - Get.MultipleResponseBodiesOperation - Get.ResponseWithoutSchemaOperation - Post.MultipleRequestBodyContentTypesOperation - Post.UploadDownloadFileOperation - Post.UploadFilesOperation - Get.AdditionalPropertiesWithArrayOfEnumsOperation - Delete.DeleteCoffeeOperation + FakejsonpatchPatch.JsonPatchOperation, + FakerefsarrayofenumsPost.ArrayOfEnumsOperation, + CommonparamsubdirDelete.DeleteCommonParamOperation, + CommonparamsubdirGet.GetCommonParamOperation, + CommonparamsubdirPost.PostCommonParamOperation, + FakecasesensitiveparamsPut.CaseSensitiveParamsOperation, + FakewildcardresponsesGet.WildCardResponsesOperation, + FakebodywithqueryparamsPut.BodyWithQueryParamsOperation, + FakejsonwithcharsetPost.JsonWithCharsetOperation, + FakerefsarraymodelPost.ArrayModelOperation, + FakehealthGet.FakeHealthGetOperation, + FakerefscomposedoneofnumberwithvalidationsPost.ComposedOneOfDifferentTypesOperation, + FakerefobjinqueryGet.RefObjectInQueryOperation, + FakebodywithfileschemaPut.BodyWithFileSchemaOperation, + FakerefsenumPost.StringEnumOperation, + FakeredirectionGet.RedirectionOperation, + FakeuploadfilePost.UploadFileOperation, + FakeinlinecompositionPost.InlineCompositionOperation, + FakeDelete.GroupParametersOperation, + FakeGet.EnumParametersOperation, + FakePatch.ClientModelOperation, + FakePost.EndpointParametersOperation, + FakerefsobjectmodelwithrefpropsPost.ObjectModelWithRefPropsOperation, + FakepemcontenttypeGet.PemContentTypeOperation, + FakerefsnumberPost.NumberWithValidationsOperation, + FakerefsstringPost.ModelStringOperation, + FakeinlineadditionalpropertiesPost.InlineAdditionalPropertiesOperation, + FakerefsmammalPost.MammalOperation, + SolidusGet.SlashRouteOperation, + FakerefsbooleanPost.ModelBooleanOperation, + FakejsonformdataGet.JsonFormDataOperation, + Fakeparametercollisions1ababselfabPost.ParameterCollisionsOperation, + FakequeryparamwithjsoncontenttypeGet.QueryParamWithJsonContentTypeOperation, + FakeobjinqueryGet.ObjectInQueryOperation, + FakemultiplesecuritiesGet.MultipleSecuritiesOperation, + FaketestqueryparamtersPut.QueryParameterCollectionFormatOperation, + FakemultipleresponsebodiesGet.MultipleResponseBodiesOperation, + FakeresponsewithoutschemaGet.ResponseWithoutSchemaOperation, + FakemultiplerequestbodycontenttypesPost.MultipleRequestBodyContentTypesOperation, + FakeuploaddownloadfilePost.UploadDownloadFileOperation, + FakeuploadfilesPost.UploadFilesOperation, + FakeadditionalpropertieswitharrayofenumsGet.AdditionalPropertiesWithArrayOfEnumsOperation, + FakedeletecoffeeidDelete.DeleteCoffeeOperation { public Fake(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fakeclassnametags123.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fakeclassnametags123.java index 5105a8864fd..2a727a57e08 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fakeclassnametags123.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Fakeclassnametags123.java @@ -3,10 +3,10 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakeclassnametest.Patch; +import org.openapijsonschematools.client.paths.fakeclassnametest.FakeclassnametestPatch; public class Fakeclassnametags123 extends ApiClient implements - Patch.ClassnameOperation + FakeclassnametestPatch.ClassnameOperation { public Fakeclassnametags123(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Pet.java index 4bf29eb9b23..5c0c6e39569 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Pet.java @@ -3,26 +3,26 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.Post; -import org.openapijsonschematools.client.paths.pet.Post; -import org.openapijsonschematools.client.paths.pet.Put; -import org.openapijsonschematools.client.paths.petfindbytags.Get; -import org.openapijsonschematools.client.paths.petfindbystatus.Get; -import org.openapijsonschematools.client.paths.petpetiduploadimage.Post; -import org.openapijsonschematools.client.paths.petpetid.Delete; -import org.openapijsonschematools.client.paths.petpetid.Get; -import org.openapijsonschematools.client.paths.petpetid.Post; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.FakepetiduploadimagewithrequiredfilePost; +import org.openapijsonschematools.client.paths.pet.PetPost; +import org.openapijsonschematools.client.paths.pet.PetPut; +import org.openapijsonschematools.client.paths.petfindbytags.PetfindbytagsGet; +import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusGet; +import org.openapijsonschematools.client.paths.petpetiduploadimage.PetpetiduploadimagePost; +import org.openapijsonschematools.client.paths.petpetid.PetpetidDelete; +import org.openapijsonschematools.client.paths.petpetid.PetpetidGet; +import org.openapijsonschematools.client.paths.petpetid.PetpetidPost; public class Pet extends ApiClient implements - Post.UploadFileWithRequiredFileOperation - Post.AddPetOperation, - Put.UpdatePetOperation - Get.FindPetsByTagsOperation - Get.FindPetsByStatusOperation - Post.UploadImageOperation - Delete.DeletePetOperation, - Get.GetPetByIdOperation, - Post.UpdatePetWithFormOperation + FakepetiduploadimagewithrequiredfilePost.UploadFileWithRequiredFileOperation, + PetPost.AddPetOperation, + PetPut.UpdatePetOperation, + PetfindbytagsGet.FindPetsByTagsOperation, + PetfindbystatusGet.FindPetsByStatusOperation, + PetpetiduploadimagePost.UploadImageOperation, + PetpetidDelete.DeletePetOperation, + PetpetidGet.GetPetByIdOperation, + PetpetidPost.UpdatePetWithFormOperation { public Pet(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Store.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Store.java index c299790cb9d..04d51443ec5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Store.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/Store.java @@ -3,16 +3,16 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.storeinventory.Get; -import org.openapijsonschematools.client.paths.storeorderorderid.Delete; -import org.openapijsonschematools.client.paths.storeorderorderid.Get; -import org.openapijsonschematools.client.paths.storeorder.Post; +import org.openapijsonschematools.client.paths.storeinventory.StoreinventoryGet; +import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidDelete; +import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidGet; +import org.openapijsonschematools.client.paths.storeorder.StoreorderPost; public class Store extends ApiClient implements - Get.GetInventoryOperation - Delete.DeleteOrderOperation, - Get.GetOrderByIdOperation - Post.PlaceOrderOperation + StoreinventoryGet.GetInventoryOperation, + StoreorderorderidDelete.DeleteOrderOperation, + StoreorderorderidGet.GetOrderByIdOperation, + StoreorderPost.PlaceOrderOperation { public Store(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/User.java index 9dee85971ca..f8c47d501e1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/tags/User.java @@ -3,24 +3,24 @@ import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.paths.userlogout.Get; -import org.openapijsonschematools.client.paths.usercreatewitharray.Post; -import org.openapijsonschematools.client.paths.user.Post; -import org.openapijsonschematools.client.paths.userlogin.Get; -import org.openapijsonschematools.client.paths.userusername.Delete; -import org.openapijsonschematools.client.paths.userusername.Get; -import org.openapijsonschematools.client.paths.userusername.Put; -import org.openapijsonschematools.client.paths.usercreatewithlist.Post; +import org.openapijsonschematools.client.paths.userlogout.UserlogoutGet; +import org.openapijsonschematools.client.paths.usercreatewitharray.UsercreatewitharrayPost; +import org.openapijsonschematools.client.paths.user.UserPost; +import org.openapijsonschematools.client.paths.userlogin.UserloginGet; +import org.openapijsonschematools.client.paths.userusername.UserusernameDelete; +import org.openapijsonschematools.client.paths.userusername.UserusernameGet; +import org.openapijsonschematools.client.paths.userusername.UserusernamePut; +import org.openapijsonschematools.client.paths.usercreatewithlist.UsercreatewithlistPost; public class User extends ApiClient implements - Get.LogoutUserOperation - Post.CreateUsersWithArrayInputOperation - Post.CreateUserOperation - Get.LoginUserOperation - Delete.DeleteUserOperation, - Get.GetUserByNameOperation, - Put.UpdateUserOperation - Post.CreateUsersWithListInputOperation + UserlogoutGet.LogoutUserOperation, + UsercreatewitharrayPost.CreateUsersWithArrayInputOperation, + UserPost.CreateUserOperation, + UserloginGet.LoginUserOperation, + UserusernameDelete.DeleteUserOperation, + UserusernameGet.GetUserByNameOperation, + UserusernamePut.UpdateUserOperation, + UsercreatewithlistPost.CreateUsersWithListInputOperation { public User(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java index 303d06f91d5..bcab92e2a98 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/Patch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Patch { - private static class PatchProvider { +public class AnotherfakedummyPatch { + private static class AnotherfakedummyPatchProvider { private static final String method = "patch"; public static Responses.EndpointResponse patch( - PatchRequest request, + AnotherfakedummyPatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse patch( } } - public interface PatchOperation { + public interface AnotherfakedummyPatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse patch(AnotherfakedummyPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return AnotherfakedummyPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface Model123TestSpecialTagsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse model123TestSpecialTags(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse model123TestSpecialTags(AnotherfakedummyPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return AnotherfakedummyPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Patch1 extends ApiClient implements PatchOperation { - public Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class AnotherfakedummyPatch1 extends ApiClient implements AnotherfakedummyPatchOperation { + public AnotherfakedummyPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PatchRequest { + public static class AnotherfakedummyPatchRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PatchRequest( + public AnotherfakedummyPatchRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PatchRequest( } } - public static class PatchNullableRequest { + public static class AnotherfakedummyPatchNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PatchNullableRequest getInstance(); - T getBuilderAfterServerIndex(PatchNullableRequest instance); + AnotherfakedummyPatchNullableRequest getInstance(); + T getBuilderAfterServerIndex(AnotherfakedummyPatchNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PatchNullableRequest getInstance(); - T getBuilderAfterTimeout(PatchNullableRequest instance); + AnotherfakedummyPatchNullableRequest getInstance(); + T getBuilderAfterTimeout(AnotherfakedummyPatchNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PatchNullableRequest getInstance(); - T getBuilderAfterRequestBody(PatchNullableRequest instance); + AnotherfakedummyPatchNullableRequest getInstance(); + T getBuilderAfterRequestBody(AnotherfakedummyPatchNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PatchNullableRequest instance; + private final AnotherfakedummyPatchNullableRequest instance; - public Patch0RequestBuilder(PatchNullableRequest instance) { + public Patch0RequestBuilder(AnotherfakedummyPatchNullableRequest instance) { this.instance = instance; } - public PatchRequest build() { + public AnotherfakedummyPatchRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PatchRequest( + return new AnotherfakedummyPatchRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PatchNullableRequest getInstance() { + public AnotherfakedummyPatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterServerIndex(AnotherfakedummyPatchNullableRequest instance) { return this; } - public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterTimeout(AnotherfakedummyPatchNullableRequest instance) { return this; } } public static class PatchRequestBuilder implements SetterForRequestBody { - private final PatchNullableRequest instance; + private final AnotherfakedummyPatchNullableRequest instance; public PatchRequestBuilder() { - this.instance = new PatchNullableRequest(); + this.instance = new AnotherfakedummyPatchNullableRequest(); } - public PatchNullableRequest getInstance() { + public AnotherfakedummyPatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterRequestBody(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterRequestBody(AnotherfakedummyPatchNullableRequest instance) { return new Patch0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Delete.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java index bafcf8271f5..5e3e4ccd2ba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Delete { - private static class DeleteProvider { +public class CommonparamsubdirDelete { + private static class CommonparamsubdirDeleteProvider { private static final String method = "delete"; public static Responses.EndpointResponse delete( - DeleteRequest request, + CommonparamsubdirDeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -61,12 +61,12 @@ public static Responses.EndpointResponse delete( } } - public interface DeleteOperation { + public interface CommonparamsubdirDeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse delete(CommonparamsubdirDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return CommonparamsubdirDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -74,24 +74,24 @@ public interface DeleteCommonParamOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse deleteCommonParam(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse deleteCommonParam(CommonparamsubdirDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return CommonparamsubdirDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Delete1 extends ApiClient implements DeleteOperation { - public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class CommonparamsubdirDelete1 extends ApiClient implements CommonparamsubdirDeleteOperation { + public CommonparamsubdirDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class DeleteRequest { + public static class CommonparamsubdirDeleteRequest { public PathParameters.PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public DeleteRequest( + public CommonparamsubdirDeleteRequest( PathParameters.PathParametersMap pathParameters, HeaderParameters.@Nullable HeaderParametersMap headerParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -104,7 +104,7 @@ public DeleteRequest( } } - public static class DeleteNullableRequest { + public static class CommonparamsubdirDeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -112,8 +112,8 @@ public static class DeleteNullableRequest { } public interface SetterForHeaderParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); + CommonparamsubdirDeleteNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(CommonparamsubdirDeleteNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -122,8 +122,8 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); + CommonparamsubdirDeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(CommonparamsubdirDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -132,8 +132,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); + CommonparamsubdirDeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(CommonparamsubdirDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -142,8 +142,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); + CommonparamsubdirDeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(CommonparamsubdirDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -152,18 +152,18 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForTimeout { - private final DeleteNullableRequest instance; + private final CommonparamsubdirDeleteNullableRequest instance; - public Delete0RequestBuilder(DeleteNullableRequest instance) { + public Delete0RequestBuilder(CommonparamsubdirDeleteNullableRequest instance) { this.instance = instance; } - public DeleteRequest build() { + public CommonparamsubdirDeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new DeleteRequest( + return new CommonparamsubdirDeleteRequest( pathParameters, instance.headerParameters, instance.serverIndex, @@ -171,34 +171,34 @@ public DeleteRequest build() { ); } - public DeleteNullableRequest getInstance() { + public CommonparamsubdirDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterHeaderParameters(CommonparamsubdirDeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(CommonparamsubdirDeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(CommonparamsubdirDeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; + private final CommonparamsubdirDeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); + this.instance = new CommonparamsubdirDeleteNullableRequest(); } - public DeleteNullableRequest getInstance() { + public CommonparamsubdirDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterPathParameters(CommonparamsubdirDeleteNullableRequest instance) { return new Delete0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java index bc9265e6ecb..5e3d7e031c2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class CommonparamsubdirGet { + private static class CommonparamsubdirGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + CommonparamsubdirGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface CommonparamsubdirGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(CommonparamsubdirGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return CommonparamsubdirGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,24 +75,24 @@ public interface GetCommonParamOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getCommonParam(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getCommonParam(CommonparamsubdirGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return CommonparamsubdirGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class CommonparamsubdirGet1 extends ApiClient implements CommonparamsubdirGetOperation { + public CommonparamsubdirGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class CommonparamsubdirGetRequest { public PathParameters.PathParametersMap pathParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public GetRequest( + public CommonparamsubdirGetRequest( PathParameters.PathParametersMap pathParameters, QueryParameters.@Nullable QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -105,7 +105,7 @@ public GetRequest( } } - public static class GetNullableRequest { + public static class CommonparamsubdirGetNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -113,8 +113,8 @@ public static class GetNullableRequest { } public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); + CommonparamsubdirGetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(CommonparamsubdirGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -123,8 +123,8 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); + CommonparamsubdirGetNullableRequest getInstance(); + T getBuilderAfterServerIndex(CommonparamsubdirGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -133,8 +133,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); + CommonparamsubdirGetNullableRequest getInstance(); + T getBuilderAfterTimeout(CommonparamsubdirGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -143,8 +143,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(GetNullableRequest instance); + CommonparamsubdirGetNullableRequest getInstance(); + T getBuilderAfterPathParameters(CommonparamsubdirGetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -153,18 +153,18 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Get0RequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; + private final CommonparamsubdirGetNullableRequest instance; - public Get0RequestBuilder(GetNullableRequest instance) { + public Get0RequestBuilder(CommonparamsubdirGetNullableRequest instance) { this.instance = instance; } - public GetRequest build() { + public CommonparamsubdirGetRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new GetRequest( + return new CommonparamsubdirGetRequest( pathParameters, instance.queryParameters, instance.serverIndex, @@ -172,34 +172,34 @@ public GetRequest build() { ); } - public GetNullableRequest getInstance() { + public CommonparamsubdirGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterQueryParameters(CommonparamsubdirGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(CommonparamsubdirGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(CommonparamsubdirGetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForPathParameters { - private final GetNullableRequest instance; + private final CommonparamsubdirGetNullableRequest instance; public GetRequestBuilder() { - this.instance = new GetNullableRequest(); + this.instance = new CommonparamsubdirGetNullableRequest(); } - public GetNullableRequest getInstance() { + public CommonparamsubdirGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterPathParameters(CommonparamsubdirGetNullableRequest instance) { return new Get0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java index bbe08458abb..efaf22f9b92 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class CommonparamsubdirPost { + private static class CommonparamsubdirPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + CommonparamsubdirPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -61,12 +61,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface CommonparamsubdirPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(CommonparamsubdirPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return CommonparamsubdirPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -74,24 +74,24 @@ public interface PostCommonParamOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse postCommonParam(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse postCommonParam(CommonparamsubdirPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return CommonparamsubdirPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class CommonparamsubdirPost1 extends ApiClient implements CommonparamsubdirPostOperation { + public CommonparamsubdirPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class CommonparamsubdirPostRequest { public PathParameters.PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PostRequest( + public CommonparamsubdirPostRequest( PathParameters.PathParametersMap pathParameters, HeaderParameters.@Nullable HeaderParametersMap headerParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -104,7 +104,7 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class CommonparamsubdirPostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -112,8 +112,8 @@ public static class PostNullableRequest { } public interface SetterForHeaderParameters { - PostNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(PostNullableRequest instance); + CommonparamsubdirPostNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(CommonparamsubdirPostNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -122,8 +122,8 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + CommonparamsubdirPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(CommonparamsubdirPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -132,8 +132,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + CommonparamsubdirPostNullableRequest getInstance(); + T getBuilderAfterTimeout(CommonparamsubdirPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -142,8 +142,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); + CommonparamsubdirPostNullableRequest getInstance(); + T getBuilderAfterPathParameters(CommonparamsubdirPostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -152,18 +152,18 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final CommonparamsubdirPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(CommonparamsubdirPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public CommonparamsubdirPostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new CommonparamsubdirPostRequest( pathParameters, instance.headerParameters, instance.serverIndex, @@ -171,34 +171,34 @@ public PostRequest build() { ); } - public PostNullableRequest getInstance() { + public CommonparamsubdirPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterHeaderParameters(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterHeaderParameters(CommonparamsubdirPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(CommonparamsubdirPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(CommonparamsubdirPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; + private final CommonparamsubdirPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new CommonparamsubdirPostNullableRequest(); } - public PostNullableRequest getInstance() { + public CommonparamsubdirPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterPathParameters(CommonparamsubdirPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java similarity index 75% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java index 602bebf2555..fcf18e34eeb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java @@ -25,12 +25,12 @@ import java.util.List; import java.util.Map; -public class Delete { - private static class DeleteProvider extends AuthApplier { +public class FakeDelete { + private static class FakeDeleteProvider extends AuthApplier { private static final String method = "delete"; public static Responses.EndpointResponse delete( - DeleteRequest request, + FakeDeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -73,12 +73,12 @@ public static Responses.EndpointResponse delete( } } - public interface DeleteOperation { + public interface FakeDeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse delete(FakeDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -86,25 +86,25 @@ public interface GroupParametersOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse groupParameters(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse groupParameters(FakeDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Delete1 extends ApiClient implements DeleteOperation { - public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeDelete1 extends ApiClient implements FakeDeleteOperation { + public FakeDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class DeleteRequest { + public static class FakeDeleteRequest { public HeaderParameters.HeaderParametersMap headerParameters; public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public DeleteRequest( + public FakeDeleteRequest( HeaderParameters.HeaderParametersMap headerParameters, QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -119,7 +119,7 @@ public DeleteRequest( } } - public static class DeleteNullableRequest { + public static class FakeDeleteNullableRequest { public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -128,8 +128,8 @@ public static class DeleteNullableRequest { } public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); + FakeDeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakeDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -138,8 +138,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(DeleteNullableRequest instance); + FakeDeleteNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(FakeDeleteNullableRequest instance); default T securityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -148,8 +148,8 @@ default T securityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); + FakeDeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(FakeDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -158,8 +158,8 @@ default T timeout(Duration timeout) { } public interface SetterForHeaderParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); + FakeDeleteNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(FakeDeleteNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -168,8 +168,8 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForQueryParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterQueryParameters(DeleteNullableRequest instance); + FakeDeleteNullableRequest getInstance(); + T getBuilderAfterQueryParameters(FakeDeleteNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -178,13 +178,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Delete00RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final DeleteNullableRequest instance; + private final FakeDeleteNullableRequest instance; - public Delete00RequestBuilder(DeleteNullableRequest instance) { + public Delete00RequestBuilder(FakeDeleteNullableRequest instance) { this.instance = instance; } - public DeleteRequest build() { + public FakeDeleteRequest build() { var headerParameters = instance.headerParameters; if (headerParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -193,7 +193,7 @@ public DeleteRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new DeleteRequest( + return new FakeDeleteRequest( headerParameters, queryParameters, instance.serverIndex, @@ -202,68 +202,68 @@ public DeleteRequest build() { ); } - public DeleteNullableRequest getInstance() { + public FakeDeleteNullableRequest getInstance() { return instance; } - public Delete00RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterServerIndex(FakeDeleteNullableRequest instance) { return this; } - public Delete00RequestBuilder getBuilderAfterSecurityIndex(DeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterSecurityIndex(FakeDeleteNullableRequest instance) { return this; } - public Delete00RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterTimeout(FakeDeleteNullableRequest instance) { return this; } } public static class Delete01RequestBuilder implements SetterForQueryParameters { - private final DeleteNullableRequest instance; + private final FakeDeleteNullableRequest instance; - public Delete01RequestBuilder(DeleteNullableRequest instance) { + public Delete01RequestBuilder(FakeDeleteNullableRequest instance) { this.instance = instance; } - public DeleteNullableRequest getInstance() { + public FakeDeleteNullableRequest getInstance() { return instance; } - public Delete00RequestBuilder getBuilderAfterQueryParameters(DeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterQueryParameters(FakeDeleteNullableRequest instance) { return new Delete00RequestBuilder(instance); } } public static class Delete10RequestBuilder implements SetterForHeaderParameters { - private final DeleteNullableRequest instance; + private final FakeDeleteNullableRequest instance; - public Delete10RequestBuilder(DeleteNullableRequest instance) { + public Delete10RequestBuilder(FakeDeleteNullableRequest instance) { this.instance = instance; } - public DeleteNullableRequest getInstance() { + public FakeDeleteNullableRequest getInstance() { return instance; } - public Delete00RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterHeaderParameters(FakeDeleteNullableRequest instance) { return new Delete00RequestBuilder(instance); } } public static class DeleteRequestBuilder implements SetterForHeaderParameters, SetterForQueryParameters { - private final DeleteNullableRequest instance; + private final FakeDeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); + this.instance = new FakeDeleteNullableRequest(); } - public DeleteNullableRequest getInstance() { + public FakeDeleteNullableRequest getInstance() { return instance; } - public Delete01RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { + public Delete01RequestBuilder getBuilderAfterHeaderParameters(FakeDeleteNullableRequest instance) { return new Delete01RequestBuilder(instance); } - public Delete10RequestBuilder getBuilderAfterQueryParameters(DeleteNullableRequest instance) { + public Delete10RequestBuilder getBuilderAfterQueryParameters(FakeDeleteNullableRequest instance) { return new Delete10RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java similarity index 77% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java index 986742d92b2..87751f6c6f2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java @@ -25,12 +25,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakeGet { + private static class FakeGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakeGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -78,12 +78,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakeGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -91,18 +91,18 @@ public interface EnumParametersOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse enumParameters(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse enumParameters(FakeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeGet1 extends ApiClient implements FakeGetOperation { + public FakeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakeGetRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; @@ -111,8 +111,8 @@ public static class GetRequest { } public interface SetterForRequestBody { - GetRequest getInstance(); - T getBuilderAfterRequestBody(GetRequest instance); + FakeGetRequest getInstance(); + T getBuilderAfterRequestBody(FakeGetRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -121,8 +121,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForHeaderParameters { - GetRequest getInstance(); - T getBuilderAfterHeaderParameters(GetRequest instance); + FakeGetRequest getInstance(); + T getBuilderAfterHeaderParameters(FakeGetRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -131,8 +131,8 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForQueryParameters { - GetRequest getInstance(); - T getBuilderAfterQueryParameters(GetRequest instance); + FakeGetRequest getInstance(); + T getBuilderAfterQueryParameters(FakeGetRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -141,8 +141,8 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakeGetRequest getInstance(); + T getBuilderAfterServerIndex(FakeGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -151,8 +151,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakeGetRequest getInstance(); + T getBuilderAfterTimeout(FakeGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -161,37 +161,37 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForRequestBody, SetterForHeaderParameters, SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakeGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakeGetRequest(); } - public GetRequest build() { + public FakeGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakeGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { + public GetRequestBuilder getBuilderAfterRequestBody(FakeGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterHeaderParameters(GetRequest instance) { + public GetRequestBuilder getBuilderAfterHeaderParameters(FakeGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { + public GetRequestBuilder getBuilderAfterQueryParameters(FakeGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakeGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakeGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java similarity index 72% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Patch.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java index 2c393d0e8a9..f1f4555178a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Patch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Patch { - private static class PatchProvider { +public class FakePatch { + private static class FakePatchProvider { private static final String method = "patch"; public static Responses.EndpointResponse patch( - PatchRequest request, + FakePatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse patch( } } - public interface PatchOperation { + public interface FakePatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse patch(FakePatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakePatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface ClientModelOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse clientModel(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse clientModel(FakePatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakePatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Patch1 extends ApiClient implements PatchOperation { - public Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakePatch1 extends ApiClient implements FakePatchOperation { + public FakePatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PatchRequest { + public static class FakePatchRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PatchRequest( + public FakePatchRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PatchRequest( } } - public static class PatchNullableRequest { + public static class FakePatchNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PatchNullableRequest getInstance(); - T getBuilderAfterServerIndex(PatchNullableRequest instance); + FakePatchNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakePatchNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PatchNullableRequest getInstance(); - T getBuilderAfterTimeout(PatchNullableRequest instance); + FakePatchNullableRequest getInstance(); + T getBuilderAfterTimeout(FakePatchNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PatchNullableRequest getInstance(); - T getBuilderAfterRequestBody(PatchNullableRequest instance); + FakePatchNullableRequest getInstance(); + T getBuilderAfterRequestBody(FakePatchNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PatchNullableRequest instance; + private final FakePatchNullableRequest instance; - public Patch0RequestBuilder(PatchNullableRequest instance) { + public Patch0RequestBuilder(FakePatchNullableRequest instance) { this.instance = instance; } - public PatchRequest build() { + public FakePatchRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PatchRequest( + return new FakePatchRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PatchNullableRequest getInstance() { + public FakePatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterServerIndex(FakePatchNullableRequest instance) { return this; } - public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterTimeout(FakePatchNullableRequest instance) { return this; } } public static class PatchRequestBuilder implements SetterForRequestBody { - private final PatchNullableRequest instance; + private final FakePatchNullableRequest instance; public PatchRequestBuilder() { - this.instance = new PatchNullableRequest(); + this.instance = new FakePatchNullableRequest(); } - public PatchNullableRequest getInstance() { + public FakePatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterRequestBody(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterRequestBody(FakePatchNullableRequest instance) { return new Patch0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java similarity index 75% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java index 1d3a5d614b3..a7cc8ea9635 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java @@ -25,12 +25,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider extends AuthApplier { +public class FakePost { + private static class FakePostProvider extends AuthApplier { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakePostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -75,12 +75,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakePostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -88,18 +88,18 @@ public interface EndpointParametersOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse endpointParameters(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse endpointParameters(FakePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakePost1 extends ApiClient implements FakePostOperation { + public FakePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakePostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakePostSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -107,8 +107,8 @@ public static class PostRequest { } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakePostRequest getInstance(); + T getBuilderAfterRequestBody(FakePostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -117,8 +117,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakePostRequest getInstance(); + T getBuilderAfterServerIndex(FakePostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -127,8 +127,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PostRequest getInstance(); - T getBuilderAfterSecurityIndex(PostRequest instance); + FakePostRequest getInstance(); + T getBuilderAfterSecurityIndex(FakePostRequest instance); default T securityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -137,8 +137,8 @@ default T securityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakePostRequest getInstance(); + T getBuilderAfterTimeout(FakePostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -147,33 +147,33 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostRequest instance; + private final FakePostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakePostRequest(); } - public PostRequest build() { + public FakePostRequest build() { return instance; } - public PostRequest getInstance() { + public FakePostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakePostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakePostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterSecurityIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterSecurityIndex(FakePostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakePostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java index a945dfd546b..efd6ea8ce12 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakeadditionalpropertieswitharrayofenumsGet { + private static class FakeadditionalpropertieswitharrayofenumsGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakeadditionalpropertieswitharrayofenumsGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakeadditionalpropertieswitharrayofenumsGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakeadditionalpropertieswitharrayofenumsGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeadditionalpropertieswitharrayofenumsGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface AdditionalPropertiesWithArrayOfEnumsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse additionalPropertiesWithArrayOfEnums(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse additionalPropertiesWithArrayOfEnums(FakeadditionalpropertieswitharrayofenumsGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeadditionalpropertieswitharrayofenumsGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeadditionalpropertieswitharrayofenumsGet1 extends ApiClient implements FakeadditionalpropertieswitharrayofenumsGetOperation { + public FakeadditionalpropertieswitharrayofenumsGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakeadditionalpropertieswitharrayofenumsGetRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - GetRequest getInstance(); - T getBuilderAfterRequestBody(GetRequest instance); + FakeadditionalpropertieswitharrayofenumsGetRequest getInstance(); + T getBuilderAfterRequestBody(FakeadditionalpropertieswitharrayofenumsGetRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakeadditionalpropertieswitharrayofenumsGetRequest getInstance(); + T getBuilderAfterServerIndex(FakeadditionalpropertieswitharrayofenumsGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakeadditionalpropertieswitharrayofenumsGetRequest getInstance(); + T getBuilderAfterTimeout(FakeadditionalpropertieswitharrayofenumsGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakeadditionalpropertieswitharrayofenumsGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakeadditionalpropertieswitharrayofenumsGetRequest(); } - public GetRequest build() { + public FakeadditionalpropertieswitharrayofenumsGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakeadditionalpropertieswitharrayofenumsGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { + public GetRequestBuilder getBuilderAfterRequestBody(FakeadditionalpropertieswitharrayofenumsGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakeadditionalpropertieswitharrayofenumsGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakeadditionalpropertieswitharrayofenumsGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/Put.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java index 73f69471b3f..00cef76ca5d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Put { - private static class PutProvider { +public class FakebodywithfileschemaPut { + private static class FakebodywithfileschemaPutProvider { private static final String method = "put"; public static Responses.EndpointResponse put( - PutRequest request, + FakebodywithfileschemaPutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse put( } } - public interface PutOperation { + public interface FakebodywithfileschemaPutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse put(FakebodywithfileschemaPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakebodywithfileschemaPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface BodyWithFileSchemaOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse bodyWithFileSchema(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse bodyWithFileSchema(FakebodywithfileschemaPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakebodywithfileschemaPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Put1 extends ApiClient implements PutOperation { - public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakebodywithfileschemaPut1 extends ApiClient implements FakebodywithfileschemaPutOperation { + public FakebodywithfileschemaPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PutRequest { + public static class FakebodywithfileschemaPutRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PutRequest( + public FakebodywithfileschemaPutRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PutRequest( } } - public static class PutNullableRequest { + public static class FakebodywithfileschemaPutNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); + FakebodywithfileschemaPutNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakebodywithfileschemaPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); + FakebodywithfileschemaPutNullableRequest getInstance(); + T getBuilderAfterTimeout(FakebodywithfileschemaPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(PutNullableRequest instance); + FakebodywithfileschemaPutNullableRequest getInstance(); + T getBuilderAfterRequestBody(FakebodywithfileschemaPutNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; + private final FakebodywithfileschemaPutNullableRequest instance; - public Put0RequestBuilder(PutNullableRequest instance) { + public Put0RequestBuilder(FakebodywithfileschemaPutNullableRequest instance) { this.instance = instance; } - public PutRequest build() { + public FakebodywithfileschemaPutRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PutRequest( + return new FakebodywithfileschemaPutRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PutNullableRequest getInstance() { + public FakebodywithfileschemaPutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterServerIndex(FakebodywithfileschemaPutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterTimeout(FakebodywithfileschemaPutNullableRequest instance) { return this; } } public static class PutRequestBuilder implements SetterForRequestBody { - private final PutNullableRequest instance; + private final FakebodywithfileschemaPutNullableRequest instance; public PutRequestBuilder() { - this.instance = new PutNullableRequest(); + this.instance = new FakebodywithfileschemaPutNullableRequest(); } - public PutNullableRequest getInstance() { + public FakebodywithfileschemaPutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterRequestBody(FakebodywithfileschemaPutNullableRequest instance) { return new Put0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/Put.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java index aa37f99e1b5..aa7c90fa7a6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java @@ -24,12 +24,12 @@ import java.util.List; import java.util.Map; -public class Put { - private static class PutProvider { +public class FakebodywithqueryparamsPut { + private static class FakebodywithqueryparamsPutProvider { private static final String method = "put"; public static Responses.EndpointResponse put( - PutRequest request, + FakebodywithqueryparamsPutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -64,12 +64,12 @@ public static Responses.EndpointResponse put( } } - public interface PutOperation { + public interface FakebodywithqueryparamsPutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse put(FakebodywithqueryparamsPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakebodywithqueryparamsPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -77,24 +77,24 @@ public interface BodyWithQueryParamsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse bodyWithQueryParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse bodyWithQueryParams(FakebodywithqueryparamsPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakebodywithqueryparamsPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Put1 extends ApiClient implements PutOperation { - public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakebodywithqueryparamsPut1 extends ApiClient implements FakebodywithqueryparamsPutOperation { + public FakebodywithqueryparamsPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PutRequest { + public static class FakebodywithqueryparamsPutRequest { public RequestBody.SealedRequestBody requestBody; public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PutRequest( + public FakebodywithqueryparamsPutRequest( RequestBody.SealedRequestBody requestBody, QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -107,7 +107,7 @@ public PutRequest( } } - public static class PutNullableRequest { + public static class FakebodywithqueryparamsPutNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -115,8 +115,8 @@ public static class PutNullableRequest { } public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); + FakebodywithqueryparamsPutNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakebodywithqueryparamsPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -125,8 +125,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); + FakebodywithqueryparamsPutNullableRequest getInstance(); + T getBuilderAfterTimeout(FakebodywithqueryparamsPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -135,8 +135,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(PutNullableRequest instance); + FakebodywithqueryparamsPutNullableRequest getInstance(); + T getBuilderAfterRequestBody(FakebodywithqueryparamsPutNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -145,8 +145,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForQueryParameters { - PutNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PutNullableRequest instance); + FakebodywithqueryparamsPutNullableRequest getInstance(); + T getBuilderAfterQueryParameters(FakebodywithqueryparamsPutNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -155,13 +155,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Put00RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; + private final FakebodywithqueryparamsPutNullableRequest instance; - public Put00RequestBuilder(PutNullableRequest instance) { + public Put00RequestBuilder(FakebodywithqueryparamsPutNullableRequest instance) { this.instance = instance; } - public PutRequest build() { + public FakebodywithqueryparamsPutRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -170,7 +170,7 @@ public PutRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PutRequest( + return new FakebodywithqueryparamsPutRequest( requestBody, queryParameters, instance.serverIndex, @@ -178,64 +178,64 @@ public PutRequest build() { ); } - public PutNullableRequest getInstance() { + public FakebodywithqueryparamsPutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterServerIndex(FakebodywithqueryparamsPutNullableRequest instance) { return this; } - public Put00RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterTimeout(FakebodywithqueryparamsPutNullableRequest instance) { return this; } } public static class Put01RequestBuilder implements SetterForQueryParameters { - private final PutNullableRequest instance; + private final FakebodywithqueryparamsPutNullableRequest instance; - public Put01RequestBuilder(PutNullableRequest instance) { + public Put01RequestBuilder(FakebodywithqueryparamsPutNullableRequest instance) { this.instance = instance; } - public PutNullableRequest getInstance() { + public FakebodywithqueryparamsPutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterQueryParameters(FakebodywithqueryparamsPutNullableRequest instance) { return new Put00RequestBuilder(instance); } } public static class Put10RequestBuilder implements SetterForRequestBody { - private final PutNullableRequest instance; + private final FakebodywithqueryparamsPutNullableRequest instance; - public Put10RequestBuilder(PutNullableRequest instance) { + public Put10RequestBuilder(FakebodywithqueryparamsPutNullableRequest instance) { this.instance = instance; } - public PutNullableRequest getInstance() { + public FakebodywithqueryparamsPutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterRequestBody(FakebodywithqueryparamsPutNullableRequest instance) { return new Put00RequestBuilder(instance); } } public static class PutRequestBuilder implements SetterForRequestBody, SetterForQueryParameters { - private final PutNullableRequest instance; + private final FakebodywithqueryparamsPutNullableRequest instance; public PutRequestBuilder() { - this.instance = new PutNullableRequest(); + this.instance = new FakebodywithqueryparamsPutNullableRequest(); } - public PutNullableRequest getInstance() { + public FakebodywithqueryparamsPutNullableRequest getInstance() { return instance; } - public Put01RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + public Put01RequestBuilder getBuilderAfterRequestBody(FakebodywithqueryparamsPutNullableRequest instance) { return new Put01RequestBuilder(instance); } - public Put10RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { + public Put10RequestBuilder getBuilderAfterQueryParameters(FakebodywithqueryparamsPutNullableRequest instance) { return new Put10RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/Put.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java index de7f4bd69ec..e503af1118e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Put { - private static class PutProvider { +public class FakecasesensitiveparamsPut { + private static class FakecasesensitiveparamsPutProvider { private static final String method = "put"; public static Responses.EndpointResponse put( - PutRequest request, + FakecasesensitiveparamsPutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -55,12 +55,12 @@ public static Responses.EndpointResponse put( } } - public interface PutOperation { + public interface FakecasesensitiveparamsPutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse put(FakecasesensitiveparamsPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakecasesensitiveparamsPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -68,23 +68,23 @@ public interface CaseSensitiveParamsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse caseSensitiveParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse caseSensitiveParams(FakecasesensitiveparamsPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakecasesensitiveparamsPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Put1 extends ApiClient implements PutOperation { - public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakecasesensitiveparamsPut1 extends ApiClient implements FakecasesensitiveparamsPutOperation { + public FakecasesensitiveparamsPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PutRequest { + public static class FakecasesensitiveparamsPutRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PutRequest( + public FakecasesensitiveparamsPutRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -95,15 +95,15 @@ public PutRequest( } } - public static class PutNullableRequest { + public static class FakecasesensitiveparamsPutNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); + FakecasesensitiveparamsPutNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakecasesensitiveparamsPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -112,8 +112,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); + FakecasesensitiveparamsPutNullableRequest getInstance(); + T getBuilderAfterTimeout(FakecasesensitiveparamsPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -122,8 +122,8 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - PutNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PutNullableRequest instance); + FakecasesensitiveparamsPutNullableRequest getInstance(); + T getBuilderAfterQueryParameters(FakecasesensitiveparamsPutNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -132,48 +132,48 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; + private final FakecasesensitiveparamsPutNullableRequest instance; - public Put0RequestBuilder(PutNullableRequest instance) { + public Put0RequestBuilder(FakecasesensitiveparamsPutNullableRequest instance) { this.instance = instance; } - public PutRequest build() { + public FakecasesensitiveparamsPutRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PutRequest( + return new FakecasesensitiveparamsPutRequest( queryParameters, instance.serverIndex, instance.timeout ); } - public PutNullableRequest getInstance() { + public FakecasesensitiveparamsPutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterServerIndex(FakecasesensitiveparamsPutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterTimeout(FakecasesensitiveparamsPutNullableRequest instance) { return this; } } public static class PutRequestBuilder implements SetterForQueryParameters { - private final PutNullableRequest instance; + private final FakecasesensitiveparamsPutNullableRequest instance; public PutRequestBuilder() { - this.instance = new PutNullableRequest(); + this.instance = new FakecasesensitiveparamsPutNullableRequest(); } - public PutNullableRequest getInstance() { + public FakecasesensitiveparamsPutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterQueryParameters(FakecasesensitiveparamsPutNullableRequest instance) { return new Put0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java index b22f6967611..fa54b96c92c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java @@ -25,12 +25,12 @@ import java.util.List; import java.util.Map; -public class Patch { - private static class PatchProvider extends AuthApplier { +public class FakeclassnametestPatch { + private static class FakeclassnametestPatchProvider extends AuthApplier { private static final String method = "patch"; public static Responses.EndpointResponse patch( - PatchRequest request, + FakeclassnametestPatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -71,12 +71,12 @@ public static Responses.EndpointResponse patch( } } - public interface PatchOperation { + public interface FakeclassnametestPatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse patch(FakeclassnametestPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeclassnametestPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -84,24 +84,24 @@ public interface ClassnameOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse classname(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse classname(FakeclassnametestPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeclassnametestPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Patch1 extends ApiClient implements PatchOperation { - public Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeclassnametestPatch1 extends ApiClient implements FakeclassnametestPatchOperation { + public FakeclassnametestPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PatchRequest { + public static class FakeclassnametestPatchRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PatchRequest( + public FakeclassnametestPatchRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -114,7 +114,7 @@ public PatchRequest( } } - public static class PatchNullableRequest { + public static class FakeclassnametestPatchNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -122,8 +122,8 @@ public static class PatchNullableRequest { } public interface SetterForServerIndex { - PatchNullableRequest getInstance(); - T getBuilderAfterServerIndex(PatchNullableRequest instance); + FakeclassnametestPatchNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakeclassnametestPatchNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -132,8 +132,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PatchNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PatchNullableRequest instance); + FakeclassnametestPatchNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(FakeclassnametestPatchNullableRequest instance); default T securityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -142,8 +142,8 @@ default T securityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securit } public interface SetterForTimeout { - PatchNullableRequest getInstance(); - T getBuilderAfterTimeout(PatchNullableRequest instance); + FakeclassnametestPatchNullableRequest getInstance(); + T getBuilderAfterTimeout(FakeclassnametestPatchNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -152,8 +152,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PatchNullableRequest getInstance(); - T getBuilderAfterRequestBody(PatchNullableRequest instance); + FakeclassnametestPatchNullableRequest getInstance(); + T getBuilderAfterRequestBody(FakeclassnametestPatchNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -162,18 +162,18 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PatchNullableRequest instance; + private final FakeclassnametestPatchNullableRequest instance; - public Patch0RequestBuilder(PatchNullableRequest instance) { + public Patch0RequestBuilder(FakeclassnametestPatchNullableRequest instance) { this.instance = instance; } - public PatchRequest build() { + public FakeclassnametestPatchRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PatchRequest( + return new FakeclassnametestPatchRequest( requestBody, instance.serverIndex, instance.securityIndex, @@ -181,34 +181,34 @@ public PatchRequest build() { ); } - public PatchNullableRequest getInstance() { + public FakeclassnametestPatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterServerIndex(FakeclassnametestPatchNullableRequest instance) { return this; } - public Patch0RequestBuilder getBuilderAfterSecurityIndex(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterSecurityIndex(FakeclassnametestPatchNullableRequest instance) { return this; } - public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterTimeout(FakeclassnametestPatchNullableRequest instance) { return this; } } public static class PatchRequestBuilder implements SetterForRequestBody { - private final PatchNullableRequest instance; + private final FakeclassnametestPatchNullableRequest instance; public PatchRequestBuilder() { - this.instance = new PatchNullableRequest(); + this.instance = new FakeclassnametestPatchNullableRequest(); } - public PatchNullableRequest getInstance() { + public FakeclassnametestPatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterRequestBody(PatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterRequestBody(FakeclassnametestPatchNullableRequest instance) { return new Patch0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/Delete.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java index e19df2b388f..00995f052b7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Delete { - private static class DeleteProvider { +public class FakedeletecoffeeidDelete { + private static class FakedeletecoffeeidDeleteProvider { private static final String method = "delete"; public static Responses.EndpointResponse delete( - DeleteRequest request, + FakedeletecoffeeidDeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Responses.EndpointResponse delete( } } - public interface DeleteOperation { + public interface FakedeletecoffeeidDeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse delete(FakedeletecoffeeidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakedeletecoffeeidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,23 +67,23 @@ public interface DeleteCoffeeOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse deleteCoffee(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse deleteCoffee(FakedeletecoffeeidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakedeletecoffeeidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Delete1 extends ApiClient implements DeleteOperation { - public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakedeletecoffeeidDelete1 extends ApiClient implements FakedeletecoffeeidDeleteOperation { + public FakedeletecoffeeidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class DeleteRequest { + public static class FakedeletecoffeeidDeleteRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public DeleteRequest( + public FakedeletecoffeeidDeleteRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,15 +94,15 @@ public DeleteRequest( } } - public static class DeleteNullableRequest { + public static class FakedeletecoffeeidDeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); + FakedeletecoffeeidDeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakedeletecoffeeidDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -111,8 +111,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); + FakedeletecoffeeidDeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(FakedeletecoffeeidDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -121,8 +121,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); + FakedeletecoffeeidDeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(FakedeletecoffeeidDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -131,48 +131,48 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final DeleteNullableRequest instance; + private final FakedeletecoffeeidDeleteNullableRequest instance; - public Delete0RequestBuilder(DeleteNullableRequest instance) { + public Delete0RequestBuilder(FakedeletecoffeeidDeleteNullableRequest instance) { this.instance = instance; } - public DeleteRequest build() { + public FakedeletecoffeeidDeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new DeleteRequest( + return new FakedeletecoffeeidDeleteRequest( pathParameters, instance.serverIndex, instance.timeout ); } - public DeleteNullableRequest getInstance() { + public FakedeletecoffeeidDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(FakedeletecoffeeidDeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(FakedeletecoffeeidDeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; + private final FakedeletecoffeeidDeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); + this.instance = new FakedeletecoffeeidDeleteNullableRequest(); } - public DeleteNullableRequest getInstance() { + public FakedeletecoffeeidDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterPathParameters(FakedeletecoffeeidDeleteNullableRequest instance) { return new Delete0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java index d3009c024fa..b4a005f57e0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java @@ -19,12 +19,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakehealthGet { + private static class FakehealthGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakehealthGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakehealthGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakehealthGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakehealthGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,25 +62,25 @@ public interface FakeHealthGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse fakeHealthGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse fakeHealthGet(FakehealthGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakehealthGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakehealthGet1 extends ApiClient implements FakehealthGetOperation { + public FakehealthGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakehealthGetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakehealthGetRequest getInstance(); + T getBuilderAfterServerIndex(FakehealthGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -89,8 +89,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakehealthGetRequest getInstance(); + T getBuilderAfterTimeout(FakehealthGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakehealthGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakehealthGetRequest(); } - public GetRequest build() { + public FakehealthGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakehealthGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakehealthGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakehealthGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java index c707621fe79..35c6dfc2000 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakeinlineadditionalpropertiesPost { + private static class FakeinlineadditionalpropertiesPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakeinlineadditionalpropertiesPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakeinlineadditionalpropertiesPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakeinlineadditionalpropertiesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeinlineadditionalpropertiesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface InlineAdditionalPropertiesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse inlineAdditionalProperties(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse inlineAdditionalProperties(FakeinlineadditionalpropertiesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeinlineadditionalpropertiesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeinlineadditionalpropertiesPost1 extends ApiClient implements FakeinlineadditionalpropertiesPostOperation { + public FakeinlineadditionalpropertiesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakeinlineadditionalpropertiesPostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PostRequest( + public FakeinlineadditionalpropertiesPostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class FakeinlineadditionalpropertiesPostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + FakeinlineadditionalpropertiesPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakeinlineadditionalpropertiesPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + FakeinlineadditionalpropertiesPostNullableRequest getInstance(); + T getBuilderAfterTimeout(FakeinlineadditionalpropertiesPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + FakeinlineadditionalpropertiesPostNullableRequest getInstance(); + T getBuilderAfterRequestBody(FakeinlineadditionalpropertiesPostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final FakeinlineadditionalpropertiesPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(FakeinlineadditionalpropertiesPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public FakeinlineadditionalpropertiesPostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new FakeinlineadditionalpropertiesPostRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PostNullableRequest getInstance() { + public FakeinlineadditionalpropertiesPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(FakeinlineadditionalpropertiesPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(FakeinlineadditionalpropertiesPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; + private final FakeinlineadditionalpropertiesPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new FakeinlineadditionalpropertiesPostNullableRequest(); } - public PostNullableRequest getInstance() { + public FakeinlineadditionalpropertiesPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(FakeinlineadditionalpropertiesPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java index 66eaaa9eed7..010862383ba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java @@ -24,12 +24,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakeinlinecompositionPost { + private static class FakeinlinecompositionPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakeinlinecompositionPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -71,12 +71,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakeinlinecompositionPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakeinlinecompositionPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeinlinecompositionPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -84,18 +84,18 @@ public interface InlineCompositionOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse inlineComposition(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse inlineComposition(FakeinlinecompositionPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeinlinecompositionPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeinlinecompositionPost1 extends ApiClient implements FakeinlinecompositionPostOperation { + public FakeinlinecompositionPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakeinlinecompositionPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -103,8 +103,8 @@ public static class PostRequest { } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakeinlinecompositionPostRequest getInstance(); + T getBuilderAfterRequestBody(FakeinlinecompositionPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -113,8 +113,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForQueryParameters { - PostRequest getInstance(); - T getBuilderAfterQueryParameters(PostRequest instance); + FakeinlinecompositionPostRequest getInstance(); + T getBuilderAfterQueryParameters(FakeinlinecompositionPostRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -123,8 +123,8 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakeinlinecompositionPostRequest getInstance(); + T getBuilderAfterServerIndex(FakeinlinecompositionPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -133,8 +133,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakeinlinecompositionPostRequest getInstance(); + T getBuilderAfterTimeout(FakeinlinecompositionPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -143,33 +143,33 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakeinlinecompositionPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakeinlinecompositionPostRequest(); } - public PostRequest build() { + public FakeinlinecompositionPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakeinlinecompositionPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakeinlinecompositionPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterQueryParameters(PostRequest instance) { + public PostRequestBuilder getBuilderAfterQueryParameters(FakeinlinecompositionPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakeinlinecompositionPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakeinlinecompositionPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java index 3b30269ee14..1582705f1f3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakejsonformdataGet { + private static class FakejsonformdataGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakejsonformdataGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakejsonformdataGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakejsonformdataGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakejsonformdataGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface JsonFormDataOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse jsonFormData(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse jsonFormData(FakejsonformdataGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakejsonformdataGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakejsonformdataGet1 extends ApiClient implements FakejsonformdataGetOperation { + public FakejsonformdataGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakejsonformdataGetRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - GetRequest getInstance(); - T getBuilderAfterRequestBody(GetRequest instance); + FakejsonformdataGetRequest getInstance(); + T getBuilderAfterRequestBody(FakejsonformdataGetRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakejsonformdataGetRequest getInstance(); + T getBuilderAfterServerIndex(FakejsonformdataGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakejsonformdataGetRequest getInstance(); + T getBuilderAfterTimeout(FakejsonformdataGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakejsonformdataGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakejsonformdataGetRequest(); } - public GetRequest build() { + public FakejsonformdataGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakejsonformdataGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { + public GetRequestBuilder getBuilderAfterRequestBody(FakejsonformdataGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakejsonformdataGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakejsonformdataGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/Patch.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java index 15ec6251587..50a93b5f8ac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/Patch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Patch { - private static class PatchProvider { +public class FakejsonpatchPatch { + private static class FakejsonpatchPatchProvider { private static final String method = "patch"; public static Responses.EndpointResponse patch( - PatchRequest request, + FakejsonpatchPatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse patch( } } - public interface PatchOperation { + public interface FakejsonpatchPatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse patch(FakejsonpatchPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakejsonpatchPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface JsonPatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse jsonPatch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse jsonPatch(FakejsonpatchPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakejsonpatchPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Patch1 extends ApiClient implements PatchOperation { - public Patch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakejsonpatchPatch1 extends ApiClient implements FakejsonpatchPatchOperation { + public FakejsonpatchPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PatchRequest { + public static class FakejsonpatchPatchRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PatchRequest getInstance(); - T getBuilderAfterRequestBody(PatchRequest instance); + FakejsonpatchPatchRequest getInstance(); + T getBuilderAfterRequestBody(FakejsonpatchPatchRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PatchRequest getInstance(); - T getBuilderAfterServerIndex(PatchRequest instance); + FakejsonpatchPatchRequest getInstance(); + T getBuilderAfterServerIndex(FakejsonpatchPatchRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PatchRequest getInstance(); - T getBuilderAfterTimeout(PatchRequest instance); + FakejsonpatchPatchRequest getInstance(); + T getBuilderAfterTimeout(FakejsonpatchPatchRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PatchRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PatchRequest instance; + private final FakejsonpatchPatchRequest instance; public PatchRequestBuilder() { - this.instance = new PatchRequest(); + this.instance = new FakejsonpatchPatchRequest(); } - public PatchRequest build() { + public FakejsonpatchPatchRequest build() { return instance; } - public PatchRequest getInstance() { + public FakejsonpatchPatchRequest getInstance() { return instance; } - public PatchRequestBuilder getBuilderAfterRequestBody(PatchRequest instance) { + public PatchRequestBuilder getBuilderAfterRequestBody(FakejsonpatchPatchRequest instance) { return this; } - public PatchRequestBuilder getBuilderAfterServerIndex(PatchRequest instance) { + public PatchRequestBuilder getBuilderAfterServerIndex(FakejsonpatchPatchRequest instance) { return this; } - public PatchRequestBuilder getBuilderAfterTimeout(PatchRequest instance) { + public PatchRequestBuilder getBuilderAfterTimeout(FakejsonpatchPatchRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java index 3532a6c8dec..366213568d9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakejsonwithcharsetPost { + private static class FakejsonwithcharsetPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakejsonwithcharsetPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakejsonwithcharsetPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakejsonwithcharsetPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakejsonwithcharsetPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface JsonWithCharsetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse jsonWithCharset(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse jsonWithCharset(FakejsonwithcharsetPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakejsonwithcharsetPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakejsonwithcharsetPost1 extends ApiClient implements FakejsonwithcharsetPostOperation { + public FakejsonwithcharsetPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakejsonwithcharsetPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakejsonwithcharsetPostRequest getInstance(); + T getBuilderAfterRequestBody(FakejsonwithcharsetPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakejsonwithcharsetPostRequest getInstance(); + T getBuilderAfterServerIndex(FakejsonwithcharsetPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakejsonwithcharsetPostRequest getInstance(); + T getBuilderAfterTimeout(FakejsonwithcharsetPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakejsonwithcharsetPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakejsonwithcharsetPostRequest(); } - public PostRequest build() { + public FakejsonwithcharsetPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakejsonwithcharsetPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakejsonwithcharsetPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakejsonwithcharsetPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakejsonwithcharsetPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java index 6aec7cccc40..de2eb619369 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakemultiplerequestbodycontenttypesPost { + private static class FakemultiplerequestbodycontenttypesPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakemultiplerequestbodycontenttypesPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakemultiplerequestbodycontenttypesPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakemultiplerequestbodycontenttypesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakemultiplerequestbodycontenttypesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface MultipleRequestBodyContentTypesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse multipleRequestBodyContentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse multipleRequestBodyContentTypes(FakemultiplerequestbodycontenttypesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakemultiplerequestbodycontenttypesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakemultiplerequestbodycontenttypesPost1 extends ApiClient implements FakemultiplerequestbodycontenttypesPostOperation { + public FakemultiplerequestbodycontenttypesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakemultiplerequestbodycontenttypesPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakemultiplerequestbodycontenttypesPostRequest getInstance(); + T getBuilderAfterRequestBody(FakemultiplerequestbodycontenttypesPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakemultiplerequestbodycontenttypesPostRequest getInstance(); + T getBuilderAfterServerIndex(FakemultiplerequestbodycontenttypesPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakemultiplerequestbodycontenttypesPostRequest getInstance(); + T getBuilderAfterTimeout(FakemultiplerequestbodycontenttypesPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakemultiplerequestbodycontenttypesPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakemultiplerequestbodycontenttypesPostRequest(); } - public PostRequest build() { + public FakemultiplerequestbodycontenttypesPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakemultiplerequestbodycontenttypesPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakemultiplerequestbodycontenttypesPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakemultiplerequestbodycontenttypesPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakemultiplerequestbodycontenttypesPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java index eb113268711..23be32a48b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java @@ -19,12 +19,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakemultipleresponsebodiesGet { + private static class FakemultipleresponsebodiesGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakemultipleresponsebodiesGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakemultipleresponsebodiesGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakemultipleresponsebodiesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakemultipleresponsebodiesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,25 +62,25 @@ public interface MultipleResponseBodiesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse multipleResponseBodies(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse multipleResponseBodies(FakemultipleresponsebodiesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakemultipleresponsebodiesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakemultipleresponsebodiesGet1 extends ApiClient implements FakemultipleresponsebodiesGetOperation { + public FakemultipleresponsebodiesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakemultipleresponsebodiesGetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakemultipleresponsebodiesGetRequest getInstance(); + T getBuilderAfterServerIndex(FakemultipleresponsebodiesGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -89,8 +89,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakemultipleresponsebodiesGetRequest getInstance(); + T getBuilderAfterTimeout(FakemultipleresponsebodiesGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakemultipleresponsebodiesGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakemultipleresponsebodiesGetRequest(); } - public GetRequest build() { + public FakemultipleresponsebodiesGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakemultipleresponsebodiesGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakemultipleresponsebodiesGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakemultipleresponsebodiesGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java index 13bc5e7cfcd..af8430c04f0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider extends AuthApplier { +public class FakemultiplesecuritiesGet { + private static class FakemultiplesecuritiesGetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakemultiplesecuritiesGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakemultiplesecuritiesGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakemultiplesecuritiesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakemultiplesecuritiesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface MultipleSecuritiesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse multipleSecurities(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse multipleSecurities(FakemultiplesecuritiesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakemultiplesecuritiesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakemultiplesecuritiesGet1 extends ApiClient implements FakemultiplesecuritiesGetOperation { + public FakemultiplesecuritiesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakemultiplesecuritiesGetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public FakemultiplesecuritiesGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakemultiplesecuritiesGetRequest getInstance(); + T getBuilderAfterServerIndex(FakemultiplesecuritiesGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -103,8 +103,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - GetRequest getInstance(); - T getBuilderAfterSecurityIndex(GetRequest instance); + FakemultiplesecuritiesGetRequest getInstance(); + T getBuilderAfterSecurityIndex(FakemultiplesecuritiesGetRequest instance); default T securityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -113,8 +113,8 @@ default T securityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex secu } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakemultiplesecuritiesGetRequest getInstance(); + T getBuilderAfterTimeout(FakemultiplesecuritiesGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetRequest instance; + private final FakemultiplesecuritiesGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakemultiplesecuritiesGetRequest(); } - public GetRequest build() { + public FakemultiplesecuritiesGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakemultiplesecuritiesGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakemultiplesecuritiesGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterSecurityIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterSecurityIndex(FakemultiplesecuritiesGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakemultiplesecuritiesGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java index f15716f09bb..333dc9de657 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakeobjinqueryGet { + private static class FakeobjinqueryGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakeobjinqueryGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakeobjinqueryGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakeobjinqueryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeobjinqueryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,26 +71,26 @@ public interface ObjectInQueryOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse objectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse objectInQuery(FakeobjinqueryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeobjinqueryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeobjinqueryGet1 extends ApiClient implements FakeobjinqueryGetOperation { + public FakeobjinqueryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakeobjinqueryGetRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForQueryParameters { - GetRequest getInstance(); - T getBuilderAfterQueryParameters(GetRequest instance); + FakeobjinqueryGetRequest getInstance(); + T getBuilderAfterQueryParameters(FakeobjinqueryGetRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -99,8 +99,8 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakeobjinqueryGetRequest getInstance(); + T getBuilderAfterServerIndex(FakeobjinqueryGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -109,8 +109,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakeobjinqueryGetRequest getInstance(); + T getBuilderAfterTimeout(FakeobjinqueryGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -119,29 +119,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakeobjinqueryGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakeobjinqueryGetRequest(); } - public GetRequest build() { + public FakeobjinqueryGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakeobjinqueryGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { + public GetRequestBuilder getBuilderAfterQueryParameters(FakeobjinqueryGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakeobjinqueryGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakeobjinqueryGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java similarity index 72% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java index b2b8b0cd1d9..5256052326d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java @@ -27,12 +27,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class Fakeparametercollisions1ababselfabPost { + private static class Fakeparametercollisions1ababselfabPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + Fakeparametercollisions1ababselfabPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -90,12 +90,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface Fakeparametercollisions1ababselfabPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(Fakeparametercollisions1ababselfabPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return Fakeparametercollisions1ababselfabPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -103,18 +103,18 @@ public interface ParameterCollisionsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse parameterCollisions(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse parameterCollisions(Fakeparametercollisions1ababselfabPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return Fakeparametercollisions1ababselfabPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Fakeparametercollisions1ababselfabPost1 extends ApiClient implements Fakeparametercollisions1ababselfabPostOperation { + public Fakeparametercollisions1ababselfabPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class Fakeparametercollisions1ababselfabPostRequest { public PathParameters.PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; @@ -123,7 +123,7 @@ public static class PostRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PostRequest( + public Fakeparametercollisions1ababselfabPostRequest( PathParameters.PathParametersMap pathParameters, RequestBody.@Nullable SealedRequestBody requestBody, HeaderParameters.@Nullable HeaderParametersMap headerParameters, @@ -142,7 +142,7 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class Fakeparametercollisions1ababselfabPostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; @@ -153,8 +153,8 @@ public static class PostNullableRequest { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + T getBuilderAfterRequestBody(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -163,8 +163,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForHeaderParameters { - PostNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(PostNullableRequest instance); + Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -173,8 +173,8 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForQueryParameters { - PostNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PostNullableRequest instance); + Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + T getBuilderAfterQueryParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -183,8 +183,8 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForCookieParameters { - PostNullableRequest getInstance(); - T getBuilderAfterCookieParameters(PostNullableRequest instance); + Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + T getBuilderAfterCookieParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T cookieParameters(CookieParameters.CookieParametersMap cookieParameters) { var instance = getInstance(); instance.cookieParameters = cookieParameters; @@ -193,8 +193,8 @@ default T cookieParameters(CookieParameters.CookieParametersMap cookieParameters } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -203,8 +203,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + T getBuilderAfterTimeout(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -213,8 +213,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); + Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + T getBuilderAfterPathParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -223,18 +223,18 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForRequestBody, SetterForHeaderParameters, SetterForQueryParameters, SetterForCookieParameters, SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final Fakeparametercollisions1ababselfabPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(Fakeparametercollisions1ababselfabPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public Fakeparametercollisions1ababselfabPostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new Fakeparametercollisions1ababselfabPostRequest( pathParameters, instance.requestBody, instance.headerParameters, @@ -245,46 +245,46 @@ public PostRequest build() { ); } - public PostNullableRequest getInstance() { + public Fakeparametercollisions1ababselfabPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(Fakeparametercollisions1ababselfabPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterHeaderParameters(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterHeaderParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterQueryParameters(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterQueryParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterCookieParameters(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterCookieParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(Fakeparametercollisions1ababselfabPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(Fakeparametercollisions1ababselfabPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; + private final Fakeparametercollisions1ababselfabPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new Fakeparametercollisions1ababselfabPostNullableRequest(); } - public PostNullableRequest getInstance() { + public Fakeparametercollisions1ababselfabPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterPathParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java index 9d809770bad..7550547424b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakepemcontenttypeGet { + private static class FakepemcontenttypeGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakepemcontenttypeGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakepemcontenttypeGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakepemcontenttypeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakepemcontenttypeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface PemContentTypeOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse pemContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse pemContentType(FakepemcontenttypeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakepemcontenttypeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakepemcontenttypeGet1 extends ApiClient implements FakepemcontenttypeGetOperation { + public FakepemcontenttypeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakepemcontenttypeGetRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - GetRequest getInstance(); - T getBuilderAfterRequestBody(GetRequest instance); + FakepemcontenttypeGetRequest getInstance(); + T getBuilderAfterRequestBody(FakepemcontenttypeGetRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakepemcontenttypeGetRequest getInstance(); + T getBuilderAfterServerIndex(FakepemcontenttypeGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakepemcontenttypeGetRequest getInstance(); + T getBuilderAfterTimeout(FakepemcontenttypeGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakepemcontenttypeGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakepemcontenttypeGetRequest(); } - public GetRequest build() { + public FakepemcontenttypeGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakepemcontenttypeGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { + public GetRequestBuilder getBuilderAfterRequestBody(FakepemcontenttypeGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakepemcontenttypeGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakepemcontenttypeGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java index a8dece38498..c8236e4831e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java @@ -27,12 +27,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider extends AuthApplier { +public class FakepetiduploadimagewithrequiredfilePost { + private static class FakepetiduploadimagewithrequiredfilePostProvider extends AuthApplier { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakepetiduploadimagewithrequiredfilePostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -80,12 +80,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakepetiduploadimagewithrequiredfilePostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakepetiduploadimagewithrequiredfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakepetiduploadimagewithrequiredfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -93,25 +93,25 @@ public interface UploadFileWithRequiredFileOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadFileWithRequiredFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadFileWithRequiredFile(FakepetiduploadimagewithrequiredfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakepetiduploadimagewithrequiredfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakepetiduploadimagewithrequiredfilePost1 extends ApiClient implements FakepetiduploadimagewithrequiredfilePostOperation { + public FakepetiduploadimagewithrequiredfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakepetiduploadimagewithrequiredfilePostRequest { public PathParameters.PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PostRequest( + public FakepetiduploadimagewithrequiredfilePostRequest( PathParameters.PathParametersMap pathParameters, RequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -126,7 +126,7 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class FakepetiduploadimagewithrequiredfilePostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -135,8 +135,8 @@ public static class PostNullableRequest { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + T getBuilderAfterRequestBody(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -145,8 +145,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -155,8 +155,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PostNullableRequest instance); + FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); default T securityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -165,8 +165,8 @@ default T securityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.Sec } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + T getBuilderAfterTimeout(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -175,8 +175,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); + FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + T getBuilderAfterPathParameters(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -185,18 +185,18 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final FakepetiduploadimagewithrequiredfilePostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public FakepetiduploadimagewithrequiredfilePostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new FakepetiduploadimagewithrequiredfilePostRequest( pathParameters, instance.requestBody, instance.serverIndex, @@ -205,38 +205,38 @@ public PostRequest build() { ); } - public PostNullableRequest getInstance() { + public FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterSecurityIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; + private final FakepetiduploadimagewithrequiredfilePostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new FakepetiduploadimagewithrequiredfilePostNullableRequest(); } - public PostNullableRequest getInstance() { + public FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterPathParameters(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java index 0d13e4037fc..c96ab6c2dda 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakequeryparamwithjsoncontenttypeGet { + private static class FakequeryparamwithjsoncontenttypeGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakequeryparamwithjsoncontenttypeGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -55,12 +55,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakequeryparamwithjsoncontenttypeGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakequeryparamwithjsoncontenttypeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakequeryparamwithjsoncontenttypeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -68,23 +68,23 @@ public interface QueryParamWithJsonContentTypeOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse queryParamWithJsonContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse queryParamWithJsonContentType(FakequeryparamwithjsoncontenttypeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakequeryparamwithjsoncontenttypeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakequeryparamwithjsoncontenttypeGet1 extends ApiClient implements FakequeryparamwithjsoncontenttypeGetOperation { + public FakequeryparamwithjsoncontenttypeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakequeryparamwithjsoncontenttypeGetRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public GetRequest( + public FakequeryparamwithjsoncontenttypeGetRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -95,15 +95,15 @@ public GetRequest( } } - public static class GetNullableRequest { + public static class FakequeryparamwithjsoncontenttypeGetNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); + FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakequeryparamwithjsoncontenttypeGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -112,8 +112,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); + FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance(); + T getBuilderAfterTimeout(FakequeryparamwithjsoncontenttypeGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -122,8 +122,8 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); + FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(FakequeryparamwithjsoncontenttypeGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -132,48 +132,48 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; + private final FakequeryparamwithjsoncontenttypeGetNullableRequest instance; - public Get0RequestBuilder(GetNullableRequest instance) { + public Get0RequestBuilder(FakequeryparamwithjsoncontenttypeGetNullableRequest instance) { this.instance = instance; } - public GetRequest build() { + public FakequeryparamwithjsoncontenttypeGetRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new GetRequest( + return new FakequeryparamwithjsoncontenttypeGetRequest( queryParameters, instance.serverIndex, instance.timeout ); } - public GetNullableRequest getInstance() { + public FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(FakequeryparamwithjsoncontenttypeGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(FakequeryparamwithjsoncontenttypeGetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForQueryParameters { - private final GetNullableRequest instance; + private final FakequeryparamwithjsoncontenttypeGetNullableRequest instance; public GetRequestBuilder() { - this.instance = new GetNullableRequest(); + this.instance = new FakequeryparamwithjsoncontenttypeGetNullableRequest(); } - public GetNullableRequest getInstance() { + public FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterQueryParameters(FakequeryparamwithjsoncontenttypeGetNullableRequest instance) { return new Get0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java index 472906bc4b4..806d1216984 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java @@ -19,12 +19,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakeredirectionGet { + private static class FakeredirectionGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakeredirectionGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakeredirectionGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakeredirectionGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeredirectionGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,25 +62,25 @@ public interface RedirectionOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse redirection(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse redirection(FakeredirectionGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeredirectionGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeredirectionGet1 extends ApiClient implements FakeredirectionGetOperation { + public FakeredirectionGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakeredirectionGetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakeredirectionGetRequest getInstance(); + T getBuilderAfterServerIndex(FakeredirectionGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -89,8 +89,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakeredirectionGetRequest getInstance(); + T getBuilderAfterTimeout(FakeredirectionGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakeredirectionGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakeredirectionGetRequest(); } - public GetRequest build() { + public FakeredirectionGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakeredirectionGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakeredirectionGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakeredirectionGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java index 034f22fcd8b..7f5b80b0fd6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakerefobjinqueryGet { + private static class FakerefobjinqueryGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakerefobjinqueryGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakerefobjinqueryGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakerefobjinqueryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefobjinqueryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,26 +71,26 @@ public interface RefObjectInQueryOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse refObjectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse refObjectInQuery(FakerefobjinqueryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefobjinqueryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefobjinqueryGet1 extends ApiClient implements FakerefobjinqueryGetOperation { + public FakerefobjinqueryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakerefobjinqueryGetRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForQueryParameters { - GetRequest getInstance(); - T getBuilderAfterQueryParameters(GetRequest instance); + FakerefobjinqueryGetRequest getInstance(); + T getBuilderAfterQueryParameters(FakerefobjinqueryGetRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -99,8 +99,8 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakerefobjinqueryGetRequest getInstance(); + T getBuilderAfterServerIndex(FakerefobjinqueryGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -109,8 +109,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakerefobjinqueryGetRequest getInstance(); + T getBuilderAfterTimeout(FakerefobjinqueryGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -119,29 +119,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakerefobjinqueryGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakerefobjinqueryGetRequest(); } - public GetRequest build() { + public FakerefobjinqueryGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakerefobjinqueryGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { + public GetRequestBuilder getBuilderAfterQueryParameters(FakerefobjinqueryGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakerefobjinqueryGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakerefobjinqueryGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java index 140db8e5f93..aee518fc962 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakerefsarraymodelPost { + private static class FakerefsarraymodelPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakerefsarraymodelPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakerefsarraymodelPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakerefsarraymodelPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsarraymodelPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface ArrayModelOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse arrayModel(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse arrayModel(FakerefsarraymodelPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsarraymodelPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefsarraymodelPost1 extends ApiClient implements FakerefsarraymodelPostOperation { + public FakerefsarraymodelPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakerefsarraymodelPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakerefsarraymodelPostRequest getInstance(); + T getBuilderAfterRequestBody(FakerefsarraymodelPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakerefsarraymodelPostRequest getInstance(); + T getBuilderAfterServerIndex(FakerefsarraymodelPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakerefsarraymodelPostRequest getInstance(); + T getBuilderAfterTimeout(FakerefsarraymodelPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakerefsarraymodelPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakerefsarraymodelPostRequest(); } - public PostRequest build() { + public FakerefsarraymodelPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakerefsarraymodelPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakerefsarraymodelPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakerefsarraymodelPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakerefsarraymodelPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java index ee73639843e..ba5e96388fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakerefsarrayofenumsPost { + private static class FakerefsarrayofenumsPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakerefsarrayofenumsPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakerefsarrayofenumsPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakerefsarrayofenumsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsarrayofenumsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface ArrayOfEnumsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse arrayOfEnums(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse arrayOfEnums(FakerefsarrayofenumsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsarrayofenumsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefsarrayofenumsPost1 extends ApiClient implements FakerefsarrayofenumsPostOperation { + public FakerefsarrayofenumsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakerefsarrayofenumsPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakerefsarrayofenumsPostRequest getInstance(); + T getBuilderAfterRequestBody(FakerefsarrayofenumsPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakerefsarrayofenumsPostRequest getInstance(); + T getBuilderAfterServerIndex(FakerefsarrayofenumsPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakerefsarrayofenumsPostRequest getInstance(); + T getBuilderAfterTimeout(FakerefsarrayofenumsPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakerefsarrayofenumsPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakerefsarrayofenumsPostRequest(); } - public PostRequest build() { + public FakerefsarrayofenumsPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakerefsarrayofenumsPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakerefsarrayofenumsPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakerefsarrayofenumsPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakerefsarrayofenumsPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java index 5e4404d8054..d393fd88ccd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakerefsbooleanPost { + private static class FakerefsbooleanPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakerefsbooleanPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakerefsbooleanPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakerefsbooleanPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsbooleanPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface ModelBooleanOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse modelBoolean(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse modelBoolean(FakerefsbooleanPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsbooleanPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefsbooleanPost1 extends ApiClient implements FakerefsbooleanPostOperation { + public FakerefsbooleanPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakerefsbooleanPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakerefsbooleanPostRequest getInstance(); + T getBuilderAfterRequestBody(FakerefsbooleanPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakerefsbooleanPostRequest getInstance(); + T getBuilderAfterServerIndex(FakerefsbooleanPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakerefsbooleanPostRequest getInstance(); + T getBuilderAfterTimeout(FakerefsbooleanPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakerefsbooleanPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakerefsbooleanPostRequest(); } - public PostRequest build() { + public FakerefsbooleanPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakerefsbooleanPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakerefsbooleanPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakerefsbooleanPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakerefsbooleanPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java similarity index 65% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java index 0e86519703b..a0e9fbda1d4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakerefscomposedoneofnumberwithvalidationsPost { + private static class FakerefscomposedoneofnumberwithvalidationsPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakerefscomposedoneofnumberwithvalidationsPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakerefscomposedoneofnumberwithvalidationsPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakerefscomposedoneofnumberwithvalidationsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefscomposedoneofnumberwithvalidationsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface ComposedOneOfDifferentTypesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse composedOneOfDifferentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse composedOneOfDifferentTypes(FakerefscomposedoneofnumberwithvalidationsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefscomposedoneofnumberwithvalidationsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefscomposedoneofnumberwithvalidationsPost1 extends ApiClient implements FakerefscomposedoneofnumberwithvalidationsPostOperation { + public FakerefscomposedoneofnumberwithvalidationsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakerefscomposedoneofnumberwithvalidationsPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakerefscomposedoneofnumberwithvalidationsPostRequest getInstance(); + T getBuilderAfterRequestBody(FakerefscomposedoneofnumberwithvalidationsPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakerefscomposedoneofnumberwithvalidationsPostRequest getInstance(); + T getBuilderAfterServerIndex(FakerefscomposedoneofnumberwithvalidationsPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakerefscomposedoneofnumberwithvalidationsPostRequest getInstance(); + T getBuilderAfterTimeout(FakerefscomposedoneofnumberwithvalidationsPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakerefscomposedoneofnumberwithvalidationsPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakerefscomposedoneofnumberwithvalidationsPostRequest(); } - public PostRequest build() { + public FakerefscomposedoneofnumberwithvalidationsPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakerefscomposedoneofnumberwithvalidationsPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakerefscomposedoneofnumberwithvalidationsPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakerefscomposedoneofnumberwithvalidationsPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakerefscomposedoneofnumberwithvalidationsPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java index 6b5ee0ea30f..eaa666330a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakerefsenumPost { + private static class FakerefsenumPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakerefsenumPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakerefsenumPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakerefsenumPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsenumPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface StringEnumOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse stringEnum(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse stringEnum(FakerefsenumPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsenumPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefsenumPost1 extends ApiClient implements FakerefsenumPostOperation { + public FakerefsenumPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakerefsenumPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakerefsenumPostRequest getInstance(); + T getBuilderAfterRequestBody(FakerefsenumPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakerefsenumPostRequest getInstance(); + T getBuilderAfterServerIndex(FakerefsenumPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakerefsenumPostRequest getInstance(); + T getBuilderAfterTimeout(FakerefsenumPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakerefsenumPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakerefsenumPostRequest(); } - public PostRequest build() { + public FakerefsenumPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakerefsenumPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakerefsenumPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakerefsenumPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakerefsenumPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java index cf0bf9417fa..dedb25bfec9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakerefsmammalPost { + private static class FakerefsmammalPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakerefsmammalPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakerefsmammalPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakerefsmammalPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsmammalPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface MammalOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse mammal(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse mammal(FakerefsmammalPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsmammalPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefsmammalPost1 extends ApiClient implements FakerefsmammalPostOperation { + public FakerefsmammalPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakerefsmammalPostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PostRequest( + public FakerefsmammalPostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class FakerefsmammalPostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + FakerefsmammalPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakerefsmammalPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + FakerefsmammalPostNullableRequest getInstance(); + T getBuilderAfterTimeout(FakerefsmammalPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + FakerefsmammalPostNullableRequest getInstance(); + T getBuilderAfterRequestBody(FakerefsmammalPostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final FakerefsmammalPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(FakerefsmammalPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public FakerefsmammalPostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new FakerefsmammalPostRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PostNullableRequest getInstance() { + public FakerefsmammalPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(FakerefsmammalPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(FakerefsmammalPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; + private final FakerefsmammalPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new FakerefsmammalPostNullableRequest(); } - public PostNullableRequest getInstance() { + public FakerefsmammalPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(FakerefsmammalPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java index 39454238aac..fe55ff8fced 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakerefsnumberPost { + private static class FakerefsnumberPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakerefsnumberPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakerefsnumberPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakerefsnumberPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsnumberPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface NumberWithValidationsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse numberWithValidations(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse numberWithValidations(FakerefsnumberPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsnumberPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefsnumberPost1 extends ApiClient implements FakerefsnumberPostOperation { + public FakerefsnumberPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakerefsnumberPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakerefsnumberPostRequest getInstance(); + T getBuilderAfterRequestBody(FakerefsnumberPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakerefsnumberPostRequest getInstance(); + T getBuilderAfterServerIndex(FakerefsnumberPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakerefsnumberPostRequest getInstance(); + T getBuilderAfterTimeout(FakerefsnumberPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakerefsnumberPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakerefsnumberPostRequest(); } - public PostRequest build() { + public FakerefsnumberPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakerefsnumberPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakerefsnumberPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakerefsnumberPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakerefsnumberPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java index 518fbb41cee..cd4c60c03a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakerefsobjectmodelwithrefpropsPost { + private static class FakerefsobjectmodelwithrefpropsPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakerefsobjectmodelwithrefpropsPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakerefsobjectmodelwithrefpropsPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakerefsobjectmodelwithrefpropsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsobjectmodelwithrefpropsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface ObjectModelWithRefPropsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse objectModelWithRefProps(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse objectModelWithRefProps(FakerefsobjectmodelwithrefpropsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsobjectmodelwithrefpropsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefsobjectmodelwithrefpropsPost1 extends ApiClient implements FakerefsobjectmodelwithrefpropsPostOperation { + public FakerefsobjectmodelwithrefpropsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakerefsobjectmodelwithrefpropsPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakerefsobjectmodelwithrefpropsPostRequest getInstance(); + T getBuilderAfterRequestBody(FakerefsobjectmodelwithrefpropsPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakerefsobjectmodelwithrefpropsPostRequest getInstance(); + T getBuilderAfterServerIndex(FakerefsobjectmodelwithrefpropsPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakerefsobjectmodelwithrefpropsPostRequest getInstance(); + T getBuilderAfterTimeout(FakerefsobjectmodelwithrefpropsPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakerefsobjectmodelwithrefpropsPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakerefsobjectmodelwithrefpropsPostRequest(); } - public PostRequest build() { + public FakerefsobjectmodelwithrefpropsPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakerefsobjectmodelwithrefpropsPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakerefsobjectmodelwithrefpropsPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakerefsobjectmodelwithrefpropsPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakerefsobjectmodelwithrefpropsPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java index 41d9b6d2496..8e5b2ca7e9a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakerefsstringPost { + private static class FakerefsstringPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakerefsstringPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakerefsstringPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakerefsstringPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsstringPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface ModelStringOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse modelString(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse modelString(FakerefsstringPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakerefsstringPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakerefsstringPost1 extends ApiClient implements FakerefsstringPostOperation { + public FakerefsstringPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakerefsstringPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakerefsstringPostRequest getInstance(); + T getBuilderAfterRequestBody(FakerefsstringPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakerefsstringPostRequest getInstance(); + T getBuilderAfterServerIndex(FakerefsstringPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakerefsstringPostRequest getInstance(); + T getBuilderAfterTimeout(FakerefsstringPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakerefsstringPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakerefsstringPostRequest(); } - public PostRequest build() { + public FakerefsstringPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakerefsstringPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakerefsstringPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakerefsstringPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakerefsstringPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java index 6cdb32b2e29..d686f4d1ef0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java @@ -19,12 +19,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakeresponsewithoutschemaGet { + private static class FakeresponsewithoutschemaGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakeresponsewithoutschemaGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakeresponsewithoutschemaGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakeresponsewithoutschemaGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeresponsewithoutschemaGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,25 +62,25 @@ public interface ResponseWithoutSchemaOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse responseWithoutSchema(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse responseWithoutSchema(FakeresponsewithoutschemaGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeresponsewithoutschemaGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeresponsewithoutschemaGet1 extends ApiClient implements FakeresponsewithoutschemaGetOperation { + public FakeresponsewithoutschemaGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakeresponsewithoutschemaGetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakeresponsewithoutschemaGetRequest getInstance(); + T getBuilderAfterServerIndex(FakeresponsewithoutschemaGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -89,8 +89,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakeresponsewithoutschemaGetRequest getInstance(); + T getBuilderAfterTimeout(FakeresponsewithoutschemaGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakeresponsewithoutschemaGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakeresponsewithoutschemaGetRequest(); } - public GetRequest build() { + public FakeresponsewithoutschemaGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakeresponsewithoutschemaGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakeresponsewithoutschemaGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakeresponsewithoutschemaGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/Put.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java index 2c076c5c890..b013415ef1a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Put { - private static class PutProvider { +public class FaketestqueryparamtersPut { + private static class FaketestqueryparamtersPutProvider { private static final String method = "put"; public static Responses.EndpointResponse put( - PutRequest request, + FaketestqueryparamtersPutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -55,12 +55,12 @@ public static Responses.EndpointResponse put( } } - public interface PutOperation { + public interface FaketestqueryparamtersPutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse put(FaketestqueryparamtersPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FaketestqueryparamtersPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -68,23 +68,23 @@ public interface QueryParameterCollectionFormatOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse queryParameterCollectionFormat(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse queryParameterCollectionFormat(FaketestqueryparamtersPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FaketestqueryparamtersPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Put1 extends ApiClient implements PutOperation { - public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FaketestqueryparamtersPut1 extends ApiClient implements FaketestqueryparamtersPutOperation { + public FaketestqueryparamtersPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PutRequest { + public static class FaketestqueryparamtersPutRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PutRequest( + public FaketestqueryparamtersPutRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -95,15 +95,15 @@ public PutRequest( } } - public static class PutNullableRequest { + public static class FaketestqueryparamtersPutNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); + FaketestqueryparamtersPutNullableRequest getInstance(); + T getBuilderAfterServerIndex(FaketestqueryparamtersPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -112,8 +112,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); + FaketestqueryparamtersPutNullableRequest getInstance(); + T getBuilderAfterTimeout(FaketestqueryparamtersPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -122,8 +122,8 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - PutNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PutNullableRequest instance); + FaketestqueryparamtersPutNullableRequest getInstance(); + T getBuilderAfterQueryParameters(FaketestqueryparamtersPutNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -132,48 +132,48 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; + private final FaketestqueryparamtersPutNullableRequest instance; - public Put0RequestBuilder(PutNullableRequest instance) { + public Put0RequestBuilder(FaketestqueryparamtersPutNullableRequest instance) { this.instance = instance; } - public PutRequest build() { + public FaketestqueryparamtersPutRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PutRequest( + return new FaketestqueryparamtersPutRequest( queryParameters, instance.serverIndex, instance.timeout ); } - public PutNullableRequest getInstance() { + public FaketestqueryparamtersPutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterServerIndex(FaketestqueryparamtersPutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterTimeout(FaketestqueryparamtersPutNullableRequest instance) { return this; } } public static class PutRequestBuilder implements SetterForQueryParameters { - private final PutNullableRequest instance; + private final FaketestqueryparamtersPutNullableRequest instance; public PutRequestBuilder() { - this.instance = new PutNullableRequest(); + this.instance = new FaketestqueryparamtersPutNullableRequest(); } - public PutNullableRequest getInstance() { + public FaketestqueryparamtersPutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterQueryParameters(FaketestqueryparamtersPutNullableRequest instance) { return new Put0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java index c0e34c9418a..9eab0b34377 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakeuploaddownloadfilePost { + private static class FakeuploaddownloadfilePostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakeuploaddownloadfilePostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakeuploaddownloadfilePostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakeuploaddownloadfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeuploaddownloadfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface UploadDownloadFileOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadDownloadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadDownloadFile(FakeuploaddownloadfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeuploaddownloadfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeuploaddownloadfilePost1 extends ApiClient implements FakeuploaddownloadfilePostOperation { + public FakeuploaddownloadfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakeuploaddownloadfilePostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PostRequest( + public FakeuploaddownloadfilePostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class FakeuploaddownloadfilePostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + FakeuploaddownloadfilePostNullableRequest getInstance(); + T getBuilderAfterServerIndex(FakeuploaddownloadfilePostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + FakeuploaddownloadfilePostNullableRequest getInstance(); + T getBuilderAfterTimeout(FakeuploaddownloadfilePostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + FakeuploaddownloadfilePostNullableRequest getInstance(); + T getBuilderAfterRequestBody(FakeuploaddownloadfilePostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final FakeuploaddownloadfilePostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(FakeuploaddownloadfilePostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public FakeuploaddownloadfilePostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new FakeuploaddownloadfilePostRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PostNullableRequest getInstance() { + public FakeuploaddownloadfilePostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(FakeuploaddownloadfilePostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(FakeuploaddownloadfilePostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; + private final FakeuploaddownloadfilePostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new FakeuploaddownloadfilePostNullableRequest(); } - public PostNullableRequest getInstance() { + public FakeuploaddownloadfilePostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(FakeuploaddownloadfilePostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java index 58b9493bcca..080c030d310 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakeuploadfilePost { + private static class FakeuploadfilePostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakeuploadfilePostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakeuploadfilePostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakeuploadfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeuploadfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface UploadFileOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadFile(FakeuploadfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeuploadfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeuploadfilePost1 extends ApiClient implements FakeuploadfilePostOperation { + public FakeuploadfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakeuploadfilePostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakeuploadfilePostRequest getInstance(); + T getBuilderAfterRequestBody(FakeuploadfilePostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakeuploadfilePostRequest getInstance(); + T getBuilderAfterServerIndex(FakeuploadfilePostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakeuploadfilePostRequest getInstance(); + T getBuilderAfterTimeout(FakeuploadfilePostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakeuploadfilePostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakeuploadfilePostRequest(); } - public PostRequest build() { + public FakeuploadfilePostRequest build() { return instance; } - public PostRequest getInstance() { + public FakeuploadfilePostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakeuploadfilePostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakeuploadfilePostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakeuploadfilePostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java index 2f6c2e6d7f0..39266d09711 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class FakeuploadfilesPost { + private static class FakeuploadfilesPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + FakeuploadfilesPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface FakeuploadfilesPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(FakeuploadfilesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeuploadfilesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface UploadFilesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadFiles(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadFiles(FakeuploadfilesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakeuploadfilesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakeuploadfilesPost1 extends ApiClient implements FakeuploadfilesPostOperation { + public FakeuploadfilesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class FakeuploadfilesPostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); + FakeuploadfilesPostRequest getInstance(); + T getBuilderAfterRequestBody(FakeuploadfilesPostRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -103,8 +103,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); + FakeuploadfilesPostRequest getInstance(); + T getBuilderAfterServerIndex(FakeuploadfilesPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,8 +113,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); + FakeuploadfilesPostRequest getInstance(); + T getBuilderAfterTimeout(FakeuploadfilesPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; + private final FakeuploadfilesPostRequest instance; public PostRequestBuilder() { - this.instance = new PostRequest(); + this.instance = new FakeuploadfilesPostRequest(); } - public PostRequest build() { + public FakeuploadfilesPostRequest build() { return instance; } - public PostRequest getInstance() { + public FakeuploadfilesPostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(FakeuploadfilesPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(FakeuploadfilesPostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(FakeuploadfilesPostRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java index 384fc42187b..6de89e90e9f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java @@ -19,12 +19,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FakewildcardresponsesGet { + private static class FakewildcardresponsesGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FakewildcardresponsesGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface FakewildcardresponsesGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FakewildcardresponsesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakewildcardresponsesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,25 +62,25 @@ public interface WildCardResponsesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse wildCardResponses(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse wildCardResponses(FakewildcardresponsesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FakewildcardresponsesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FakewildcardresponsesGet1 extends ApiClient implements FakewildcardresponsesGetOperation { + public FakewildcardresponsesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FakewildcardresponsesGetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FakewildcardresponsesGetRequest getInstance(); + T getBuilderAfterServerIndex(FakewildcardresponsesGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -89,8 +89,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FakewildcardresponsesGetRequest getInstance(); + T getBuilderAfterTimeout(FakewildcardresponsesGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FakewildcardresponsesGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FakewildcardresponsesGetRequest(); } - public GetRequest build() { + public FakewildcardresponsesGetRequest build() { return instance; } - public GetRequest getInstance() { + public FakewildcardresponsesGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FakewildcardresponsesGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FakewildcardresponsesGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java index a2b834a62ee..e46e413cd44 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java @@ -19,12 +19,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class FooGet { + private static class FooGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + FooGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,38 +49,29 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Responses.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 Responses.EndpointResponse fooGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(FooGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return FooGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class FooGet1 extends ApiClient implements FooGetOperation { + public FooGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class FooGetRequest { public FooGetServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + FooGetRequest getInstance(); + T getBuilderAfterServerIndex(FooGetRequest instance); default T serverIndex(FooGetServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -89,8 +80,8 @@ default T serverIndex(FooGetServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + FooGetRequest getInstance(); + T getBuilderAfterTimeout(FooGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -99,25 +90,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final FooGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new FooGetRequest(); } - public GetRequest build() { + public FooGetRequest build() { return instance; } - public GetRequest getInstance() { + public FooGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(FooGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(FooGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java similarity index 75% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java index 65caf372ad2..fa96e85ece6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java @@ -25,12 +25,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider extends AuthApplier { +public class PetPost { + private static class PetPostProvider extends AuthApplier { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + PetPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -71,12 +71,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface PetPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PetPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -84,24 +84,24 @@ public interface AddPetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse addPet(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse addPet(PetPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class PetPost1 extends ApiClient implements PetPostOperation { + public PetPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class PetPostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PostRequest( + public PetPostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetPostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -114,7 +114,7 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class PetPostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -122,8 +122,8 @@ public static class PostNullableRequest { } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + PetPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PetPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -132,8 +132,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PostNullableRequest instance); + PetPostNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PetPostNullableRequest instance); default T securityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -142,8 +142,8 @@ default T securityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + PetPostNullableRequest getInstance(); + T getBuilderAfterTimeout(PetPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -152,8 +152,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + PetPostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PetPostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -162,18 +162,18 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final PetPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(PetPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public PetPostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new PetPostRequest( requestBody, instance.serverIndex, instance.securityIndex, @@ -181,34 +181,34 @@ public PostRequest build() { ); } - public PostNullableRequest getInstance() { + public PetPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PetPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterSecurityIndex(PetPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PetPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; + private final PetPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new PetPostNullableRequest(); } - public PostNullableRequest getInstance() { + public PetPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(PetPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java similarity index 75% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java index e330935b1ed..97a90a080be 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java @@ -25,12 +25,12 @@ import java.util.List; import java.util.Map; -public class Put { - private static class PutProvider extends AuthApplier { +public class PetPut { + private static class PetPutProvider extends AuthApplier { private static final String method = "put"; public static Void put( - PutRequest request, + PetPutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -71,12 +71,12 @@ public static Void put( } } - public interface PutOperation { + public interface PetPutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void put(PetPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -84,24 +84,24 @@ 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()); + default Void updatePet(PetPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Put1 extends ApiClient implements PutOperation { - public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class PetPut1 extends ApiClient implements PetPutOperation { + public PetPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PutRequest { + public static class PetPutRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PutRequest( + public PetPutRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetPutSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -114,7 +114,7 @@ public PutRequest( } } - public static class PutNullableRequest { + public static class PetPutNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -122,8 +122,8 @@ public static class PutNullableRequest { } public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); + PetPutNullableRequest getInstance(); + T getBuilderAfterServerIndex(PetPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -132,8 +132,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PutNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PutNullableRequest instance); + PetPutNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PetPutNullableRequest instance); default T securityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -142,8 +142,8 @@ default T securityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); + PetPutNullableRequest getInstance(); + T getBuilderAfterTimeout(PetPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -152,8 +152,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(PutNullableRequest instance); + PetPutNullableRequest getInstance(); + T getBuilderAfterRequestBody(PetPutNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -162,18 +162,18 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Put0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PutNullableRequest instance; + private final PetPutNullableRequest instance; - public Put0RequestBuilder(PutNullableRequest instance) { + public Put0RequestBuilder(PetPutNullableRequest instance) { this.instance = instance; } - public PutRequest build() { + public PetPutRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PutRequest( + return new PetPutRequest( requestBody, instance.serverIndex, instance.securityIndex, @@ -181,34 +181,34 @@ public PutRequest build() { ); } - public PutNullableRequest getInstance() { + public PetPutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterServerIndex(PetPutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterSecurityIndex(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterSecurityIndex(PetPutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterTimeout(PetPutNullableRequest instance) { return this; } } public static class PutRequestBuilder implements SetterForRequestBody { - private final PutNullableRequest instance; + private final PetPutNullableRequest instance; public PutRequestBuilder() { - this.instance = new PutNullableRequest(); + this.instance = new PetPutNullableRequest(); } - public PutNullableRequest getInstance() { + public PetPutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterRequestBody(PetPutNullableRequest instance) { return new Put0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java similarity index 72% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java index f1f9e0dfeef..8300c6cd4c5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java @@ -24,12 +24,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider extends AuthApplier { +public class PetfindbystatusGet { + private static class PetfindbystatusGetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + PetfindbystatusGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -68,12 +68,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface PetfindbystatusGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(PetfindbystatusGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetfindbystatusGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -81,24 +81,24 @@ public interface FindPetsByStatusOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse findPetsByStatus(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse findPetsByStatus(PetfindbystatusGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetfindbystatusGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class PetfindbystatusGet1 extends ApiClient implements PetfindbystatusGetOperation { + public PetfindbystatusGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class PetfindbystatusGetRequest { public QueryParameters.QueryParametersMap queryParameters; public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public GetRequest( + public PetfindbystatusGetRequest( QueryParameters.QueryParametersMap queryParameters, PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex, PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -111,7 +111,7 @@ public GetRequest( } } - public static class GetNullableRequest { + public static class PetfindbystatusGetNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -119,8 +119,8 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); + PetfindbystatusGetNullableRequest getInstance(); + T getBuilderAfterServerIndex(PetfindbystatusGetNullableRequest instance); default T serverIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -129,8 +129,8 @@ default T serverIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - GetNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(GetNullableRequest instance); + PetfindbystatusGetNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PetfindbystatusGetNullableRequest instance); default T securityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -139,8 +139,8 @@ default T securityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityInd } public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); + PetfindbystatusGetNullableRequest getInstance(); + T getBuilderAfterTimeout(PetfindbystatusGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -149,8 +149,8 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); + PetfindbystatusGetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(PetfindbystatusGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -159,18 +159,18 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetNullableRequest instance; + private final PetfindbystatusGetNullableRequest instance; - public Get0RequestBuilder(GetNullableRequest instance) { + public Get0RequestBuilder(PetfindbystatusGetNullableRequest instance) { this.instance = instance; } - public GetRequest build() { + public PetfindbystatusGetRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new GetRequest( + return new PetfindbystatusGetRequest( queryParameters, instance.serverIndex, instance.securityIndex, @@ -178,34 +178,34 @@ public GetRequest build() { ); } - public GetNullableRequest getInstance() { + public PetfindbystatusGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(PetfindbystatusGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterSecurityIndex(PetfindbystatusGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(PetfindbystatusGetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForQueryParameters { - private final GetNullableRequest instance; + private final PetfindbystatusGetNullableRequest instance; public GetRequestBuilder() { - this.instance = new GetNullableRequest(); + this.instance = new PetfindbystatusGetNullableRequest(); } - public GetNullableRequest getInstance() { + public PetfindbystatusGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterQueryParameters(PetfindbystatusGetNullableRequest instance) { return new Get0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java similarity index 72% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java index 1894da3fc01..067e55449c9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java @@ -24,12 +24,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider extends AuthApplier { +public class PetfindbytagsGet { + private static class PetfindbytagsGetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + PetfindbytagsGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -68,12 +68,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface PetfindbytagsGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(PetfindbytagsGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetfindbytagsGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -81,24 +81,24 @@ public interface FindPetsByTagsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse findPetsByTags(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse findPetsByTags(PetfindbytagsGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetfindbytagsGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class PetfindbytagsGet1 extends ApiClient implements PetfindbytagsGetOperation { + public PetfindbytagsGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class PetfindbytagsGetRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public GetRequest( + public PetfindbytagsGetRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -111,7 +111,7 @@ public GetRequest( } } - public static class GetNullableRequest { + public static class PetfindbytagsGetNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -119,8 +119,8 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); + PetfindbytagsGetNullableRequest getInstance(); + T getBuilderAfterServerIndex(PetfindbytagsGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -129,8 +129,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - GetNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(GetNullableRequest instance); + PetfindbytagsGetNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PetfindbytagsGetNullableRequest instance); default T securityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -139,8 +139,8 @@ default T securityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex } public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); + PetfindbytagsGetNullableRequest getInstance(); + T getBuilderAfterTimeout(PetfindbytagsGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -149,8 +149,8 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); + PetfindbytagsGetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(PetfindbytagsGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -159,18 +159,18 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetNullableRequest instance; + private final PetfindbytagsGetNullableRequest instance; - public Get0RequestBuilder(GetNullableRequest instance) { + public Get0RequestBuilder(PetfindbytagsGetNullableRequest instance) { this.instance = instance; } - public GetRequest build() { + public PetfindbytagsGetRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new GetRequest( + return new PetfindbytagsGetRequest( queryParameters, instance.serverIndex, instance.securityIndex, @@ -178,34 +178,34 @@ public GetRequest build() { ); } - public GetNullableRequest getInstance() { + public PetfindbytagsGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(PetfindbytagsGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterSecurityIndex(PetfindbytagsGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(PetfindbytagsGetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForQueryParameters { - private final GetNullableRequest instance; + private final PetfindbytagsGetNullableRequest instance; public GetRequestBuilder() { - this.instance = new GetNullableRequest(); + this.instance = new PetfindbytagsGetNullableRequest(); } - public GetNullableRequest getInstance() { + public PetfindbytagsGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterQueryParameters(PetfindbytagsGetNullableRequest instance) { return new Get0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java similarity index 76% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Delete.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java index f371109c895..f679abea44e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java @@ -25,12 +25,12 @@ import java.util.List; import java.util.Map; -public class Delete { - private static class DeleteProvider extends AuthApplier { +public class PetpetidDelete { + private static class PetpetidDeleteProvider extends AuthApplier { private static final String method = "delete"; public static Void delete( - DeleteRequest request, + PetpetidDeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -74,12 +74,12 @@ public static Void delete( } } - public interface DeleteOperation { + public interface PetpetidDeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void delete(PetpetidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetpetidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,25 +87,25 @@ 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()); + default Void deletePet(PetpetidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetpetidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Delete1 extends ApiClient implements DeleteOperation { - public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class PetpetidDelete1 extends ApiClient implements PetpetidDeleteOperation { + public PetpetidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class DeleteRequest { + public static class PetpetidDeleteRequest { public PathParameters.PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public DeleteRequest( + public PetpetidDeleteRequest( PathParameters.PathParametersMap pathParameters, HeaderParameters.@Nullable HeaderParametersMap headerParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -120,7 +120,7 @@ public DeleteRequest( } } - public static class DeleteNullableRequest { + public static class PetpetidDeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -129,8 +129,8 @@ public static class DeleteNullableRequest { } public interface SetterForHeaderParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); + PetpetidDeleteNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(PetpetidDeleteNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -139,8 +139,8 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); + PetpetidDeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(PetpetidDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -149,8 +149,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(DeleteNullableRequest instance); + PetpetidDeleteNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PetpetidDeleteNullableRequest instance); default T securityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -159,8 +159,8 @@ default T securityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) } public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); + PetpetidDeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(PetpetidDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -169,8 +169,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); + PetpetidDeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(PetpetidDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -179,18 +179,18 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final DeleteNullableRequest instance; + private final PetpetidDeleteNullableRequest instance; - public Delete0RequestBuilder(DeleteNullableRequest instance) { + public Delete0RequestBuilder(PetpetidDeleteNullableRequest instance) { this.instance = instance; } - public DeleteRequest build() { + public PetpetidDeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new DeleteRequest( + return new PetpetidDeleteRequest( pathParameters, instance.headerParameters, instance.serverIndex, @@ -199,38 +199,38 @@ public DeleteRequest build() { ); } - public DeleteNullableRequest getInstance() { + public PetpetidDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterHeaderParameters(PetpetidDeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(PetpetidDeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterSecurityIndex(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterSecurityIndex(PetpetidDeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(PetpetidDeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; + private final PetpetidDeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); + this.instance = new PetpetidDeleteNullableRequest(); } - public DeleteNullableRequest getInstance() { + public PetpetidDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterPathParameters(PetpetidDeleteNullableRequest instance) { return new Delete0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java similarity index 73% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java index c3f45692546..481e319741f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java @@ -24,12 +24,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider extends AuthApplier { +public class PetpetidGet { + private static class PetpetidGetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + PetpetidGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -67,12 +67,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface PetpetidGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(PetpetidGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetpetidGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,24 +80,24 @@ public interface GetPetByIdOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getPetById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getPetById(PetpetidGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetpetidGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class PetpetidGet1 extends ApiClient implements PetpetidGetOperation { + public PetpetidGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class PetpetidGetRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public GetRequest( + public PetpetidGetRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -110,7 +110,7 @@ public GetRequest( } } - public static class GetNullableRequest { + public static class PetpetidGetNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -118,8 +118,8 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); + PetpetidGetNullableRequest getInstance(); + T getBuilderAfterServerIndex(PetpetidGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -128,8 +128,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - GetNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(GetNullableRequest instance); + PetpetidGetNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PetpetidGetNullableRequest instance); default T securityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -138,8 +138,8 @@ default T securityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); + PetpetidGetNullableRequest getInstance(); + T getBuilderAfterTimeout(PetpetidGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -148,8 +148,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(GetNullableRequest instance); + PetpetidGetNullableRequest getInstance(); + T getBuilderAfterPathParameters(PetpetidGetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -158,18 +158,18 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetNullableRequest instance; + private final PetpetidGetNullableRequest instance; - public Get0RequestBuilder(GetNullableRequest instance) { + public Get0RequestBuilder(PetpetidGetNullableRequest instance) { this.instance = instance; } - public GetRequest build() { + public PetpetidGetRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new GetRequest( + return new PetpetidGetRequest( pathParameters, instance.serverIndex, instance.securityIndex, @@ -177,34 +177,34 @@ public GetRequest build() { ); } - public GetNullableRequest getInstance() { + public PetpetidGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(PetpetidGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterSecurityIndex(PetpetidGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(PetpetidGetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForPathParameters { - private final GetNullableRequest instance; + private final PetpetidGetNullableRequest instance; public GetRequestBuilder() { - this.instance = new GetNullableRequest(); + this.instance = new PetpetidGetNullableRequest(); } - public GetNullableRequest getInstance() { + public PetpetidGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterPathParameters(PetpetidGetNullableRequest instance) { return new Get0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java similarity index 76% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java index 8e7357da63b..f3d49175458 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java @@ -27,12 +27,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider extends AuthApplier { +public class PetpetidPost { + private static class PetpetidPostProvider extends AuthApplier { private static final String method = "post"; public static Void post( - PostRequest request, + PetpetidPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -80,12 +80,12 @@ public static Void post( } } - public interface PostOperation { + public interface PetpetidPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void post(PetpetidPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetpetidPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -93,25 +93,25 @@ 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()); + default Void updatePetWithForm(PetpetidPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetpetidPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class PetpetidPost1 extends ApiClient implements PetpetidPostOperation { + public PetpetidPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class PetpetidPostRequest { public PathParameters.PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PostRequest( + public PetpetidPostRequest( PathParameters.PathParametersMap pathParameters, RequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -126,7 +126,7 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class PetpetidPostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -135,8 +135,8 @@ public static class PostNullableRequest { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + PetpetidPostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PetpetidPostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -145,8 +145,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + PetpetidPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PetpetidPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -155,8 +155,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PostNullableRequest instance); + PetpetidPostNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PetpetidPostNullableRequest instance); default T securityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -165,8 +165,8 @@ default T securityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + PetpetidPostNullableRequest getInstance(); + T getBuilderAfterTimeout(PetpetidPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -175,8 +175,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); + PetpetidPostNullableRequest getInstance(); + T getBuilderAfterPathParameters(PetpetidPostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -185,18 +185,18 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final PetpetidPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(PetpetidPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public PetpetidPostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new PetpetidPostRequest( pathParameters, instance.requestBody, instance.serverIndex, @@ -205,38 +205,38 @@ public PostRequest build() { ); } - public PostNullableRequest getInstance() { + public PetpetidPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(PetpetidPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PetpetidPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterSecurityIndex(PetpetidPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PetpetidPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; + private final PetpetidPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new PetpetidPostNullableRequest(); } - public PostNullableRequest getInstance() { + public PetpetidPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterPathParameters(PetpetidPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java similarity index 73% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java index 2f14aeced0e..ad8a36d2d65 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java @@ -27,12 +27,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider extends AuthApplier { +public class PetpetiduploadimagePost { + private static class PetpetiduploadimagePostProvider extends AuthApplier { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + PetpetiduploadimagePostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -80,12 +80,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface PetpetiduploadimagePostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PetpetiduploadimagePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetpetiduploadimagePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -93,25 +93,25 @@ public interface UploadImageOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadImage(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadImage(PetpetiduploadimagePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PetpetiduploadimagePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class PetpetiduploadimagePost1 extends ApiClient implements PetpetiduploadimagePostOperation { + public PetpetiduploadimagePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class PetpetiduploadimagePostRequest { public PathParameters.PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PostRequest( + public PetpetiduploadimagePostRequest( PathParameters.PathParametersMap pathParameters, RequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -126,7 +126,7 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class PetpetiduploadimagePostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -135,8 +135,8 @@ public static class PostNullableRequest { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + PetpetiduploadimagePostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PetpetiduploadimagePostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -145,8 +145,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + PetpetiduploadimagePostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PetpetiduploadimagePostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -155,8 +155,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PostNullableRequest instance); + PetpetiduploadimagePostNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PetpetiduploadimagePostNullableRequest instance); default T securityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -165,8 +165,8 @@ default T securityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securi } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + PetpetiduploadimagePostNullableRequest getInstance(); + T getBuilderAfterTimeout(PetpetiduploadimagePostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -175,8 +175,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); + PetpetiduploadimagePostNullableRequest getInstance(); + T getBuilderAfterPathParameters(PetpetiduploadimagePostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -185,18 +185,18 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final PetpetiduploadimagePostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(PetpetiduploadimagePostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public PetpetiduploadimagePostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new PetpetiduploadimagePostRequest( pathParameters, instance.requestBody, instance.serverIndex, @@ -205,38 +205,38 @@ public PostRequest build() { ); } - public PostNullableRequest getInstance() { + public PetpetiduploadimagePostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(PetpetiduploadimagePostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PetpetiduploadimagePostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterSecurityIndex(PetpetiduploadimagePostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PetpetiduploadimagePostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; + private final PetpetiduploadimagePostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new PetpetiduploadimagePostNullableRequest(); } - public PostNullableRequest getInstance() { + public PetpetiduploadimagePostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterPathParameters(PetpetiduploadimagePostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java index f51943f0a05..fbcf38e99e0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java @@ -19,12 +19,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class SolidusGet { + private static class SolidusGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + SolidusGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface SolidusGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(SolidusGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return SolidusGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,25 +62,25 @@ public interface SlashRouteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse slashRoute(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse slashRoute(SolidusGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return SolidusGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class SolidusGet1 extends ApiClient implements SolidusGetOperation { + public SolidusGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class SolidusGetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + SolidusGetRequest getInstance(); + T getBuilderAfterServerIndex(SolidusGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -89,8 +89,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + SolidusGetRequest getInstance(); + T getBuilderAfterTimeout(SolidusGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final SolidusGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new SolidusGetRequest(); } - public GetRequest build() { + public SolidusGetRequest build() { return instance; } - public GetRequest getInstance() { + public SolidusGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(SolidusGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(SolidusGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java index 3b907a1e148..f771ae062a9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider extends AuthApplier { +public class StoreinventoryGet { + private static class StoreinventoryGetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + StoreinventoryGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface StoreinventoryGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(StoreinventoryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return StoreinventoryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,26 +75,26 @@ public interface GetInventoryOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getInventory(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getInventory(StoreinventoryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return StoreinventoryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class StoreinventoryGet1 extends ApiClient implements StoreinventoryGetOperation { + public StoreinventoryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class StoreinventoryGetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public StoreinventoryGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + StoreinventoryGetRequest getInstance(); + T getBuilderAfterServerIndex(StoreinventoryGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -103,8 +103,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - GetRequest getInstance(); - T getBuilderAfterSecurityIndex(GetRequest instance); + StoreinventoryGetRequest getInstance(); + T getBuilderAfterSecurityIndex(StoreinventoryGetRequest instance); default T securityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -113,8 +113,8 @@ default T securityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityInde } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + StoreinventoryGetRequest getInstance(); + T getBuilderAfterTimeout(StoreinventoryGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetRequest instance; + private final StoreinventoryGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new StoreinventoryGetRequest(); } - public GetRequest build() { + public StoreinventoryGetRequest build() { return instance; } - public GetRequest getInstance() { + public StoreinventoryGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(StoreinventoryGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterSecurityIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterSecurityIndex(StoreinventoryGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(StoreinventoryGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java index 75ee3b8d98d..afc4a584928 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class StoreorderPost { + private static class StoreorderPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + StoreorderPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface StoreorderPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(StoreorderPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return StoreorderPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface PlaceOrderOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse placeOrder(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse placeOrder(StoreorderPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return StoreorderPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class StoreorderPost1 extends ApiClient implements StoreorderPostOperation { + public StoreorderPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class StoreorderPostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PostRequest( + public StoreorderPostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class StoreorderPostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + StoreorderPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(StoreorderPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + StoreorderPostNullableRequest getInstance(); + T getBuilderAfterTimeout(StoreorderPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + StoreorderPostNullableRequest getInstance(); + T getBuilderAfterRequestBody(StoreorderPostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final StoreorderPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(StoreorderPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public StoreorderPostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new StoreorderPostRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PostNullableRequest getInstance() { + public StoreorderPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(StoreorderPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(StoreorderPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; + private final StoreorderPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new StoreorderPostNullableRequest(); } - public PostNullableRequest getInstance() { + public StoreorderPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(StoreorderPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Delete.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java index dfc6aec4374..33b0ab5ca44 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Delete { - private static class DeleteProvider { +public class StoreorderorderidDelete { + private static class StoreorderorderidDeleteProvider { private static final String method = "delete"; public static Void delete( - DeleteRequest request, + StoreorderorderidDeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Void delete( } } - public interface DeleteOperation { + public interface StoreorderorderidDeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void delete(StoreorderorderidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return StoreorderorderidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,23 +67,23 @@ 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()); + default Void deleteOrder(StoreorderorderidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return StoreorderorderidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Delete1 extends ApiClient implements DeleteOperation { - public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class StoreorderorderidDelete1 extends ApiClient implements StoreorderorderidDeleteOperation { + public StoreorderorderidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class DeleteRequest { + public static class StoreorderorderidDeleteRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public DeleteRequest( + public StoreorderorderidDeleteRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,15 +94,15 @@ public DeleteRequest( } } - public static class DeleteNullableRequest { + public static class StoreorderorderidDeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); + StoreorderorderidDeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(StoreorderorderidDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -111,8 +111,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); + StoreorderorderidDeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(StoreorderorderidDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -121,8 +121,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); + StoreorderorderidDeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(StoreorderorderidDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -131,48 +131,48 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final DeleteNullableRequest instance; + private final StoreorderorderidDeleteNullableRequest instance; - public Delete0RequestBuilder(DeleteNullableRequest instance) { + public Delete0RequestBuilder(StoreorderorderidDeleteNullableRequest instance) { this.instance = instance; } - public DeleteRequest build() { + public StoreorderorderidDeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new DeleteRequest( + return new StoreorderorderidDeleteRequest( pathParameters, instance.serverIndex, instance.timeout ); } - public DeleteNullableRequest getInstance() { + public StoreorderorderidDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(StoreorderorderidDeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(StoreorderorderidDeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; + private final StoreorderorderidDeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); + this.instance = new StoreorderorderidDeleteNullableRequest(); } - public DeleteNullableRequest getInstance() { + public StoreorderorderidDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterPathParameters(StoreorderorderidDeleteNullableRequest instance) { return new Delete0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java index b32b30008ac..6016b8595e7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class StoreorderorderidGet { + private static class StoreorderorderidGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + StoreorderorderidGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface StoreorderorderidGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(StoreorderorderidGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return StoreorderorderidGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,23 +67,23 @@ public interface GetOrderByIdOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getOrderById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getOrderById(StoreorderorderidGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return StoreorderorderidGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class StoreorderorderidGet1 extends ApiClient implements StoreorderorderidGetOperation { + public StoreorderorderidGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class StoreorderorderidGetRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public GetRequest( + public StoreorderorderidGetRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,15 +94,15 @@ public GetRequest( } } - public static class GetNullableRequest { + public static class StoreorderorderidGetNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); + StoreorderorderidGetNullableRequest getInstance(); + T getBuilderAfterServerIndex(StoreorderorderidGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -111,8 +111,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); + StoreorderorderidGetNullableRequest getInstance(); + T getBuilderAfterTimeout(StoreorderorderidGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -121,8 +121,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(GetNullableRequest instance); + StoreorderorderidGetNullableRequest getInstance(); + T getBuilderAfterPathParameters(StoreorderorderidGetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -131,48 +131,48 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; + private final StoreorderorderidGetNullableRequest instance; - public Get0RequestBuilder(GetNullableRequest instance) { + public Get0RequestBuilder(StoreorderorderidGetNullableRequest instance) { this.instance = instance; } - public GetRequest build() { + public StoreorderorderidGetRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new GetRequest( + return new StoreorderorderidGetRequest( pathParameters, instance.serverIndex, instance.timeout ); } - public GetNullableRequest getInstance() { + public StoreorderorderidGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(StoreorderorderidGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(StoreorderorderidGetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForPathParameters { - private final GetNullableRequest instance; + private final StoreorderorderidGetNullableRequest instance; public GetRequestBuilder() { - this.instance = new GetNullableRequest(); + this.instance = new StoreorderorderidGetNullableRequest(); } - public GetNullableRequest getInstance() { + public StoreorderorderidGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterPathParameters(StoreorderorderidGetNullableRequest instance) { return new Get0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java similarity index 72% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java index c79b79dfa64..0dd98d3b72c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class UserPost { + private static class UserPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + UserPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface UserPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(UserPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface CreateUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse createUser(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse createUser(UserPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class UserPost1 extends ApiClient implements UserPostOperation { + public UserPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class UserPostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PostRequest( + public UserPostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class UserPostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + UserPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(UserPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + UserPostNullableRequest getInstance(); + T getBuilderAfterTimeout(UserPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + UserPostNullableRequest getInstance(); + T getBuilderAfterRequestBody(UserPostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final UserPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(UserPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public UserPostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new UserPostRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PostNullableRequest getInstance() { + public UserPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(UserPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(UserPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; + private final UserPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new UserPostNullableRequest(); } - public PostNullableRequest getInstance() { + public UserPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(UserPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java index acb3e0f7d80..15a5bbfcff9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class UsercreatewitharrayPost { + private static class UsercreatewitharrayPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + UsercreatewitharrayPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface UsercreatewitharrayPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(UsercreatewitharrayPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UsercreatewitharrayPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface CreateUsersWithArrayInputOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse createUsersWithArrayInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse createUsersWithArrayInput(UsercreatewitharrayPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UsercreatewitharrayPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class UsercreatewitharrayPost1 extends ApiClient implements UsercreatewitharrayPostOperation { + public UsercreatewitharrayPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class UsercreatewitharrayPostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PostRequest( + public UsercreatewitharrayPostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class UsercreatewitharrayPostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + UsercreatewitharrayPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(UsercreatewitharrayPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + UsercreatewitharrayPostNullableRequest getInstance(); + T getBuilderAfterTimeout(UsercreatewitharrayPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + UsercreatewitharrayPostNullableRequest getInstance(); + T getBuilderAfterRequestBody(UsercreatewitharrayPostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final UsercreatewitharrayPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(UsercreatewitharrayPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public UsercreatewitharrayPostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new UsercreatewitharrayPostRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PostNullableRequest getInstance() { + public UsercreatewitharrayPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(UsercreatewitharrayPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(UsercreatewitharrayPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; + private final UsercreatewitharrayPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new UsercreatewitharrayPostNullableRequest(); } - public PostNullableRequest getInstance() { + public UsercreatewitharrayPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(UsercreatewitharrayPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/Post.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java index 9f4ab1e344c..6ccd8bb85c4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/Post.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java @@ -22,12 +22,12 @@ import java.util.List; import java.util.Map; -public class Post { - private static class PostProvider { +public class UsercreatewithlistPost { + private static class UsercreatewithlistPostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - PostRequest request, + UsercreatewithlistPostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface PostOperation { + public interface UsercreatewithlistPostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(UsercreatewithlistPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UsercreatewithlistPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,23 +71,23 @@ public interface CreateUsersWithListInputOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse createUsersWithListInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse createUsersWithListInput(UsercreatewithlistPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UsercreatewithlistPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Post1 extends ApiClient implements PostOperation { - public Post1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class UsercreatewithlistPost1 extends ApiClient implements UsercreatewithlistPostOperation { + public UsercreatewithlistPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PostRequest { + public static class UsercreatewithlistPostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PostRequest( + public UsercreatewithlistPostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,15 +98,15 @@ public PostRequest( } } - public static class PostNullableRequest { + public static class UsercreatewithlistPostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); + UsercreatewithlistPostNullableRequest getInstance(); + T getBuilderAfterServerIndex(UsercreatewithlistPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -115,8 +115,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); + UsercreatewithlistPostNullableRequest getInstance(); + T getBuilderAfterTimeout(UsercreatewithlistPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -125,8 +125,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); + UsercreatewithlistPostNullableRequest getInstance(); + T getBuilderAfterRequestBody(UsercreatewithlistPostNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -135,48 +135,48 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; + private final UsercreatewithlistPostNullableRequest instance; - public Post0RequestBuilder(PostNullableRequest instance) { + public Post0RequestBuilder(UsercreatewithlistPostNullableRequest instance) { this.instance = instance; } - public PostRequest build() { + public UsercreatewithlistPostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PostRequest( + return new UsercreatewithlistPostRequest( requestBody, instance.serverIndex, instance.timeout ); } - public PostNullableRequest getInstance() { + public UsercreatewithlistPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(UsercreatewithlistPostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(UsercreatewithlistPostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; + private final UsercreatewithlistPostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PostNullableRequest(); + this.instance = new UsercreatewithlistPostNullableRequest(); } - public PostNullableRequest getInstance() { + public UsercreatewithlistPostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(UsercreatewithlistPostNullableRequest instance) { return new Post0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java index 0a9973ddcdc..174f14d2269 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class UserloginGet { + private static class UserloginGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + UserloginGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -55,12 +55,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface UserloginGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(UserloginGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserloginGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -68,23 +68,23 @@ public interface LoginUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse loginUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse loginUser(UserloginGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserloginGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class UserloginGet1 extends ApiClient implements UserloginGetOperation { + public UserloginGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class UserloginGetRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public GetRequest( + public UserloginGetRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -95,15 +95,15 @@ public GetRequest( } } - public static class GetNullableRequest { + public static class UserloginGetNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); + UserloginGetNullableRequest getInstance(); + T getBuilderAfterServerIndex(UserloginGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -112,8 +112,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); + UserloginGetNullableRequest getInstance(); + T getBuilderAfterTimeout(UserloginGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -122,8 +122,8 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); + UserloginGetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(UserloginGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -132,48 +132,48 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; + private final UserloginGetNullableRequest instance; - public Get0RequestBuilder(GetNullableRequest instance) { + public Get0RequestBuilder(UserloginGetNullableRequest instance) { this.instance = instance; } - public GetRequest build() { + public UserloginGetRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new GetRequest( + return new UserloginGetRequest( queryParameters, instance.serverIndex, instance.timeout ); } - public GetNullableRequest getInstance() { + public UserloginGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(UserloginGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(UserloginGetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForQueryParameters { - private final GetNullableRequest instance; + private final UserloginGetNullableRequest instance; public GetRequestBuilder() { - this.instance = new GetNullableRequest(); + this.instance = new UserloginGetNullableRequest(); } - public GetNullableRequest getInstance() { + public UserloginGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterQueryParameters(UserloginGetNullableRequest instance) { return new Get0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java index ce11f53a11c..20544d55369 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java @@ -19,12 +19,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class UserlogoutGet { + private static class UserlogoutGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + UserlogoutGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface UserlogoutGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(UserlogoutGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserlogoutGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,25 +62,25 @@ public interface LogoutUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse logoutUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse logoutUser(UserlogoutGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserlogoutGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class UserlogoutGet1 extends ApiClient implements UserlogoutGetOperation { + public UserlogoutGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class UserlogoutGetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); + UserlogoutGetRequest getInstance(); + T getBuilderAfterServerIndex(UserlogoutGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -89,8 +89,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); + UserlogoutGetRequest getInstance(); + T getBuilderAfterTimeout(UserlogoutGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; + private final UserlogoutGetRequest instance; public GetRequestBuilder() { - this.instance = new GetRequest(); + this.instance = new UserlogoutGetRequest(); } - public GetRequest build() { + public UserlogoutGetRequest build() { return instance; } - public GetRequest getInstance() { + public UserlogoutGetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(UserlogoutGetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(UserlogoutGetRequest instance) { return this; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Delete.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java index 165e2167659..3d9dbe5e7da 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Delete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Delete { - private static class DeleteProvider { +public class UserusernameDelete { + private static class UserusernameDeleteProvider { private static final String method = "delete"; public static Responses.EndpointResponse delete( - DeleteRequest request, + UserusernameDeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Responses.EndpointResponse delete( } } - public interface DeleteOperation { + public interface UserusernameDeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse delete(UserusernameDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserusernameDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,23 +67,23 @@ public interface DeleteUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse deleteUser(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse deleteUser(UserusernameDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserusernameDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Delete1 extends ApiClient implements DeleteOperation { - public Delete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class UserusernameDelete1 extends ApiClient implements UserusernameDeleteOperation { + public UserusernameDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class DeleteRequest { + public static class UserusernameDeleteRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public DeleteRequest( + public UserusernameDeleteRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,15 +94,15 @@ public DeleteRequest( } } - public static class DeleteNullableRequest { + public static class UserusernameDeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); + UserusernameDeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(UserusernameDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -111,8 +111,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); + UserusernameDeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(UserusernameDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -121,8 +121,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); + UserusernameDeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(UserusernameDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -131,48 +131,48 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final DeleteNullableRequest instance; + private final UserusernameDeleteNullableRequest instance; - public Delete0RequestBuilder(DeleteNullableRequest instance) { + public Delete0RequestBuilder(UserusernameDeleteNullableRequest instance) { this.instance = instance; } - public DeleteRequest build() { + public UserusernameDeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new DeleteRequest( + return new UserusernameDeleteRequest( pathParameters, instance.serverIndex, instance.timeout ); } - public DeleteNullableRequest getInstance() { + public UserusernameDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(UserusernameDeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(UserusernameDeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; + private final UserusernameDeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); + this.instance = new UserusernameDeleteNullableRequest(); } - public DeleteNullableRequest getInstance() { + public UserusernameDeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterPathParameters(UserusernameDeleteNullableRequest instance) { return new Delete0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Get.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java index 87997b05786..241334c4598 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Get.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java @@ -21,12 +21,12 @@ import java.util.List; import java.util.Map; -public class Get { - private static class GetProvider { +public class UserusernameGet { + private static class UserusernameGetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - GetRequest request, + UserusernameGetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Responses.EndpointResponse get( } } - public interface GetOperation { + public interface UserusernameGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(UserusernameGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserusernameGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,23 +67,23 @@ public interface GetUserByNameOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getUserByName(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getUserByName(UserusernameGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserusernameGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Get1 extends ApiClient implements GetOperation { - public Get1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class UserusernameGet1 extends ApiClient implements UserusernameGetOperation { + public UserusernameGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class GetRequest { + public static class UserusernameGetRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public GetRequest( + public UserusernameGetRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,15 +94,15 @@ public GetRequest( } } - public static class GetNullableRequest { + public static class UserusernameGetNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); + UserusernameGetNullableRequest getInstance(); + T getBuilderAfterServerIndex(UserusernameGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -111,8 +111,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); + UserusernameGetNullableRequest getInstance(); + T getBuilderAfterTimeout(UserusernameGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -121,8 +121,8 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(GetNullableRequest instance); + UserusernameGetNullableRequest getInstance(); + T getBuilderAfterPathParameters(UserusernameGetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -131,48 +131,48 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; + private final UserusernameGetNullableRequest instance; - public Get0RequestBuilder(GetNullableRequest instance) { + public Get0RequestBuilder(UserusernameGetNullableRequest instance) { this.instance = instance; } - public GetRequest build() { + public UserusernameGetRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new GetRequest( + return new UserusernameGetRequest( pathParameters, instance.serverIndex, instance.timeout ); } - public GetNullableRequest getInstance() { + public UserusernameGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(UserusernameGetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(UserusernameGetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForPathParameters { - private final GetNullableRequest instance; + private final UserusernameGetNullableRequest instance; public GetRequestBuilder() { - this.instance = new GetNullableRequest(); + this.instance = new UserusernameGetNullableRequest(); } - public GetNullableRequest getInstance() { + public UserusernameGetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterPathParameters(UserusernameGetNullableRequest instance) { return new Get0RequestBuilder(instance); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Put.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java index 183dcecff51..a360755b2d3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/Put.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java @@ -24,12 +24,12 @@ import java.util.List; import java.util.Map; -public class Put { - private static class PutProvider { +public class UserusernamePut { + private static class UserusernamePutProvider { private static final String method = "put"; public static Void put( - PutRequest request, + UserusernamePutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -63,12 +63,12 @@ public static Void put( } } - public interface PutOperation { + public interface UserusernamePutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void put(UserusernamePutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserusernamePutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,24 +76,24 @@ 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()); + default Void updateUser(UserusernamePutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return UserusernamePutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class Put1 extends ApiClient implements PutOperation { - public Put1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class UserusernamePut1 extends ApiClient implements UserusernamePutOperation { + public UserusernamePut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PutRequest { + public static class UserusernamePutRequest { public RequestBody.SealedRequestBody requestBody; public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public PutRequest( + public UserusernamePutRequest( RequestBody.SealedRequestBody requestBody, PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -106,7 +106,7 @@ public PutRequest( } } - public static class PutNullableRequest { + public static class UserusernamePutNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -114,8 +114,8 @@ public static class PutNullableRequest { } public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); + UserusernamePutNullableRequest getInstance(); + T getBuilderAfterServerIndex(UserusernamePutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -124,8 +124,8 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); + UserusernamePutNullableRequest getInstance(); + T getBuilderAfterTimeout(UserusernamePutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -134,8 +134,8 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(PutNullableRequest instance); + UserusernamePutNullableRequest getInstance(); + T getBuilderAfterRequestBody(UserusernamePutNullableRequest instance); default T requestBody(RequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -144,8 +144,8 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForPathParameters { - PutNullableRequest getInstance(); - T getBuilderAfterPathParameters(PutNullableRequest instance); + UserusernamePutNullableRequest getInstance(); + T getBuilderAfterPathParameters(UserusernamePutNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -154,13 +154,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Put00RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; + private final UserusernamePutNullableRequest instance; - public Put00RequestBuilder(PutNullableRequest instance) { + public Put00RequestBuilder(UserusernamePutNullableRequest instance) { this.instance = instance; } - public PutRequest build() { + public UserusernamePutRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -169,7 +169,7 @@ public PutRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PutRequest( + return new UserusernamePutRequest( requestBody, pathParameters, instance.serverIndex, @@ -177,64 +177,64 @@ public PutRequest build() { ); } - public PutNullableRequest getInstance() { + public UserusernamePutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterServerIndex(UserusernamePutNullableRequest instance) { return this; } - public Put00RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterTimeout(UserusernamePutNullableRequest instance) { return this; } } public static class Put01RequestBuilder implements SetterForPathParameters { - private final PutNullableRequest instance; + private final UserusernamePutNullableRequest instance; - public Put01RequestBuilder(PutNullableRequest instance) { + public Put01RequestBuilder(UserusernamePutNullableRequest instance) { this.instance = instance; } - public PutNullableRequest getInstance() { + public UserusernamePutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterPathParameters(PutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterPathParameters(UserusernamePutNullableRequest instance) { return new Put00RequestBuilder(instance); } } public static class Put10RequestBuilder implements SetterForRequestBody { - private final PutNullableRequest instance; + private final UserusernamePutNullableRequest instance; - public Put10RequestBuilder(PutNullableRequest instance) { + public Put10RequestBuilder(UserusernamePutNullableRequest instance) { this.instance = instance; } - public PutNullableRequest getInstance() { + public UserusernamePutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterRequestBody(UserusernamePutNullableRequest instance) { return new Put00RequestBuilder(instance); } } public static class PutRequestBuilder implements SetterForRequestBody, SetterForPathParameters { - private final PutNullableRequest instance; + private final UserusernamePutNullableRequest instance; public PutRequestBuilder() { - this.instance = new PutNullableRequest(); + this.instance = new UserusernamePutNullableRequest(); } - public PutNullableRequest getInstance() { + public UserusernamePutNullableRequest getInstance() { return instance; } - public Put01RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + public Put01RequestBuilder getBuilderAfterRequestBody(UserusernamePutNullableRequest instance) { return new Put01RequestBuilder(instance); } - public Put10RequestBuilder getBuilderAfterPathParameters(PutNullableRequest instance) { + public Put10RequestBuilder getBuilderAfterPathParameters(UserusernamePutNullableRequest instance) { return new Put10RequestBuilder(instance); } } diff --git a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java index 852cc36ba23..7657b53400e 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java +++ b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java @@ -1221,12 +1221,17 @@ void generateApis(List files, TreeMap paths) for(Map.Entry>> entry: tagToPathToOperations.entrySet()) { CodegenTag tag = entry.getKey(); HashMap> pathToOperations = entry.getValue(); + ArrayList operations = new ArrayList<>(); + for (Map.Entry> pathtoOps: pathToOperations.entrySet()) { + operations.addAll(pathtoOps.getValue()); + } Map apiData = new HashMap<>(); String packageName = generator.packageName(); apiData.put("packageName", packageName); apiData.put("tag", tag); apiData.put("pathToOperations", pathToOperations); + apiData.put("operations", operations); apiData.put("apiPackage", generator.apiPackage()); class OperationIdComparator implements Comparator{ diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 8040cf0b286..ebb4bb41b3b 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -54,6 +54,7 @@ import org.openapijsonschematools.codegen.generators.openapimodels.CodegenEncoding; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenHeader; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenKey; +import org.openapijsonschematools.codegen.generators.openapimodels.CodegenKeyType; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenMap; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenMediaType; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenOauthFlow; @@ -2951,7 +2952,7 @@ public CodegenOperation fromOperation(Operation operation, String jsonPath, Link } CodegenList security = fromSecurity(operation.getSecurity(), jsonPath + "/security"); ExternalDocumentation externalDocs = operation.getExternalDocs(); - CodegenKey jsonPathPiece = getKey(pathPieces[pathPieces.length-1], "verb"); + CodegenKey jsonPathPiece = getKey(pathPieces[pathPieces.length-1], "verb", jsonPath); CodegenList usedServers = (servers != null) ? servers : rootOrPathServers; CodegenList usedSecurity = (security != null) ? security : rootSecurity; List> builders = getOperationBuilders(jsonPath, requestBody, parametersInfo, usedServers, usedSecurity); @@ -3043,7 +3044,6 @@ public CodegenList fromSecurity(List pair: httpMethodOperationPairs) { Operation specOperation = pair.getRight(); String httpMethod = pair.getLeft(); + String operationJsonPath = jsonPath + "/" + httpMethod; if (specOperation != null) { - operations.put(getKey( - httpMethod, "verb"), - fromOperation(specOperation, jsonPath + "/" + httpMethod, pairToParameter, usedServers, rootSecurity) + operations.put( + getKey(httpMethod, "verb", operationJsonPath), + fromOperation(specOperation, operationJsonPath, pairToParameter, usedServers, rootSecurity) ); } } @@ -5272,7 +5288,6 @@ public CodegenList fromServers(List servers, String jsonP codegenServers, jsonPathPiece, serversSubpackage, - null, operationInputClass, operationInputVariableName, pathFromDocRoot diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java b/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java index 80940aae674..f812ff44622 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java @@ -36,6 +36,7 @@ import org.openapijsonschematools.codegen.generators.generatormetadata.GeneratorLanguage; import org.openapijsonschematools.codegen.generators.generatormetadata.GeneratorType; import org.openapijsonschematools.codegen.generators.models.VendorExtension; +import org.openapijsonschematools.codegen.generators.openapimodels.CodegenKeyType; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenRefInfo; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenSecurityRequirementObject; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenList; @@ -305,4 +306,6 @@ public interface Generator { boolean generateSeparateServerSchemas(); boolean shouldGenerateFile(String jsonPath, boolean isDoc); + + String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, String jsonPath); } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 76756cc7d3a..84ba4180ef7 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -41,6 +41,7 @@ import org.openapijsonschematools.codegen.generators.models.CliOption; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenHeader; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenKey; +import org.openapijsonschematools.codegen.generators.openapimodels.CodegenKeyType; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenList; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenParameter; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenParametersInfo; @@ -2614,7 +2615,22 @@ protected List> getOperationBuilders(String jsonPath, CodegenReque @Override public String toOperationFilename(String name, String jsonPath) { - return StringUtils.capitalize(name); + int lastSlash = jsonPath.lastIndexOf("/"); + String[] pathPieces = jsonPath.split("/"); + String pathJsonPath = jsonPath.substring(0, lastSlash); + String pathClassName = toPathFilename(ModelUtils.decodeSlashes(pathPieces[pathPieces.length-2]), pathJsonPath); + String operationFileName = pathClassName + StringUtils.capitalize(name); + return operationFileName; + } + + @Override + public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, String jsonPath) { + switch (type) { + case OPERATION: + return toOperationFilename(lastJsonPathFragment, jsonPath); + default: + return null; + } } protected List> getMapBuilders(CodegenSchema schema, String currentJsonPath, String sourceJsonPath) { diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java new file mode 100644 index 00000000000..ba144ad5492 --- /dev/null +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java @@ -0,0 +1,10 @@ +package org.openapijsonschematools.codegen.generators.openapimodels; + +public enum CodegenKeyType { + OPERATION, + SCHEMA, + PARAMETER, + RESPONSE, + SERVER, + SECURITY +} diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenList.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenList.java index c9ec28837f9..74ecc14182b 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenList.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenList.java @@ -10,16 +10,14 @@ public class CodegenList extends AbstractList implements OperationInputPr public final List items; public final CodegenKey jsonPathPiece; public final String subpackage; - public final List> builders; public final CodegenKey operationInputClassName; public final String operationInputVariableName; public final String pathFromDocRoot; - public CodegenList(List items, CodegenKey jsonPathPiece, String subpackage, List> builders, CodegenKey operationInputClassName, String operationInputVariableName, String pathFromDocRoot) { + public CodegenList(List items, CodegenKey jsonPathPiece, String subpackage, CodegenKey operationInputClassName, String operationInputVariableName, String pathFromDocRoot) { this.items = items; this.jsonPathPiece = jsonPathPiece; this.subpackage = subpackage; - this.builders = builders; this.operationInputClassName = operationInputClassName; this.operationInputVariableName = operationInputVariableName; this.pathFromDocRoot = pathFromDocRoot; diff --git a/src/main/resources/java/src/main/java/packagename/apis/tags/Api.hbs b/src/main/resources/java/src/main/java/packagename/apis/tags/Api.hbs index e26743b1674..e267977a943 100644 --- a/src/main/resources/java/src/main/java/packagename/apis/tags/Api.hbs +++ b/src/main/resources/java/src/main/java/packagename/apis/tags/Api.hbs @@ -3,17 +3,13 @@ package {{packageName}}.apis.tags; import {{packageName}}.apiclient.ApiClient; import {{packageName}}.configurations.ApiConfiguration; import {{packageName}}.configurations.SchemaConfiguration; -{{#each pathToOperations}} - {{#each this}} +{{#each operations}} import {{packageName}}.{{subpackage}}.{{jsonPathPiece.pascalCase}}; - {{/each}} {{/each}} public class {{tag.className}} extends ApiClient implements -{{#each pathToOperations}} - {{#each this}} +{{#each operations}} {{jsonPathPiece.pascalCase}}.{{operationId.pascalCase}}Operation{{#unless @last}},{{/unless}} - {{/each}} {{/each}} { public {{tag.className}}(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs index 6862003bc49..d350d8df4a6 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs @@ -200,6 +200,7 @@ public class {{jsonPathPiece.pascalCase}} { return {{jsonPathPiece.pascalCase}}Provider.{{jsonPathPiece.camelCase}}(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } + {{#neq jsonPathPiece.pascalCase operationId.pascalCase}} public interface {{operationId.pascalCase}}Operation { ApiConfiguration getApiConfiguration(); @@ -209,6 +210,7 @@ public class {{jsonPathPiece.pascalCase}} { return {{jsonPathPiece.pascalCase}}Provider.{{jsonPathPiece.camelCase}}(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } + {{/neq}} public static class {{jsonPathPiece.pascalCase}}1 extends ApiClient implements {{jsonPathPiece.pascalCase}}Operation { public {{jsonPathPiece.pascalCase}}1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { From c23303581e41ec1382ff0ca6b2b3e63738833ede Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 10 Apr 2024 10:59:27 -0700 Subject: [PATCH 06/21] Adds and uses CodegenKey method in operation to shorten java class names --- .../anotherfakedummy/AnotherfakedummyPatch.md | 24 ++++---- .../CommonparamsubdirDelete.md | 24 ++++---- .../commonparamsubdir/CommonparamsubdirGet.md | 24 ++++---- .../CommonparamsubdirPost.md | 24 ++++---- .../java/docs/paths/fake/FakeDelete.md | 24 ++++---- .../petstore/java/docs/paths/fake/FakeGet.md | 18 +++--- .../java/docs/paths/fake/FakePatch.md | 24 ++++---- .../petstore/java/docs/paths/fake/FakePost.md | 18 +++--- ...additionalpropertieswitharrayofenumsGet.md | 18 +++--- .../FakebodywithfileschemaPut.md | 24 ++++---- .../FakebodywithqueryparamsPut.md | 24 ++++---- .../FakecasesensitiveparamsPut.md | 24 ++++---- .../FakeclassnametestPatch.md | 24 ++++---- .../FakedeletecoffeeidDelete.md | 24 ++++---- .../docs/paths/fakehealth/FakehealthGet.md | 18 +++--- .../FakeinlineadditionalpropertiesPost.md | 24 ++++---- .../FakeinlinecompositionPost.md | 18 +++--- .../fakejsonformdata/FakejsonformdataGet.md | 18 +++--- .../paths/fakejsonpatch/FakejsonpatchPatch.md | 18 +++--- .../FakejsonwithcharsetPost.md | 18 +++--- ...FakemultiplerequestbodycontenttypesPost.md | 18 +++--- .../FakemultipleresponsebodiesGet.md | 18 +++--- .../FakemultiplesecuritiesGet.md | 18 +++--- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 18 +++--- .../Fakeparametercollisions1ababselfabPost.md | 24 ++++---- .../FakepemcontenttypeGet.md | 18 +++--- ...akepetiduploadimagewithrequiredfilePost.md | 24 ++++---- .../FakequeryparamwithjsoncontenttypeGet.md | 24 ++++---- .../fakeredirection/FakeredirectionGet.md | 18 +++--- .../fakerefobjinquery/FakerefobjinqueryGet.md | 18 +++--- .../FakerefsarraymodelPost.md | 18 +++--- .../FakerefsarrayofenumsPost.md | 18 +++--- .../fakerefsboolean/FakerefsbooleanPost.md | 18 +++--- ...scomposedoneofnumberwithvalidationsPost.md | 18 +++--- .../paths/fakerefsenum/FakerefsenumPost.md | 18 +++--- .../fakerefsmammal/FakerefsmammalPost.md | 24 ++++---- .../fakerefsnumber/FakerefsnumberPost.md | 18 +++--- .../FakerefsobjectmodelwithrefpropsPost.md | 18 +++--- .../fakerefsstring/FakerefsstringPost.md | 18 +++--- .../FakeresponsewithoutschemaGet.md | 18 +++--- .../FaketestqueryparamtersPut.md | 24 ++++---- .../FakeuploaddownloadfilePost.md | 24 ++++---- .../fakeuploadfile/FakeuploadfilePost.md | 18 +++--- .../fakeuploadfiles/FakeuploadfilesPost.md | 18 +++--- .../FakewildcardresponsesGet.md | 18 +++--- .../petstore/java/docs/paths/foo/FooGet.md | 18 +++--- .../petstore/java/docs/paths/pet/PetPost.md | 24 ++++---- .../petstore/java/docs/paths/pet/PetPut.md | 24 ++++---- .../petfindbystatus/PetfindbystatusGet.md | 24 ++++---- .../paths/petfindbytags/PetfindbytagsGet.md | 24 ++++---- .../docs/paths/petpetid/PetpetidDelete.md | 24 ++++---- .../java/docs/paths/petpetid/PetpetidGet.md | 24 ++++---- .../java/docs/paths/petpetid/PetpetidPost.md | 24 ++++---- .../PetpetiduploadimagePost.md | 24 ++++---- .../java/docs/paths/solidus/SolidusGet.md | 18 +++--- .../paths/storeinventory/StoreinventoryGet.md | 18 +++--- .../docs/paths/storeorder/StoreorderPost.md | 24 ++++---- .../StoreorderorderidDelete.md | 24 ++++---- .../storeorderorderid/StoreorderorderidGet.md | 24 ++++---- .../petstore/java/docs/paths/user/UserPost.md | 24 ++++---- .../UsercreatewitharrayPost.md | 24 ++++---- .../UsercreatewithlistPost.md | 24 ++++---- .../java/docs/paths/userlogin/UserloginGet.md | 24 ++++---- .../docs/paths/userlogout/UserlogoutGet.md | 18 +++--- .../paths/userusername/UserusernameDelete.md | 24 ++++---- .../paths/userusername/UserusernameGet.md | 24 ++++---- .../paths/userusername/UserusernamePut.md | 24 ++++---- .../client/apis/paths/Anotherfakedummy.java | 2 +- .../client/apis/paths/Commonparamsubdir.java | 6 +- .../client/apis/paths/Fake.java | 8 +-- ...eadditionalpropertieswitharrayofenums.java | 2 +- .../apis/paths/Fakebodywithfileschema.java | 2 +- .../apis/paths/Fakebodywithqueryparams.java | 2 +- .../apis/paths/Fakecasesensitiveparams.java | 2 +- .../client/apis/paths/Fakeclassnametest.java | 2 +- .../client/apis/paths/Fakedeletecoffeeid.java | 2 +- .../client/apis/paths/Fakehealth.java | 2 +- .../paths/Fakeinlineadditionalproperties.java | 2 +- .../apis/paths/Fakeinlinecomposition.java | 2 +- .../client/apis/paths/Fakejsonformdata.java | 2 +- .../client/apis/paths/Fakejsonpatch.java | 2 +- .../apis/paths/Fakejsonwithcharset.java | 2 +- .../Fakemultiplerequestbodycontenttypes.java | 2 +- .../paths/Fakemultipleresponsebodies.java | 2 +- .../apis/paths/Fakemultiplesecurities.java | 2 +- .../client/apis/paths/Fakeobjinquery.java | 2 +- .../Fakeparametercollisions1ababselfab.java | 2 +- .../client/apis/paths/Fakepemcontenttype.java | 2 +- .../Fakepetiduploadimagewithrequiredfile.java | 2 +- .../Fakequeryparamwithjsoncontenttype.java | 2 +- .../client/apis/paths/Fakeredirection.java | 2 +- .../client/apis/paths/Fakerefobjinquery.java | 2 +- .../client/apis/paths/Fakerefsarraymodel.java | 2 +- .../apis/paths/Fakerefsarrayofenums.java | 2 +- .../client/apis/paths/Fakerefsboolean.java | 2 +- ...efscomposedoneofnumberwithvalidations.java | 2 +- .../client/apis/paths/Fakerefsenum.java | 2 +- .../client/apis/paths/Fakerefsmammal.java | 2 +- .../client/apis/paths/Fakerefsnumber.java | 2 +- .../Fakerefsobjectmodelwithrefprops.java | 2 +- .../client/apis/paths/Fakerefsstring.java | 2 +- .../apis/paths/Fakeresponsewithoutschema.java | 2 +- .../apis/paths/Faketestqueryparamters.java | 2 +- .../apis/paths/Fakeuploaddownloadfile.java | 2 +- .../client/apis/paths/Fakeuploadfile.java | 2 +- .../client/apis/paths/Fakeuploadfiles.java | 2 +- .../apis/paths/Fakewildcardresponses.java | 2 +- .../client/apis/paths/Foo.java | 2 +- .../client/apis/paths/Pet.java | 4 +- .../client/apis/paths/Petfindbystatus.java | 2 +- .../client/apis/paths/Petfindbytags.java | 2 +- .../client/apis/paths/Petpetid.java | 6 +- .../apis/paths/Petpetiduploadimage.java | 2 +- .../client/apis/paths/Solidus.java | 2 +- .../client/apis/paths/Storeinventory.java | 2 +- .../client/apis/paths/Storeorder.java | 2 +- .../client/apis/paths/Storeorderorderid.java | 4 +- .../client/apis/paths/User.java | 2 +- .../apis/paths/Usercreatewitharray.java | 2 +- .../client/apis/paths/Usercreatewithlist.java | 2 +- .../client/apis/paths/Userlogin.java | 2 +- .../client/apis/paths/Userlogout.java | 2 +- .../client/apis/paths/Userusername.java | 6 +- .../AnotherfakedummyPatch.java | 20 +++---- .../CommonparamsubdirDelete.java | 20 +++---- .../CommonparamsubdirGet.java | 20 +++---- .../CommonparamsubdirPost.java | 20 +++---- .../client/paths/fake/FakeDelete.java | 20 +++---- .../client/paths/fake/FakeGet.java | 16 ++--- .../client/paths/fake/FakePatch.java | 20 +++---- .../client/paths/fake/FakePost.java | 16 ++--- ...ditionalpropertieswitharrayofenumsGet.java | 16 ++--- .../FakebodywithfileschemaPut.java | 20 +++---- .../FakebodywithqueryparamsPut.java | 20 +++---- .../FakecasesensitiveparamsPut.java | 20 +++---- .../FakeclassnametestPatch.java | 20 +++---- .../FakedeletecoffeeidDelete.java | 20 +++---- .../paths/fakehealth/FakehealthGet.java | 16 ++--- .../FakeinlineadditionalpropertiesPost.java | 20 +++---- .../FakeinlinecompositionPost.java | 16 ++--- .../fakejsonformdata/FakejsonformdataGet.java | 16 ++--- .../fakejsonpatch/FakejsonpatchPatch.java | 16 ++--- .../FakejsonwithcharsetPost.java | 16 ++--- ...kemultiplerequestbodycontenttypesPost.java | 16 ++--- .../FakemultipleresponsebodiesGet.java | 16 ++--- .../FakemultiplesecuritiesGet.java | 16 ++--- .../fakeobjinquery/FakeobjinqueryGet.java | 16 ++--- ...akeparametercollisions1ababselfabPost.java | 20 +++---- .../FakepemcontenttypeGet.java | 16 ++--- ...epetiduploadimagewithrequiredfilePost.java | 20 +++---- .../FakequeryparamwithjsoncontenttypeGet.java | 20 +++---- .../fakeredirection/FakeredirectionGet.java | 16 ++--- .../FakerefobjinqueryGet.java | 16 ++--- .../FakerefsarraymodelPost.java | 16 ++--- .../FakerefsarrayofenumsPost.java | 16 ++--- .../fakerefsboolean/FakerefsbooleanPost.java | 16 ++--- ...omposedoneofnumberwithvalidationsPost.java | 16 ++--- .../paths/fakerefsenum/FakerefsenumPost.java | 16 ++--- .../fakerefsmammal/FakerefsmammalPost.java | 20 +++---- .../fakerefsnumber/FakerefsnumberPost.java | 16 ++--- .../FakerefsobjectmodelwithrefpropsPost.java | 16 ++--- .../fakerefsstring/FakerefsstringPost.java | 16 ++--- .../FakeresponsewithoutschemaGet.java | 16 ++--- .../FaketestqueryparamtersPut.java | 20 +++---- .../FakeuploaddownloadfilePost.java | 20 +++---- .../fakeuploadfile/FakeuploadfilePost.java | 16 ++--- .../fakeuploadfiles/FakeuploadfilesPost.java | 16 ++--- .../FakewildcardresponsesGet.java | 16 ++--- .../client/paths/foo/FooGet.java | 21 +++++-- .../client/paths/pet/PetPost.java | 20 +++---- .../client/paths/pet/PetPut.java | 20 +++---- .../petfindbystatus/PetfindbystatusGet.java | 20 +++---- .../paths/petfindbytags/PetfindbytagsGet.java | 20 +++---- .../client/paths/petpetid/PetpetidDelete.java | 20 +++---- .../client/paths/petpetid/PetpetidGet.java | 20 +++---- .../client/paths/petpetid/PetpetidPost.java | 20 +++---- .../PetpetiduploadimagePost.java | 20 +++---- .../client/paths/solidus/SolidusGet.java | 16 ++--- .../storeinventory/StoreinventoryGet.java | 16 ++--- .../paths/storeorder/StoreorderPost.java | 20 +++---- .../StoreorderorderidDelete.java | 20 +++---- .../StoreorderorderidGet.java | 20 +++---- .../client/paths/user/UserPost.java | 20 +++---- .../UsercreatewitharrayPost.java | 20 +++---- .../UsercreatewithlistPost.java | 20 +++---- .../client/paths/userlogin/UserloginGet.java | 20 +++---- .../paths/userlogout/UserlogoutGet.java | 16 ++--- .../userusername/UserusernameDelete.java | 20 +++---- .../paths/userusername/UserusernameGet.java | 20 +++---- .../paths/userusername/UserusernamePut.java | 20 +++---- .../codegen/generators/DefaultGenerator.java | 60 ++++++++++--------- .../openapimodels/CodegenOperation.java | 3 + .../main/java/packagename/apis/paths/Api.hbs | 2 +- .../packagename/paths/path/verb/Operation.hbs | 26 ++++---- .../paths/path/verb/OperationDoc.hbs | 24 ++++---- .../path/verb/_OperationDocCodeSample.hbs | 6 +- 196 files changed, 1456 insertions(+), 1442 deletions(-) diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md index 669e037a241..e84054234fb 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [AnotherfakedummyPatch1](#anotherfakedummypatch1)
The class that has a patch method to call the endpoint | -| static class | [AnotherfakedummyPatchRequest](#anotherfakedummypatchrequest)
The final request inputs class | -| static class | [AnotherfakedummyPatchNullableRequest](#anotherfakedummypatchnullablerequest)
The initial request inputs class | +| static class | [Patch](#patch)
The class that has a patch 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 | -## AnotherfakedummyPatch1 -public static class AnotherfakedummyPatch1 extends ApiClient.ApiClient1 implements AnotherfakedummyPatchOperation
+### Patch +public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
a class that allows one to call the endpoint using a method named patch @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -AnotherfakedummyPatch.AnotherfakedummyPatch1 apiClient = new AnotherfakedummyPatch.AnotherfakedummyPatch1(apiConfiguration, schemaConfiguration); +AnotherfakedummyPatch.Patch apiClient = new AnotherfakedummyPatch.Patch(apiConfiguration, schemaConfiguration); Client1BoxedMap requestBodyPayload = @@ -80,7 +80,7 @@ Client1BoxedMap requestBodyPayload = ); RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PatchRequestBuilder() +var request = new AnotherfakedummyPatch.PatchRequestBuilder() .requestBody(requestBody) .build(); @@ -108,12 +108,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| AnotherfakedummyPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/anotherfakedummy/patch/Responses.md#endpointresponse) | patch([AnotherfakedummyPatchRequest](#anotherfakedummypatchrequest) request) | +| [Responses.EndpointResponse](../../paths/anotherfakedummy/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | ## AnotherfakedummyPatchRequest public static class AnotherfakedummyPatchRequest
@@ -127,8 +127,8 @@ a class that stores the final request inputs | [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 | -## AnotherfakedummyPatchNullableRequest -public static class AnotherfakedummyPatchNullableRequest
+## PatchNullableRequest +public static class PatchNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AnotherfakedummyPatchRequest](#anotherfakedummypatchrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index 90f06e44ad2..802ae2f75a7 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [CommonparamsubdirDelete1](#commonparamsubdirdelete1)
The class that has a delete method to call the endpoint | -| static class | [CommonparamsubdirDeleteRequest](#commonparamsubdirdeleterequest)
The final request inputs class | -| static class | [CommonparamsubdirDeleteNullableRequest](#commonparamsubdirdeletenullablerequest)
The initial request inputs class | +| static class | [Delete](#delete)
The class that has a delete 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 | -## CommonparamsubdirDelete1 -public static class CommonparamsubdirDelete1 extends ApiClient.ApiClient1 implements CommonparamsubdirDeleteOperation
+### Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -CommonparamsubdirDelete.CommonparamsubdirDelete1 apiClient = new CommonparamsubdirDelete.CommonparamsubdirDelete1(apiConfiguration, schemaConfiguration); +CommonparamsubdirDelete.Delete apiClient = new CommonparamsubdirDelete.Delete(apiConfiguration, schemaConfiguration); // Map validation @@ -80,7 +80,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new DeleteRequestBuilder() +var request = new CommonparamsubdirDelete.DeleteRequestBuilder() .pathParameters(pathParameters) .build(); @@ -106,12 +106,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/commonparamsubdir/delete/Responses.md#endpointresponse) | delete([CommonparamsubdirDeleteRequest](#commonparamsubdirdeleterequest) request) | +| [Responses.EndpointResponse](../../paths/commonparamsubdir/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | ## CommonparamsubdirDeleteRequest public static class CommonparamsubdirDeleteRequest
@@ -126,8 +126,8 @@ a class that stores the final request inputs | [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 | -## CommonparamsubdirDeleteNullableRequest -public static class CommonparamsubdirDeleteNullableRequest
+## DeleteNullableRequest +public static class DeleteNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeleteRequest](#commonparamsubdirdeleterequest) | build()
Returns the request input used to call an endpoint method | +| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | | [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/delete/HeaderParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index 47607104775..f07c2786d26 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [CommonparamsubdirGet1](#commonparamsubdirget1)
The class that has a get method to call the endpoint | -| static class | [CommonparamsubdirGetRequest](#commonparamsubdirgetrequest)
The final request inputs class | -| static class | [CommonparamsubdirGetNullableRequest](#commonparamsubdirgetnullablerequest)
The initial request inputs class | +| static class | [Get](#get)
The class that has a get 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 | -## CommonparamsubdirGet1 -public static class CommonparamsubdirGet1 extends ApiClient.ApiClient1 implements CommonparamsubdirGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -CommonparamsubdirGet.CommonparamsubdirGet1 apiClient = new CommonparamsubdirGet.CommonparamsubdirGet1(apiConfiguration, schemaConfiguration); +CommonparamsubdirGet.Get apiClient = new CommonparamsubdirGet.Get(apiConfiguration, schemaConfiguration); // Map validation @@ -80,7 +80,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new GetRequestBuilder() +var request = new CommonparamsubdirGet.GetRequestBuilder() .pathParameters(pathParameters) .build(); @@ -106,12 +106,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/commonparamsubdir/get/Responses.md#endpointresponse) | get([CommonparamsubdirGetRequest](#commonparamsubdirgetrequest) request) | +| [Responses.EndpointResponse](../../paths/commonparamsubdir/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## CommonparamsubdirGetRequest public static class CommonparamsubdirGetRequest
@@ -126,8 +126,8 @@ a class that stores the final request inputs | [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 | -## CommonparamsubdirGetNullableRequest -public static class CommonparamsubdirGetNullableRequest
+## GetNullableRequest +public static class GetNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetRequest](#commonparamsubdirgetrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [Get0RequestBuilder](#get0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/commonparamsubdir/get/QueryParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index f10f1315ef7..f81ef30d4ea 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [CommonparamsubdirPost1](#commonparamsubdirpost1)
The class that has a post method to call the endpoint | -| static class | [CommonparamsubdirPostRequest](#commonparamsubdirpostrequest)
The final request inputs class | -| static class | [CommonparamsubdirPostNullableRequest](#commonparamsubdirpostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## CommonparamsubdirPost1 -public static class CommonparamsubdirPost1 extends ApiClient.ApiClient1 implements CommonparamsubdirPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -CommonparamsubdirPost.CommonparamsubdirPost1 apiClient = new CommonparamsubdirPost.CommonparamsubdirPost1(apiConfiguration, schemaConfiguration); +CommonparamsubdirPost.Post apiClient = new CommonparamsubdirPost.Post(apiConfiguration, schemaConfiguration); // Map validation @@ -80,7 +80,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new PostRequestBuilder() +var request = new CommonparamsubdirPost.PostRequestBuilder() .pathParameters(pathParameters) .build(); @@ -106,12 +106,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/commonparamsubdir/post/Responses.md#endpointresponse) | post([CommonparamsubdirPostRequest](#commonparamsubdirpostrequest) request) | +| [Responses.EndpointResponse](../../paths/commonparamsubdir/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## CommonparamsubdirPostRequest public static class CommonparamsubdirPostRequest
@@ -126,8 +126,8 @@ a class that stores the final request inputs | [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 | -## CommonparamsubdirPostNullableRequest -public static class CommonparamsubdirPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostRequest](#commonparamsubdirpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/post/HeaderParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md index ac627bbf279..43a6bce06ef 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -11,16 +11,16 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeDelete1](#fakedelete1)
The class that has a delete method to call the endpoint | -| static class | [FakeDeleteRequest](#fakedeleterequest)
The final request inputs class | -| static class | [FakeDeleteNullableRequest](#fakedeletenullablerequest)
The initial request inputs class | +| static class | [Delete](#delete)
The class that has a delete 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 | -## FakeDelete1 -public static class FakeDelete1 extends ApiClient.ApiClient1 implements FakeDeleteOperation
+### Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -81,7 +81,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeDelete.FakeDelete1 apiClient = new FakeDelete.FakeDelete1(apiConfiguration, schemaConfiguration); +FakeDelete.Delete apiClient = new FakeDelete.Delete(apiConfiguration, schemaConfiguration); // Map validation @@ -112,7 +112,7 @@ QueryParameters.QueryParametersMap queryParameters = schemaConfiguration ); -var request = new DeleteRequestBuilder() +var request = new FakeDelete.DeleteRequestBuilder() .headerParameters(headerParameters) .queryParameters(queryParameters) .build(); @@ -139,12 +139,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/delete/Responses.md#endpointresponse) | delete([FakeDeleteRequest](#fakedeleterequest) request) | +| [Responses.EndpointResponse](../../paths/fake/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | ## FakeDeleteRequest public static class FakeDeleteRequest
@@ -160,8 +160,8 @@ a class that stores the final request inputs | [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 | -## FakeDeleteNullableRequest -public static class FakeDeleteNullableRequest
+## DeleteNullableRequest +public static class DeleteNullableRequest
a class that stores the initial request inputs @@ -187,7 +187,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteRequest](#fakedeleterequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index eea11326b88..fa9c34ff802 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeGet1](#fakeget1)
The class that has a get method to call the endpoint | -| static class | [FakeGetRequest](#fakegetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakeGet1 -public static class FakeGet1 extends ApiClient.ApiClient1 implements FakeGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -68,10 +68,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeGet.FakeGet1 apiClient = new FakeGet.FakeGet1(apiConfiguration, schemaConfiguration); +FakeGet.Get apiClient = new FakeGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakeGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -98,12 +98,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/get/Responses.md#endpointresponse) | get([FakeGetRequest](#fakegetrequest) request) | +| [Responses.EndpointResponse](../../paths/fake/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakeGetRequest public static class FakeGetRequest
@@ -132,7 +132,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeGetRequest](#fakegetrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fake/get/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/fake/get/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fake/get/QueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md index c24768087eb..66437cfc509 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePatch.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakePatch1](#fakepatch1)
The class that has a patch method to call the endpoint | -| static class | [FakePatchRequest](#fakepatchrequest)
The final request inputs class | -| static class | [FakePatchNullableRequest](#fakepatchnullablerequest)
The initial request inputs class | +| static class | [Patch](#patch)
The class that has a patch 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 | -## FakePatch1 -public static class FakePatch1 extends ApiClient.ApiClient1 implements FakePatchOperation
+### Patch +public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
a class that allows one to call the endpoint using a method named patch @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakePatch.FakePatch1 apiClient = new FakePatch.FakePatch1(apiConfiguration, schemaConfiguration); +FakePatch.Patch apiClient = new FakePatch.Patch(apiConfiguration, schemaConfiguration); Client1BoxedMap requestBodyPayload = @@ -80,7 +80,7 @@ Client1BoxedMap requestBodyPayload = ); RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PatchRequestBuilder() +var request = new FakePatch.PatchRequestBuilder() .requestBody(requestBody) .build(); @@ -108,12 +108,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakePatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/patch/Responses.md#endpointresponse) | patch([FakePatchRequest](#fakepatchrequest) request) | +| [Responses.EndpointResponse](../../paths/fake/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | ## FakePatchRequest public static class FakePatchRequest
@@ -127,8 +127,8 @@ a class that stores the final request inputs | [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 | -## FakePatchNullableRequest -public static class FakePatchNullableRequest
+## PatchNullableRequest +public static class PatchNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakePatchRequest](#fakepatchrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fake/FakePost.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md index f1b4b42e9ce..0d00bbe2fb4 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePost.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakePost1](#fakepost1)
The class that has a post method to call the endpoint | -| static class | [FakePostRequest](#fakepostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakePost1 -public static class FakePost1 extends ApiClient.ApiClient1 implements FakePostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -78,10 +78,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakePost.FakePost1 apiClient = new FakePost.FakePost1(apiConfiguration, schemaConfiguration); +FakePost.Post apiClient = new FakePost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakePost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -108,12 +108,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/post/Responses.md#endpointresponse) | post([FakePostRequest](#fakepostrequest) request) | +| [Responses.EndpointResponse](../../paths/fake/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakePostRequest public static class FakePostRequest
@@ -141,7 +141,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakePostRequest](#fakepostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fake/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md index b3d249a16c6..02bedeeb02f 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeadditionalpropertieswitharrayofenumsGet1](#fakeadditionalpropertieswitharrayofenumsget1)
The class that has a get method to call the endpoint | -| static class | [FakeadditionalpropertieswitharrayofenumsGetRequest](#fakeadditionalpropertieswitharrayofenumsgetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakeadditionalpropertieswitharrayofenumsGet1 -public static class FakeadditionalpropertieswitharrayofenumsGet1 extends ApiClient.ApiClient1 implements FakeadditionalpropertieswitharrayofenumsGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeadditionalpropertieswitharrayofenumsGet.FakeadditionalpropertieswitharrayofenumsGet1 apiClient = new FakeadditionalpropertieswitharrayofenumsGet.FakeadditionalpropertieswitharrayofenumsGet1(apiConfiguration, schemaConfiguration); +FakeadditionalpropertieswitharrayofenumsGet.Get apiClient = new FakeadditionalpropertieswitharrayofenumsGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakeadditionalpropertieswitharrayofenumsGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeadditionalpropertieswitharrayofenumsGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md#endpointresponse) | get([FakeadditionalpropertieswitharrayofenumsGetRequest](#fakeadditionalpropertieswitharrayofenumsgetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakeadditionalpropertieswitharrayofenumsGetRequest public static class FakeadditionalpropertieswitharrayofenumsGetRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeadditionalpropertieswitharrayofenumsGetRequest](#fakeadditionalpropertieswitharrayofenumsgetrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md index aefd6c14d7d..58383b2eb29 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakebodywithfileschemaPut1](#fakebodywithfileschemaput1)
The class that has a put method to call the endpoint | -| static class | [FakebodywithfileschemaPutRequest](#fakebodywithfileschemaputrequest)
The final request inputs class | -| static class | [FakebodywithfileschemaPutNullableRequest](#fakebodywithfileschemaputnullablerequest)
The initial request inputs class | +| static class | [Put](#put)
The class that has a put 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 | -## FakebodywithfileschemaPut1 -public static class FakebodywithfileschemaPut1 extends ApiClient.ApiClient1 implements FakebodywithfileschemaPutOperation
+### Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakebodywithfileschemaPut.FakebodywithfileschemaPut1 apiClient = new FakebodywithfileschemaPut.FakebodywithfileschemaPut1(apiConfiguration, schemaConfiguration); +FakebodywithfileschemaPut.Put apiClient = new FakebodywithfileschemaPut.Put(apiConfiguration, schemaConfiguration); FileSchemaTestClass1BoxedMap requestBodyPayload = @@ -82,7 +82,7 @@ FileSchemaTestClass1BoxedMap requestBodyPayload = ); FakebodywithfileschemaPut.SealedRequestBody requestBody = new FakebodywithfileschemaPut.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PutRequestBuilder() +var request = new FakebodywithfileschemaPut.PutRequestBuilder() .requestBody(requestBody) .build(); @@ -108,12 +108,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithfileschemaPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakebodywithfileschema/put/Responses.md#endpointresponse) | put([FakebodywithfileschemaPutRequest](#fakebodywithfileschemaputrequest) request) | +| [Responses.EndpointResponse](../../paths/fakebodywithfileschema/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | ## FakebodywithfileschemaPutRequest public static class FakebodywithfileschemaPutRequest
@@ -127,8 +127,8 @@ a class that stores the final request inputs | [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 | -## FakebodywithfileschemaPutNullableRequest -public static class FakebodywithfileschemaPutNullableRequest
+## PutNullableRequest +public static class PutNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithfileschemaPutRequest](#fakebodywithfileschemaputrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index 75f248b4321..1cb4d8ac367 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -11,16 +11,16 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakebodywithqueryparamsPut1](#fakebodywithqueryparamsput1)
The class that has a put method to call the endpoint | -| static class | [FakebodywithqueryparamsPutRequest](#fakebodywithqueryparamsputrequest)
The final request inputs class | -| static class | [FakebodywithqueryparamsPutNullableRequest](#fakebodywithqueryparamsputnullablerequest)
The initial request inputs class | +| static class | [Put](#put)
The class that has a put 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 | -## FakebodywithqueryparamsPut1 -public static class FakebodywithqueryparamsPut1 extends ApiClient.ApiClient1 implements FakebodywithqueryparamsPutOperation
+### Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -70,7 +70,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakebodywithqueryparamsPut.FakebodywithqueryparamsPut1 apiClient = new FakebodywithqueryparamsPut.FakebodywithqueryparamsPut1(apiConfiguration, schemaConfiguration); +FakebodywithqueryparamsPut.Put apiClient = new FakebodywithqueryparamsPut.Put(apiConfiguration, schemaConfiguration); User1BoxedMap requestBodyPayload = @@ -109,7 +109,7 @@ QueryParameters.QueryParametersMap queryParameters = schemaConfiguration ); -var request = new PutRequestBuilder() +var request = new FakebodywithqueryparamsPut.PutRequestBuilder() .requestBody(requestBody) .queryParameters(queryParameters) .build(); @@ -136,12 +136,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakebodywithqueryparams/put/Responses.md#endpointresponse) | put([FakebodywithqueryparamsPutRequest](#fakebodywithqueryparamsputrequest) request) | +| [Responses.EndpointResponse](../../paths/fakebodywithqueryparams/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | ## FakebodywithqueryparamsPutRequest public static class FakebodywithqueryparamsPutRequest
@@ -156,8 +156,8 @@ a class that stores the final request inputs | [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 | -## FakebodywithqueryparamsPutNullableRequest -public static class FakebodywithqueryparamsPutNullableRequest
+## PutNullableRequest +public static class PutNullableRequest
a class that stores the initial request inputs @@ -182,7 +182,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutRequest](#fakebodywithqueryparamsputrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index a10d7d1b215..bb64c0e4d96 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakecasesensitiveparamsPut1](#fakecasesensitiveparamsput1)
The class that has a put method to call the endpoint | -| static class | [FakecasesensitiveparamsPutRequest](#fakecasesensitiveparamsputrequest)
The final request inputs class | -| static class | [FakecasesensitiveparamsPutNullableRequest](#fakecasesensitiveparamsputnullablerequest)
The initial request inputs class | +| static class | [Put](#put)
The class that has a put 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 | -## FakecasesensitiveparamsPut1 -public static class FakecasesensitiveparamsPut1 extends ApiClient.ApiClient1 implements FakecasesensitiveparamsPutOperation
+### Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -66,7 +66,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakecasesensitiveparamsPut.FakecasesensitiveparamsPut1 apiClient = new FakecasesensitiveparamsPut.FakecasesensitiveparamsPut1(apiConfiguration, schemaConfiguration); +FakecasesensitiveparamsPut.Put apiClient = new FakecasesensitiveparamsPut.Put(apiConfiguration, schemaConfiguration); // Map validation @@ -83,7 +83,7 @@ QueryParameters.QueryParametersMap queryParameters = schemaConfiguration ); -var request = new PutRequestBuilder() +var request = new FakecasesensitiveparamsPut.PutRequestBuilder() .queryParameters(queryParameters) .build(); @@ -109,12 +109,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakecasesensitiveparams/put/Responses.md#endpointresponse) | put([FakecasesensitiveparamsPutRequest](#fakecasesensitiveparamsputrequest) request) | +| [Responses.EndpointResponse](../../paths/fakecasesensitiveparams/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | ## FakecasesensitiveparamsPutRequest public static class FakecasesensitiveparamsPutRequest
@@ -128,8 +128,8 @@ a class that stores the final request inputs | [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 | -## FakecasesensitiveparamsPutNullableRequest -public static class FakecasesensitiveparamsPutNullableRequest
+## PutNullableRequest +public static class PutNullableRequest
a class that stores the initial request inputs @@ -153,7 +153,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutRequest](#fakecasesensitiveparamsputrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md index 52f0272713e..d06c82b580f 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeclassnametestPatch1](#fakeclassnametestpatch1)
The class that has a patch method to call the endpoint | -| static class | [FakeclassnametestPatchRequest](#fakeclassnametestpatchrequest)
The final request inputs class | -| static class | [FakeclassnametestPatchNullableRequest](#fakeclassnametestpatchnullablerequest)
The initial request inputs class | +| static class | [Patch](#patch)
The class that has a patch 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 | -## FakeclassnametestPatch1 -public static class FakeclassnametestPatch1 extends ApiClient.ApiClient1 implements FakeclassnametestPatchOperation
+### Patch +public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
a class that allows one to call the endpoint using a method named patch @@ -79,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeclassnametestPatch.FakeclassnametestPatch1 apiClient = new FakeclassnametestPatch.FakeclassnametestPatch1(apiConfiguration, schemaConfiguration); +FakeclassnametestPatch.Patch apiClient = new FakeclassnametestPatch.Patch(apiConfiguration, schemaConfiguration); Client1BoxedMap requestBodyPayload = @@ -92,7 +92,7 @@ Client1BoxedMap requestBodyPayload = ); RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PatchRequestBuilder() +var request = new FakeclassnametestPatch.PatchRequestBuilder() .requestBody(requestBody) .build(); @@ -120,12 +120,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeclassnametestPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeclassnametest/patch/Responses.md#endpointresponse) | patch([FakeclassnametestPatchRequest](#fakeclassnametestpatchrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeclassnametest/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | ## FakeclassnametestPatchRequest public static class FakeclassnametestPatchRequest
@@ -140,8 +140,8 @@ a class that stores the final request inputs | [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 | -## FakeclassnametestPatchNullableRequest -public static class FakeclassnametestPatchNullableRequest
+## PatchNullableRequest +public static class PatchNullableRequest
a class that stores the initial request inputs @@ -166,7 +166,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeclassnametestPatchRequest](#fakeclassnametestpatchrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index ae2e2507d6e..5a04fb158c5 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakedeletecoffeeidDelete1](#fakedeletecoffeeiddelete1)
The class that has a delete method to call the endpoint | -| static class | [FakedeletecoffeeidDeleteRequest](#fakedeletecoffeeiddeleterequest)
The final request inputs class | -| static class | [FakedeletecoffeeidDeleteNullableRequest](#fakedeletecoffeeiddeletenullablerequest)
The initial request inputs class | +| static class | [Delete](#delete)
The class that has a delete 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 | -## FakedeletecoffeeidDelete1 -public static class FakedeletecoffeeidDelete1 extends ApiClient.ApiClient1 implements FakedeletecoffeeidDeleteOperation
+### Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakedeletecoffeeidDelete.FakedeletecoffeeidDelete1 apiClient = new FakedeletecoffeeidDelete.FakedeletecoffeeidDelete1(apiConfiguration, schemaConfiguration); +FakedeletecoffeeidDelete.Delete apiClient = new FakedeletecoffeeidDelete.Delete(apiConfiguration, schemaConfiguration); // Map validation @@ -80,7 +80,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new DeleteRequestBuilder() +var request = new FakedeletecoffeeidDelete.DeleteRequestBuilder() .pathParameters(pathParameters) .build(); @@ -109,12 +109,12 @@ if (response instanceof Responses.EndpointCode200Response castResponse) { ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/Responses.md#endpointresponse) | delete([FakedeletecoffeeidDeleteRequest](#fakedeletecoffeeiddeleterequest) request) | +| [Responses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | ## FakedeletecoffeeidDeleteRequest public static class FakedeletecoffeeidDeleteRequest
@@ -128,8 +128,8 @@ a class that stores the final request inputs | [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 | -## FakedeletecoffeeidDeleteNullableRequest -public static class FakedeletecoffeeidDeleteNullableRequest
+## DeleteNullableRequest +public static class DeleteNullableRequest
a class that stores the initial request inputs @@ -153,7 +153,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakedeletecoffeeidDeleteRequest](#fakedeletecoffeeiddeleterequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md index 495d5e35f2b..2451184c39c 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakehealthGet1](#fakehealthget1)
The class that has a get method to call the endpoint | -| static class | [FakehealthGetRequest](#fakehealthgetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakehealthGet1 -public static class FakehealthGet1 extends ApiClient.ApiClient1 implements FakehealthGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -63,10 +63,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakehealthGet.FakehealthGet1 apiClient = new FakehealthGet.FakehealthGet1(apiConfiguration, schemaConfiguration); +FakehealthGet.Get apiClient = new FakehealthGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakehealthGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -92,12 +92,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakehealthGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakehealth/get/Responses.md#endpointresponse) | get([FakehealthGetRequest](#fakehealthgetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakehealth/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakehealthGetRequest public static class FakehealthGetRequest
@@ -123,7 +123,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakehealthGetRequest](#fakehealthgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md index 1ca73fb81c2..afc9cd4b960 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeinlineadditionalpropertiesPost1](#fakeinlineadditionalpropertiespost1)
The class that has a post method to call the endpoint | -| static class | [FakeinlineadditionalpropertiesPostRequest](#fakeinlineadditionalpropertiespostrequest)
The final request inputs class | -| static class | [FakeinlineadditionalpropertiesPostNullableRequest](#fakeinlineadditionalpropertiespostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## FakeinlineadditionalpropertiesPost1 -public static class FakeinlineadditionalpropertiesPost1 extends ApiClient.ApiClient1 implements FakeinlineadditionalpropertiesPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeinlineadditionalpropertiesPost.FakeinlineadditionalpropertiesPost1 apiClient = new FakeinlineadditionalpropertiesPost.FakeinlineadditionalpropertiesPost1(apiConfiguration, schemaConfiguration); +FakeinlineadditionalpropertiesPost.Post apiClient = new FakeinlineadditionalpropertiesPost.Post(apiConfiguration, schemaConfiguration); ApplicationjsonSchema1BoxedMap requestBodyPayload = @@ -80,7 +80,7 @@ ApplicationjsonSchema1BoxedMap requestBodyPayload = ); FakeinlineadditionalpropertiesPost.SealedRequestBody requestBody = new FakeinlineadditionalpropertiesPost.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PostRequestBuilder() +var request = new FakeinlineadditionalpropertiesPost.PostRequestBuilder() .requestBody(requestBody) .build(); @@ -106,12 +106,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlineadditionalpropertiesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/Responses.md#endpointresponse) | post([FakeinlineadditionalpropertiesPostRequest](#fakeinlineadditionalpropertiespostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakeinlineadditionalpropertiesPostRequest public static class FakeinlineadditionalpropertiesPostRequest
@@ -125,8 +125,8 @@ a class that stores the final request inputs | [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 | -## FakeinlineadditionalpropertiesPostNullableRequest -public static class FakeinlineadditionalpropertiesPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -150,7 +150,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeinlineadditionalpropertiesPostRequest](#fakeinlineadditionalpropertiespostrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index dbe77cb9dd0..9cf4c9f6c8d 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeinlinecompositionPost1](#fakeinlinecompositionpost1)
The class that has a post method to call the endpoint | -| static class | [FakeinlinecompositionPostRequest](#fakeinlinecompositionpostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakeinlinecompositionPost1 -public static class FakeinlinecompositionPost1 extends ApiClient.ApiClient1 implements FakeinlinecompositionPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -66,10 +66,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeinlinecompositionPost.FakeinlinecompositionPost1 apiClient = new FakeinlinecompositionPost.FakeinlinecompositionPost1(apiConfiguration, schemaConfiguration); +FakeinlinecompositionPost.Post apiClient = new FakeinlinecompositionPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakeinlinecompositionPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -99,12 +99,12 @@ if (castResponse.body instanceof Code200Response.ApplicationjsonResponseBody des ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeinlinecomposition/post/Responses.md#endpointresponse) | post([FakeinlinecompositionPostRequest](#fakeinlinecompositionpostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeinlinecomposition/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakeinlinecompositionPostRequest public static class FakeinlinecompositionPostRequest
@@ -132,7 +132,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeinlinecompositionPostRequest](#fakeinlinecompositionpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeinlinecomposition/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [PostRequestBuilder](#postrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakeinlinecomposition/post/QueryParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md index e10080449eb..3598b0bca5b 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakejsonformdataGet1](#fakejsonformdataget1)
The class that has a get method to call the endpoint | -| static class | [FakejsonformdataGetRequest](#fakejsonformdatagetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakejsonformdataGet1 -public static class FakejsonformdataGet1 extends ApiClient.ApiClient1 implements FakejsonformdataGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakejsonformdataGet.FakejsonformdataGet1 apiClient = new FakejsonformdataGet.FakejsonformdataGet1(apiConfiguration, schemaConfiguration); +FakejsonformdataGet.Get apiClient = new FakejsonformdataGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakejsonformdataGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -92,12 +92,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakejsonformdataGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakejsonformdata/get/Responses.md#endpointresponse) | get([FakejsonformdataGetRequest](#fakejsonformdatagetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakejsonformdata/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakejsonformdataGetRequest public static class FakejsonformdataGetRequest
@@ -124,7 +124,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakejsonformdataGetRequest](#fakejsonformdatagetrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakejsonformdata/get/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md index 5bd33a25b19..05d71832261 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakejsonpatchPatch1](#fakejsonpatchpatch1)
The class that has a patch method to call the endpoint | -| static class | [FakejsonpatchPatchRequest](#fakejsonpatchpatchrequest)
The request inputs class | +| static class | [Patch](#patch)
The class that has a patch method to call the endpoint | +| static class | [PatchRequest](#patchrequest)
The request inputs class | | static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | -## FakejsonpatchPatch1 -public static class FakejsonpatchPatch1 extends ApiClient.ApiClient1 implements FakejsonpatchPatchOperation
+### Patch +public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
a class that allows one to call the endpoint using a method named patch @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakejsonpatchPatch.FakejsonpatchPatch1 apiClient = new FakejsonpatchPatch.FakejsonpatchPatch1(apiConfiguration, schemaConfiguration); +FakejsonpatchPatch.Patch apiClient = new FakejsonpatchPatch.Patch(apiConfiguration, schemaConfiguration); -var request = new PatchRequestBuilder().build(); +var request = new FakejsonpatchPatch.PatchRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -92,12 +92,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakejsonpatchPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakejsonpatch/patch/Responses.md#endpointresponse) | patch([FakejsonpatchPatchRequest](#fakejsonpatchpatchrequest) request) | +| [Responses.EndpointResponse](../../paths/fakejsonpatch/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | ## FakejsonpatchPatchRequest public static class FakejsonpatchPatchRequest
@@ -124,7 +124,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakejsonpatchPatchRequest](#fakejsonpatchpatchrequest) | build()
Returns the request input used to call an endpoint method | +| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | | [PatchRequestBuilder](#patchrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakejsonpatch/patch/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md index babb877ee26..c60720d53ef 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakejsonwithcharsetPost1](#fakejsonwithcharsetpost1)
The class that has a post method to call the endpoint | -| static class | [FakejsonwithcharsetPostRequest](#fakejsonwithcharsetpostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakejsonwithcharsetPost1 -public static class FakejsonwithcharsetPost1 extends ApiClient.ApiClient1 implements FakejsonwithcharsetPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakejsonwithcharsetPost.FakejsonwithcharsetPost1 apiClient = new FakejsonwithcharsetPost.FakejsonwithcharsetPost1(apiConfiguration, schemaConfiguration); +FakejsonwithcharsetPost.Post apiClient = new FakejsonwithcharsetPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakejsonwithcharsetPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (Code2 ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakejsonwithcharsetPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakejsonwithcharset/post/Responses.md#endpointresponse) | post([FakejsonwithcharsetPostRequest](#fakejsonwithcharsetpostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakejsonwithcharset/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakejsonwithcharsetPostRequest public static class FakejsonwithcharsetPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakejsonwithcharsetPostRequest](#fakejsonwithcharsetpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakejsonwithcharset/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md index 18e6c298fac..3184d010bc9 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakemultiplerequestbodycontenttypesPost1](#fakemultiplerequestbodycontenttypespost1)
The class that has a post method to call the endpoint | -| static class | [FakemultiplerequestbodycontenttypesPostRequest](#fakemultiplerequestbodycontenttypespostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakemultiplerequestbodycontenttypesPost1 -public static class FakemultiplerequestbodycontenttypesPost1 extends ApiClient.ApiClient1 implements FakemultiplerequestbodycontenttypesPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakemultiplerequestbodycontenttypesPost.FakemultiplerequestbodycontenttypesPost1 apiClient = new FakemultiplerequestbodycontenttypesPost.FakemultiplerequestbodycontenttypesPost1(apiConfiguration, schemaConfiguration); +FakemultiplerequestbodycontenttypesPost.Post apiClient = new FakemultiplerequestbodycontenttypesPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakemultiplerequestbodycontenttypesPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakemultiplerequestbodycontenttypesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/Responses.md#endpointresponse) | post([FakemultiplerequestbodycontenttypesPostRequest](#fakemultiplerequestbodycontenttypespostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakemultiplerequestbodycontenttypesPostRequest public static class FakemultiplerequestbodycontenttypesPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakemultiplerequestbodycontenttypesPostRequest](#fakemultiplerequestbodycontenttypespostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md index 1674966f5d5..0600bc21664 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakemultipleresponsebodiesGet1](#fakemultipleresponsebodiesget1)
The class that has a get method to call the endpoint | -| static class | [FakemultipleresponsebodiesGetRequest](#fakemultipleresponsebodiesgetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakemultipleresponsebodiesGet1 -public static class FakemultipleresponsebodiesGet1 extends ApiClient.ApiClient1 implements FakemultipleresponsebodiesGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -64,10 +64,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakemultipleresponsebodiesGet.FakemultipleresponsebodiesGet1 apiClient = new FakemultipleresponsebodiesGet.FakemultipleresponsebodiesGet1(apiConfiguration, schemaConfiguration); +FakemultipleresponsebodiesGet.Get apiClient = new FakemultipleresponsebodiesGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakemultipleresponsebodiesGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -98,12 +98,12 @@ Code202Response.ApplicationjsonResponseBody deserializedBody = (Code202Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakemultipleresponsebodiesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/Responses.md#endpointresponse) | get([FakemultipleresponsebodiesGetRequest](#fakemultipleresponsebodiesgetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakemultipleresponsebodiesGetRequest public static class FakemultipleresponsebodiesGetRequest
@@ -129,7 +129,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakemultipleresponsebodiesGetRequest](#fakemultipleresponsebodiesgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md index 7bb50421871..af1e01dc829 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakemultiplesecuritiesGet1](#fakemultiplesecuritiesget1)
The class that has a get method to call the endpoint | -| static class | [FakemultiplesecuritiesGetRequest](#fakemultiplesecuritiesgetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakemultiplesecuritiesGet1 -public static class FakemultiplesecuritiesGet1 extends ApiClient.ApiClient1 implements FakemultiplesecuritiesGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -80,10 +80,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakemultiplesecuritiesGet.FakemultiplesecuritiesGet1 apiClient = new FakemultiplesecuritiesGet.FakemultiplesecuritiesGet1(apiConfiguration, schemaConfiguration); +FakemultiplesecuritiesGet.Get apiClient = new FakemultiplesecuritiesGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakemultiplesecuritiesGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -109,12 +109,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakemultiplesecuritiesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakemultiplesecurities/get/Responses.md#endpointresponse) | get([FakemultiplesecuritiesGetRequest](#fakemultiplesecuritiesgetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakemultiplesecurities/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakemultiplesecuritiesGetRequest public static class FakemultiplesecuritiesGetRequest
@@ -141,7 +141,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakemultiplesecuritiesGetRequest](#fakemultiplesecuritiesgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index 56ae38f5fb3..0db31cddf6b 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeobjinqueryGet1](#fakeobjinqueryget1)
The class that has a get method to call the endpoint | -| static class | [FakeobjinqueryGetRequest](#fakeobjinquerygetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakeobjinqueryGet1 -public static class FakeobjinqueryGet1 extends ApiClient.ApiClient1 implements FakeobjinqueryGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -64,10 +64,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeobjinqueryGet.FakeobjinqueryGet1 apiClient = new FakeobjinqueryGet.FakeobjinqueryGet1(apiConfiguration, schemaConfiguration); +FakeobjinqueryGet.Get apiClient = new FakeobjinqueryGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakeobjinqueryGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -91,12 +91,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeobjinquery/get/Responses.md#endpointresponse) | get([FakeobjinqueryGetRequest](#fakeobjinquerygetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeobjinquery/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakeobjinqueryGetRequest public static class FakeobjinqueryGetRequest
@@ -123,7 +123,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeobjinqueryGetRequest](#fakeobjinquerygetrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakeobjinquery/get/QueryParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index 56a9c8084bb..5fd7d2abb17 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Fakeparametercollisions1ababselfabPost1](#fakeparametercollisions1ababselfabpost1)
The class that has a post method to call the endpoint | -| static class | [Fakeparametercollisions1ababselfabPostRequest](#fakeparametercollisions1ababselfabpostrequest)
The final request inputs class | -| static class | [Fakeparametercollisions1ababselfabPostNullableRequest](#fakeparametercollisions1ababselfabpostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## Fakeparametercollisions1ababselfabPost1 -public static class Fakeparametercollisions1ababselfabPost1 extends ApiClient.ApiClient1 implements Fakeparametercollisions1ababselfabPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -70,7 +70,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Fakeparametercollisions1ababselfabPost.Fakeparametercollisions1ababselfabPost1 apiClient = new Fakeparametercollisions1ababselfabPost.Fakeparametercollisions1ababselfabPost1(apiConfiguration, schemaConfiguration); +Fakeparametercollisions1ababselfabPost.Post apiClient = new Fakeparametercollisions1ababselfabPost.Post(apiConfiguration, schemaConfiguration); // Map validation @@ -91,7 +91,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new PostRequestBuilder() +var request = new Fakeparametercollisions1ababselfabPost.PostRequestBuilder() .pathParameters(pathParameters) .build(); @@ -119,12 +119,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Responses.md#endpointresponse) | post([Fakeparametercollisions1ababselfabPostRequest](#fakeparametercollisions1ababselfabpostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## Fakeparametercollisions1ababselfabPostRequest public static class Fakeparametercollisions1ababselfabPostRequest
@@ -142,8 +142,8 @@ a class that stores the final request inputs | [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 | -## Fakeparametercollisions1ababselfabPostNullableRequest -public static class Fakeparametercollisions1ababselfabPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -171,7 +171,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostRequest](#fakeparametercollisions1ababselfabpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/QueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md index f365298ff4b..36f097b45ca 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakepemcontenttypeGet1](#fakepemcontenttypeget1)
The class that has a get method to call the endpoint | -| static class | [FakepemcontenttypeGetRequest](#fakepemcontenttypegetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakepemcontenttypeGet1 -public static class FakepemcontenttypeGet1 extends ApiClient.ApiClient1 implements FakepemcontenttypeGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakepemcontenttypeGet.FakepemcontenttypeGet1 apiClient = new FakepemcontenttypeGet.FakepemcontenttypeGet1(apiConfiguration, schemaConfiguration); +FakepemcontenttypeGet.Get apiClient = new FakepemcontenttypeGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakepemcontenttypeGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationxpemfileResponseBody deserializedBody = (Code200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepemcontenttypeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakepemcontenttype/get/Responses.md#endpointresponse) | get([FakepemcontenttypeGetRequest](#fakepemcontenttypegetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakepemcontenttype/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakepemcontenttypeGetRequest public static class FakepemcontenttypeGetRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepemcontenttypeGetRequest](#fakepemcontenttypegetrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakepemcontenttype/get/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index f6932d2bbef..03bfaea922f 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakepetiduploadimagewithrequiredfilePost1](#fakepetiduploadimagewithrequiredfilepost1)
The class that has a post method to call the endpoint | -| static class | [FakepetiduploadimagewithrequiredfilePostRequest](#fakepetiduploadimagewithrequiredfilepostrequest)
The final request inputs class | -| static class | [FakepetiduploadimagewithrequiredfilePostNullableRequest](#fakepetiduploadimagewithrequiredfilepostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## FakepetiduploadimagewithrequiredfilePost1 -public static class FakepetiduploadimagewithrequiredfilePost1 extends ApiClient.ApiClient1 implements FakepetiduploadimagewithrequiredfilePostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -76,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakepetiduploadimagewithrequiredfilePost.FakepetiduploadimagewithrequiredfilePost1 apiClient = new FakepetiduploadimagewithrequiredfilePost.FakepetiduploadimagewithrequiredfilePost1(apiConfiguration, schemaConfiguration); +FakepetiduploadimagewithrequiredfilePost.Post apiClient = new FakepetiduploadimagewithrequiredfilePost.Post(apiConfiguration, schemaConfiguration); // Map validation @@ -89,7 +89,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new PostRequestBuilder() +var request = new FakepetiduploadimagewithrequiredfilePost.PostRequestBuilder() .pathParameters(pathParameters) .build(); @@ -117,12 +117,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/Responses.md#endpointresponse) | post([FakepetiduploadimagewithrequiredfilePostRequest](#fakepetiduploadimagewithrequiredfilepostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakepetiduploadimagewithrequiredfilePostRequest public static class FakepetiduploadimagewithrequiredfilePostRequest
@@ -138,8 +138,8 @@ a class that stores the final request inputs | [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 | -## FakepetiduploadimagewithrequiredfilePostNullableRequest -public static class FakepetiduploadimagewithrequiredfilePostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -165,7 +165,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostRequest](#fakepetiduploadimagewithrequiredfilepostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index 99a63adbc47..8bf85dd5a86 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakequeryparamwithjsoncontenttypeGet1](#fakequeryparamwithjsoncontenttypeget1)
The class that has a get method to call the endpoint | -| static class | [FakequeryparamwithjsoncontenttypeGetRequest](#fakequeryparamwithjsoncontenttypegetrequest)
The final request inputs class | -| static class | [FakequeryparamwithjsoncontenttypeGetNullableRequest](#fakequeryparamwithjsoncontenttypegetnullablerequest)
The initial request inputs class | +| static class | [Get](#get)
The class that has a get 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 | -## FakequeryparamwithjsoncontenttypeGet1 -public static class FakequeryparamwithjsoncontenttypeGet1 extends ApiClient.ApiClient1 implements FakequeryparamwithjsoncontenttypeGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -66,7 +66,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakequeryparamwithjsoncontenttypeGet.FakequeryparamwithjsoncontenttypeGet1 apiClient = new FakequeryparamwithjsoncontenttypeGet.FakequeryparamwithjsoncontenttypeGet1(apiConfiguration, schemaConfiguration); +FakequeryparamwithjsoncontenttypeGet.Get apiClient = new FakequeryparamwithjsoncontenttypeGet.Get(apiConfiguration, schemaConfiguration); // Map validation @@ -77,7 +77,7 @@ QueryParameters.QueryParametersMap queryParameters = schemaConfiguration ); -var request = new GetRequestBuilder() +var request = new FakequeryparamwithjsoncontenttypeGet.GetRequestBuilder() .queryParameters(queryParameters) .build(); @@ -105,12 +105,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/Responses.md#endpointresponse) | get([FakequeryparamwithjsoncontenttypeGetRequest](#fakequeryparamwithjsoncontenttypegetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakequeryparamwithjsoncontenttypeGetRequest public static class FakequeryparamwithjsoncontenttypeGetRequest
@@ -124,8 +124,8 @@ a class that stores the final request inputs | [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 | -## FakequeryparamwithjsoncontenttypeGetNullableRequest -public static class FakequeryparamwithjsoncontenttypeGetNullableRequest
+## GetNullableRequest +public static class GetNullableRequest
a class that stores the initial request inputs @@ -149,7 +149,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetRequest](#fakequeryparamwithjsoncontenttypegetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md index 1463e93de95..bf12ed134e7 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeredirectionGet1](#fakeredirectionget1)
The class that has a get method to call the endpoint | -| static class | [FakeredirectionGetRequest](#fakeredirectiongetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakeredirectionGet1 -public static class FakeredirectionGet1 extends ApiClient.ApiClient1 implements FakeredirectionGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -64,10 +64,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeredirectionGet.FakeredirectionGet1 apiClient = new FakeredirectionGet.FakeredirectionGet1(apiConfiguration, schemaConfiguration); +FakeredirectionGet.Get apiClient = new FakeredirectionGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakeredirectionGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ if (response instanceof Responses.EndpointCode3XXResponse castResponse) { ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeredirectionGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeredirection/get/Responses.md#endpointresponse) | get([FakeredirectionGetRequest](#fakeredirectiongetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeredirection/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakeredirectionGetRequest public static class FakeredirectionGetRequest
@@ -125,7 +125,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeredirectionGetRequest](#fakeredirectiongetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index a352d3b4119..9b6313acc83 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefobjinqueryGet1](#fakerefobjinqueryget1)
The class that has a get method to call the endpoint | -| static class | [FakerefobjinqueryGetRequest](#fakerefobjinquerygetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakerefobjinqueryGet1 -public static class FakerefobjinqueryGet1 extends ApiClient.ApiClient1 implements FakerefobjinqueryGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -64,10 +64,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefobjinqueryGet.FakerefobjinqueryGet1 apiClient = new FakerefobjinqueryGet.FakerefobjinqueryGet1(apiConfiguration, schemaConfiguration); +FakerefobjinqueryGet.Get apiClient = new FakerefobjinqueryGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakerefobjinqueryGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -91,12 +91,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefobjinquery/get/Responses.md#endpointresponse) | get([FakerefobjinqueryGetRequest](#fakerefobjinquerygetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefobjinquery/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakerefobjinqueryGetRequest public static class FakerefobjinqueryGetRequest
@@ -123,7 +123,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefobjinqueryGetRequest](#fakerefobjinquerygetrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakerefobjinquery/get/QueryParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md index ad700a9af8d..81f682ad609 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefsarraymodelPost1](#fakerefsarraymodelpost1)
The class that has a post method to call the endpoint | -| static class | [FakerefsarraymodelPostRequest](#fakerefsarraymodelpostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakerefsarraymodelPost1 -public static class FakerefsarraymodelPost1 extends ApiClient.ApiClient1 implements FakerefsarraymodelPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsarraymodelPost.FakerefsarraymodelPost1 apiClient = new FakerefsarraymodelPost.FakerefsarraymodelPost1(apiConfiguration, schemaConfiguration); +FakerefsarraymodelPost.Post apiClient = new FakerefsarraymodelPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakerefsarraymodelPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefsarraymodelPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsarraymodel/post/Responses.md#endpointresponse) | post([FakerefsarraymodelPostRequest](#fakerefsarraymodelpostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsarraymodel/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakerefsarraymodelPostRequest public static class FakerefsarraymodelPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsarraymodelPostRequest](#fakerefsarraymodelpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsarraymodel/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md index 49bfa09465c..85ee0259c9c 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefsarrayofenumsPost1](#fakerefsarrayofenumspost1)
The class that has a post method to call the endpoint | -| static class | [FakerefsarrayofenumsPostRequest](#fakerefsarrayofenumspostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakerefsarrayofenumsPost1 -public static class FakerefsarrayofenumsPost1 extends ApiClient.ApiClient1 implements FakerefsarrayofenumsPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsarrayofenumsPost.FakerefsarrayofenumsPost1 apiClient = new FakerefsarrayofenumsPost.FakerefsarrayofenumsPost1(apiConfiguration, schemaConfiguration); +FakerefsarrayofenumsPost.Post apiClient = new FakerefsarrayofenumsPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakerefsarrayofenumsPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefsarrayofenumsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsarrayofenums/post/Responses.md#endpointresponse) | post([FakerefsarrayofenumsPostRequest](#fakerefsarrayofenumspostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsarrayofenums/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakerefsarrayofenumsPostRequest public static class FakerefsarrayofenumsPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsarrayofenumsPostRequest](#fakerefsarrayofenumspostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsarrayofenums/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md index ca11428d276..9a6731e06fd 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefsbooleanPost1](#fakerefsbooleanpost1)
The class that has a post method to call the endpoint | -| static class | [FakerefsbooleanPostRequest](#fakerefsbooleanpostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakerefsbooleanPost1 -public static class FakerefsbooleanPost1 extends ApiClient.ApiClient1 implements FakerefsbooleanPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsbooleanPost.FakerefsbooleanPost1 apiClient = new FakerefsbooleanPost.FakerefsbooleanPost1(apiConfiguration, schemaConfiguration); +FakerefsbooleanPost.Post apiClient = new FakerefsbooleanPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakerefsbooleanPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefsbooleanPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsboolean/post/Responses.md#endpointresponse) | post([FakerefsbooleanPostRequest](#fakerefsbooleanpostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsboolean/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakerefsbooleanPostRequest public static class FakerefsbooleanPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsbooleanPostRequest](#fakerefsbooleanpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsboolean/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md index 8262c481053..fcc34169451 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefscomposedoneofnumberwithvalidationsPost1](#fakerefscomposedoneofnumberwithvalidationspost1)
The class that has a post method to call the endpoint | -| static class | [FakerefscomposedoneofnumberwithvalidationsPostRequest](#fakerefscomposedoneofnumberwithvalidationspostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakerefscomposedoneofnumberwithvalidationsPost1 -public static class FakerefscomposedoneofnumberwithvalidationsPost1 extends ApiClient.ApiClient1 implements FakerefscomposedoneofnumberwithvalidationsPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefscomposedoneofnumberwithvalidationsPost.FakerefscomposedoneofnumberwithvalidationsPost1 apiClient = new FakerefscomposedoneofnumberwithvalidationsPost.FakerefscomposedoneofnumberwithvalidationsPost1(apiConfiguration, schemaConfiguration); +FakerefscomposedoneofnumberwithvalidationsPost.Post apiClient = new FakerefscomposedoneofnumberwithvalidationsPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakerefscomposedoneofnumberwithvalidationsPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefscomposedoneofnumberwithvalidationsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md#endpointresponse) | post([FakerefscomposedoneofnumberwithvalidationsPostRequest](#fakerefscomposedoneofnumberwithvalidationspostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakerefscomposedoneofnumberwithvalidationsPostRequest public static class FakerefscomposedoneofnumberwithvalidationsPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefscomposedoneofnumberwithvalidationsPostRequest](#fakerefscomposedoneofnumberwithvalidationspostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md index 145ed9e8e61..3794eb13acf 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefsenumPost1](#fakerefsenumpost1)
The class that has a post method to call the endpoint | -| static class | [FakerefsenumPostRequest](#fakerefsenumpostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakerefsenumPost1 -public static class FakerefsenumPost1 extends ApiClient.ApiClient1 implements FakerefsenumPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsenumPost.FakerefsenumPost1 apiClient = new FakerefsenumPost.FakerefsenumPost1(apiConfiguration, schemaConfiguration); +FakerefsenumPost.Post apiClient = new FakerefsenumPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakerefsenumPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefsenumPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsenum/post/Responses.md#endpointresponse) | post([FakerefsenumPostRequest](#fakerefsenumpostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsenum/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakerefsenumPostRequest public static class FakerefsenumPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsenumPostRequest](#fakerefsenumpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsenum/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md index 50e508573d6..374440af66f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefsmammalPost1](#fakerefsmammalpost1)
The class that has a post method to call the endpoint | -| static class | [FakerefsmammalPostRequest](#fakerefsmammalpostrequest)
The final request inputs class | -| static class | [FakerefsmammalPostNullableRequest](#fakerefsmammalpostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## FakerefsmammalPost1 -public static class FakerefsmammalPost1 extends ApiClient.ApiClient1 implements FakerefsmammalPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -67,11 +67,11 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsmammalPost.FakerefsmammalPost1 apiClient = new FakerefsmammalPost.FakerefsmammalPost1(apiConfiguration, schemaConfiguration); +FakerefsmammalPost.Post apiClient = new FakerefsmammalPost.Post(apiConfiguration, schemaConfiguration); FakerefsmammalPost.SealedRequestBody requestBody = new FakerefsmammalPost.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PostRequestBuilder() +var request = new FakerefsmammalPost.PostRequestBuilder() .requestBody(requestBody) .build(); @@ -99,12 +99,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefsmammalPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsmammal/post/Responses.md#endpointresponse) | post([FakerefsmammalPostRequest](#fakerefsmammalpostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsmammal/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakerefsmammalPostRequest public static class FakerefsmammalPostRequest
@@ -118,8 +118,8 @@ a class that stores the final request inputs | [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 | -## FakerefsmammalPostNullableRequest -public static class FakerefsmammalPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -143,7 +143,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsmammalPostRequest](#fakerefsmammalpostrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md index d2f298df5b8..9ed3155438f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefsnumberPost1](#fakerefsnumberpost1)
The class that has a post method to call the endpoint | -| static class | [FakerefsnumberPostRequest](#fakerefsnumberpostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakerefsnumberPost1 -public static class FakerefsnumberPost1 extends ApiClient.ApiClient1 implements FakerefsnumberPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsnumberPost.FakerefsnumberPost1 apiClient = new FakerefsnumberPost.FakerefsnumberPost1(apiConfiguration, schemaConfiguration); +FakerefsnumberPost.Post apiClient = new FakerefsnumberPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakerefsnumberPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefsnumberPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsnumber/post/Responses.md#endpointresponse) | post([FakerefsnumberPostRequest](#fakerefsnumberpostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsnumber/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakerefsnumberPostRequest public static class FakerefsnumberPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsnumberPostRequest](#fakerefsnumberpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsnumber/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md index ef606c41c91..925cd6ccae6 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefsobjectmodelwithrefpropsPost1](#fakerefsobjectmodelwithrefpropspost1)
The class that has a post method to call the endpoint | -| static class | [FakerefsobjectmodelwithrefpropsPostRequest](#fakerefsobjectmodelwithrefpropspostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakerefsobjectmodelwithrefpropsPost1 -public static class FakerefsobjectmodelwithrefpropsPost1 extends ApiClient.ApiClient1 implements FakerefsobjectmodelwithrefpropsPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsobjectmodelwithrefpropsPost.FakerefsobjectmodelwithrefpropsPost1 apiClient = new FakerefsobjectmodelwithrefpropsPost.FakerefsobjectmodelwithrefpropsPost1(apiConfiguration, schemaConfiguration); +FakerefsobjectmodelwithrefpropsPost.Post apiClient = new FakerefsobjectmodelwithrefpropsPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakerefsobjectmodelwithrefpropsPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefsobjectmodelwithrefpropsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/Responses.md#endpointresponse) | post([FakerefsobjectmodelwithrefpropsPostRequest](#fakerefsobjectmodelwithrefpropspostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakerefsobjectmodelwithrefpropsPostRequest public static class FakerefsobjectmodelwithrefpropsPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsobjectmodelwithrefpropsPostRequest](#fakerefsobjectmodelwithrefpropspostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md index 9000653c049..182d0806e85 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakerefsstringPost1](#fakerefsstringpost1)
The class that has a post method to call the endpoint | -| static class | [FakerefsstringPostRequest](#fakerefsstringpostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakerefsstringPost1 -public static class FakerefsstringPost1 extends ApiClient.ApiClient1 implements FakerefsstringPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsstringPost.FakerefsstringPost1 apiClient = new FakerefsstringPost.FakerefsstringPost1(apiConfiguration, schemaConfiguration); +FakerefsstringPost.Post apiClient = new FakerefsstringPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakerefsstringPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefsstringPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsstring/post/Responses.md#endpointresponse) | post([FakerefsstringPostRequest](#fakerefsstringpostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakerefsstring/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakerefsstringPostRequest public static class FakerefsstringPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsstringPostRequest](#fakerefsstringpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsstring/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md index 76c3a9972f3..246170986f2 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeresponsewithoutschemaGet1](#fakeresponsewithoutschemaget1)
The class that has a get method to call the endpoint | -| static class | [FakeresponsewithoutschemaGetRequest](#fakeresponsewithoutschemagetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakeresponsewithoutschemaGet1 -public static class FakeresponsewithoutschemaGet1 extends ApiClient.ApiClient1 implements FakeresponsewithoutschemaGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -63,10 +63,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeresponsewithoutschemaGet.FakeresponsewithoutschemaGet1 apiClient = new FakeresponsewithoutschemaGet.FakeresponsewithoutschemaGet1(apiConfiguration, schemaConfiguration); +FakeresponsewithoutschemaGet.Get apiClient = new FakeresponsewithoutschemaGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakeresponsewithoutschemaGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -90,12 +90,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeresponsewithoutschemaGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/Responses.md#endpointresponse) | get([FakeresponsewithoutschemaGetRequest](#fakeresponsewithoutschemagetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakeresponsewithoutschemaGetRequest public static class FakeresponsewithoutschemaGetRequest
@@ -121,7 +121,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeresponsewithoutschemaGetRequest](#fakeresponsewithoutschemagetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index 9b4fff3218e..42f9291f0ef 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FaketestqueryparamtersPut1](#faketestqueryparamtersput1)
The class that has a put method to call the endpoint | -| static class | [FaketestqueryparamtersPutRequest](#faketestqueryparamtersputrequest)
The final request inputs class | -| static class | [FaketestqueryparamtersPutNullableRequest](#faketestqueryparamtersputnullablerequest)
The initial request inputs class | +| static class | [Put](#put)
The class that has a put 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 | -## FaketestqueryparamtersPut1 -public static class FaketestqueryparamtersPut1 extends ApiClient.ApiClient1 implements FaketestqueryparamtersPutOperation
+### Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -66,7 +66,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FaketestqueryparamtersPut.FaketestqueryparamtersPut1 apiClient = new FaketestqueryparamtersPut.FaketestqueryparamtersPut1(apiConfiguration, schemaConfiguration); +FaketestqueryparamtersPut.Put apiClient = new FaketestqueryparamtersPut.Put(apiConfiguration, schemaConfiguration); // Map validation @@ -104,7 +104,7 @@ QueryParameters.QueryParametersMap queryParameters = schemaConfiguration ); -var request = new PutRequestBuilder() +var request = new FaketestqueryparamtersPut.PutRequestBuilder() .queryParameters(queryParameters) .build(); @@ -130,12 +130,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/faketestqueryparamters/put/Responses.md#endpointresponse) | put([FaketestqueryparamtersPutRequest](#faketestqueryparamtersputrequest) request) | +| [Responses.EndpointResponse](../../paths/faketestqueryparamters/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | ## FaketestqueryparamtersPutRequest public static class FaketestqueryparamtersPutRequest
@@ -149,8 +149,8 @@ a class that stores the final request inputs | [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 | -## FaketestqueryparamtersPutNullableRequest -public static class FaketestqueryparamtersPutNullableRequest
+## PutNullableRequest +public static class PutNullableRequest
a class that stores the initial request inputs @@ -174,7 +174,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutRequest](#faketestqueryparamtersputrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md index 2230d0be9eb..8cea840361e 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeuploaddownloadfilePost1](#fakeuploaddownloadfilepost1)
The class that has a post method to call the endpoint | -| static class | [FakeuploaddownloadfilePostRequest](#fakeuploaddownloadfilepostrequest)
The final request inputs class | -| static class | [FakeuploaddownloadfilePostNullableRequest](#fakeuploaddownloadfilepostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## FakeuploaddownloadfilePost1 -public static class FakeuploaddownloadfilePost1 extends ApiClient.ApiClient1 implements FakeuploaddownloadfilePostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeuploaddownloadfilePost.FakeuploaddownloadfilePost1 apiClient = new FakeuploaddownloadfilePost.FakeuploaddownloadfilePost1(apiConfiguration, schemaConfiguration); +FakeuploaddownloadfilePost.Post apiClient = new FakeuploaddownloadfilePost.Post(apiConfiguration, schemaConfiguration); ApplicationoctetstreamSchema1BoxedString requestBodyPayload = ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.validateAndBox( @@ -76,7 +76,7 @@ ApplicationoctetstreamSchema1BoxedString requestBodyPayload = Applicationoctetst ); FakeuploaddownloadfilePost.SealedRequestBody requestBody = new FakeuploaddownloadfilePost.ApplicationoctetstreamRequestBody(requestBodyPayload); -var request = new PostRequestBuilder() +var request = new FakeuploaddownloadfilePost.PostRequestBuilder() .requestBody(requestBody) .build(); @@ -104,12 +104,12 @@ Code200Response.ApplicationoctetstreamResponseBody deserializedBody = (Code200Re ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeuploaddownloadfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/Responses.md#endpointresponse) | post([FakeuploaddownloadfilePostRequest](#fakeuploaddownloadfilepostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakeuploaddownloadfilePostRequest public static class FakeuploaddownloadfilePostRequest
@@ -123,8 +123,8 @@ a class that stores the final request inputs | [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 | -## FakeuploaddownloadfilePostNullableRequest -public static class FakeuploaddownloadfilePostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -148,7 +148,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeuploaddownloadfilePostRequest](#fakeuploaddownloadfilepostrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md index d57693485ab..e5c6ba2fd3f 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeuploadfilePost1](#fakeuploadfilepost1)
The class that has a post method to call the endpoint | -| static class | [FakeuploadfilePostRequest](#fakeuploadfilepostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakeuploadfilePost1 -public static class FakeuploadfilePost1 extends ApiClient.ApiClient1 implements FakeuploadfilePostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeuploadfilePost.FakeuploadfilePost1 apiClient = new FakeuploadfilePost.FakeuploadfilePost1(apiConfiguration, schemaConfiguration); +FakeuploadfilePost.Post apiClient = new FakeuploadfilePost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakeuploadfilePost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeuploadfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeuploadfile/post/Responses.md#endpointresponse) | post([FakeuploadfilePostRequest](#fakeuploadfilepostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeuploadfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakeuploadfilePostRequest public static class FakeuploadfilePostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeuploadfilePostRequest](#fakeuploadfilepostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeuploadfile/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md index 1bc33d99436..787858d9e19 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakeuploadfilesPost1](#fakeuploadfilespost1)
The class that has a post method to call the endpoint | -| static class | [FakeuploadfilesPostRequest](#fakeuploadfilespostrequest)
The request inputs class | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | | static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | -## FakeuploadfilesPost1 -public static class FakeuploadfilesPost1 extends ApiClient.ApiClient1 implements FakeuploadfilesPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -65,10 +65,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeuploadfilesPost.FakeuploadfilesPost1 apiClient = new FakeuploadfilesPost.FakeuploadfilesPost1(apiConfiguration, schemaConfiguration); +FakeuploadfilesPost.Post apiClient = new FakeuploadfilesPost.Post(apiConfiguration, schemaConfiguration); -var request = new PostRequestBuilder().build(); +var request = new FakeuploadfilesPost.PostRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -94,12 +94,12 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeuploadfilesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeuploadfiles/post/Responses.md#endpointresponse) | post([FakeuploadfilesPostRequest](#fakeuploadfilespostrequest) request) | +| [Responses.EndpointResponse](../../paths/fakeuploadfiles/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## FakeuploadfilesPostRequest public static class FakeuploadfilesPostRequest
@@ -126,7 +126,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeuploadfilesPostRequest](#fakeuploadfilespostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeuploadfiles/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md index d8701d9c122..fadd064495b 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FakewildcardresponsesGet1](#fakewildcardresponsesget1)
The class that has a get method to call the endpoint | -| static class | [FakewildcardresponsesGetRequest](#fakewildcardresponsesgetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FakewildcardresponsesGet1 -public static class FakewildcardresponsesGet1 extends ApiClient.ApiClient1 implements FakewildcardresponsesGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -68,10 +68,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakewildcardresponsesGet.FakewildcardresponsesGet1 apiClient = new FakewildcardresponsesGet.FakewildcardresponsesGet1(apiConfiguration, schemaConfiguration); +FakewildcardresponsesGet.Get apiClient = new FakewildcardresponsesGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FakewildcardresponsesGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -111,12 +111,12 @@ Code3XXResponse.ApplicationjsonResponseBody deserializedBody = (Code3XXResponse. ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakewildcardresponsesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakewildcardresponses/get/Responses.md#endpointresponse) | get([FakewildcardresponsesGetRequest](#fakewildcardresponsesgetrequest) request) | +| [Responses.EndpointResponse](../../paths/fakewildcardresponses/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FakewildcardresponsesGetRequest public static class FakewildcardresponsesGetRequest
@@ -142,7 +142,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakewildcardresponsesGetRequest](#fakewildcardresponsesgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/foo/FooGet.md b/samples/client/petstore/java/docs/paths/foo/FooGet.md index 11ffb7ea8e6..7ab9eee5ebd 100644 --- a/samples/client/petstore/java/docs/paths/foo/FooGet.md +++ b/samples/client/petstore/java/docs/paths/foo/FooGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [FooGet1](#fooget1)
The class that has a get method to call the endpoint | -| static class | [FooGetRequest](#foogetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## FooGet1 -public static class FooGet1 extends ApiClient.ApiClient1 implements FooGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -62,10 +62,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FooGet.FooGet1 apiClient = new FooGet.FooGet1(apiConfiguration, schemaConfiguration); +FooGet.Get apiClient = new FooGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new FooGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -91,12 +91,12 @@ CodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (CodedefaultR ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/foo/get/Responses.md#endpointresponse) | get([FooGetRequest](#foogetrequest) request) | +| [Responses.EndpointResponse](../../paths/foo/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## FooGetRequest public static class FooGetRequest
@@ -122,7 +122,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FooGetRequest](#foogetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md index f1d18111488..9e1e37f248f 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPost.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [PetPost1](#petpost1)
The class that has a post method to call the endpoint | -| static class | [PetPostRequest](#petpostrequest)
The final request inputs class | -| static class | [PetPostNullableRequest](#petpostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## PetPost1 -public static class PetPost1 extends ApiClient.ApiClient1 implements PetPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -82,7 +82,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetPost.PetPost1 apiClient = new PetPost.PetPost1(apiConfiguration, schemaConfiguration); +PetPost.Post apiClient = new PetPost.Post(apiConfiguration, schemaConfiguration); Pet1BoxedMap requestBodyPayload = @@ -126,7 +126,7 @@ Pet1BoxedMap requestBodyPayload = ); RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PostRequestBuilder() +var request = new PetPost.PostRequestBuilder() .requestBody(requestBody) .build(); @@ -155,12 +155,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/pet/post/Responses.md#endpointresponse) | post([PetPostRequest](#petpostrequest) request) | +| [Responses.EndpointResponse](../../paths/pet/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PetPostRequest public static class PetPostRequest
@@ -175,8 +175,8 @@ a class that stores the final request inputs | [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 | -## PetPostNullableRequest -public static class PetPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -201,7 +201,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetPostRequest](#petpostrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/pet/PetPut.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md index 5009b82781b..cbb849868e3 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPut.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [PetPut1](#petput1)
The class that has a put method to call the endpoint | -| static class | [PetPutRequest](#petputrequest)
The final request inputs class | -| static class | [PetPutNullableRequest](#petputnullablerequest)
The initial request inputs class | +| static class | [Put](#put)
The class that has a put 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 | -## PetPut1 -public static class PetPut1 extends ApiClient.ApiClient1 implements PetPutOperation
+### Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -79,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetPut.PetPut1 apiClient = new PetPut.PetPut1(apiConfiguration, schemaConfiguration); +PetPut.Put apiClient = new PetPut.Put(apiConfiguration, schemaConfiguration); Pet1BoxedMap requestBodyPayload = @@ -123,7 +123,7 @@ Pet1BoxedMap requestBodyPayload = ); RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PutRequestBuilder() +var request = new PetPut.PutRequestBuilder() .requestBody(requestBody) .build(); @@ -151,12 +151,12 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | put([PetPutRequest](#petputrequest) request) | +| Void | put([PutRequest](#putrequest) request) | ## PetPutRequest public static class PetPutRequest
@@ -171,8 +171,8 @@ a class that stores the final request inputs | [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 | -## PetPutNullableRequest -public static class PetPutNullableRequest
+## PutNullableRequest +public static class PutNullableRequest
a class that stores the initial request inputs @@ -197,7 +197,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetPutRequest](#petputrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index 07232cb3b51..aba451f4516 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [PetfindbystatusGet1](#petfindbystatusget1)
The class that has a get method to call the endpoint | -| static class | [PetfindbystatusGetRequest](#petfindbystatusgetrequest)
The final request inputs class | -| static class | [PetfindbystatusGetNullableRequest](#petfindbystatusgetnullablerequest)
The initial request inputs class | +| static class | [Get](#get)
The class that has a get 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 | -## PetfindbystatusGet1 -public static class PetfindbystatusGet1 extends ApiClient.ApiClient1 implements PetfindbystatusGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -80,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetfindbystatusGet.PetfindbystatusGet1 apiClient = new PetfindbystatusGet.PetfindbystatusGet1(apiConfiguration, schemaConfiguration); +PetfindbystatusGet.Get apiClient = new PetfindbystatusGet.Get(apiConfiguration, schemaConfiguration); // Map validation @@ -96,7 +96,7 @@ QueryParameters.QueryParametersMap queryParameters = schemaConfiguration ); -var request = new GetRequestBuilder() +var request = new PetfindbystatusGet.GetRequestBuilder() .queryParameters(queryParameters) .build(); @@ -126,12 +126,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petfindbystatus/get/Responses.md#endpointresponse) | get([PetfindbystatusGetRequest](#petfindbystatusgetrequest) request) | +| [Responses.EndpointResponse](../../paths/petfindbystatus/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## PetfindbystatusGetRequest public static class PetfindbystatusGetRequest
@@ -146,8 +146,8 @@ a class that stores the final request inputs | [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 | -## PetfindbystatusGetNullableRequest -public static class PetfindbystatusGetNullableRequest
+## GetNullableRequest +public static class GetNullableRequest
a class that stores the initial request inputs @@ -172,7 +172,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusGetRequest](#petfindbystatusgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index 6dacf840373..fc1ba283a37 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [PetfindbytagsGet1](#petfindbytagsget1)
The class that has a get method to call the endpoint | -| static class | [PetfindbytagsGetRequest](#petfindbytagsgetrequest)
The final request inputs class | -| static class | [PetfindbytagsGetNullableRequest](#petfindbytagsgetnullablerequest)
The initial request inputs class | +| static class | [Get](#get)
The class that has a get 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 | -## PetfindbytagsGet1 -public static class PetfindbytagsGet1 extends ApiClient.ApiClient1 implements PetfindbytagsGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -77,7 +77,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetfindbytagsGet.PetfindbytagsGet1 apiClient = new PetfindbytagsGet.PetfindbytagsGet1(apiConfiguration, schemaConfiguration); +PetfindbytagsGet.Get apiClient = new PetfindbytagsGet.Get(apiConfiguration, schemaConfiguration); // Map validation @@ -93,7 +93,7 @@ QueryParameters.QueryParametersMap queryParameters = schemaConfiguration ); -var request = new GetRequestBuilder() +var request = new PetfindbytagsGet.GetRequestBuilder() .queryParameters(queryParameters) .build(); @@ -123,12 +123,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petfindbytags/get/Responses.md#endpointresponse) | get([PetfindbytagsGetRequest](#petfindbytagsgetrequest) request) | +| [Responses.EndpointResponse](../../paths/petfindbytags/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## PetfindbytagsGetRequest public static class PetfindbytagsGetRequest
@@ -143,8 +143,8 @@ a class that stores the final request inputs | [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 | -## PetfindbytagsGetNullableRequest -public static class PetfindbytagsGetNullableRequest
+## GetNullableRequest +public static class GetNullableRequest
a class that stores the initial request inputs @@ -169,7 +169,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbytagsGetRequest](#petfindbytagsgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index 59d89a99446..b4a731d66ad 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [PetpetidDelete1](#petpetiddelete1)
The class that has a delete method to call the endpoint | -| static class | [PetpetidDeleteRequest](#petpetiddeleterequest)
The final request inputs class | -| static class | [PetpetidDeleteNullableRequest](#petpetiddeletenullablerequest)
The initial request inputs class | +| static class | [Delete](#delete)
The class that has a delete 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 | -## PetpetidDelete1 -public static class PetpetidDelete1 extends ApiClient.ApiClient1 implements PetpetidDeleteOperation
+### Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -80,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetidDelete.PetpetidDelete1 apiClient = new PetpetidDelete.PetpetidDelete1(apiConfiguration, schemaConfiguration); +PetpetidDelete.Delete apiClient = new PetpetidDelete.Delete(apiConfiguration, schemaConfiguration); // Map validation @@ -93,7 +93,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new DeleteRequestBuilder() +var request = new PetpetidDelete.DeleteRequestBuilder() .pathParameters(pathParameters) .build(); @@ -121,12 +121,12 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | delete([PetpetidDeleteRequest](#petpetiddeleterequest) request) | +| Void | delete([DeleteRequest](#deleterequest) request) | ## PetpetidDeleteRequest public static class PetpetidDeleteRequest
@@ -142,8 +142,8 @@ a class that stores the final request inputs | [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 | -## PetpetidDeleteNullableRequest -public static class PetpetidDeleteNullableRequest
+## DeleteNullableRequest +public static class DeleteNullableRequest
a class that stores the initial request inputs @@ -169,7 +169,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeleteRequest](#petpetiddeleterequest) | build()
Returns the request input used to call an endpoint method | +| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | | [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/petpetid/delete/HeaderParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index 150e61af10f..73838d074a6 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [PetpetidGet1](#petpetidget1)
The class that has a get method to call the endpoint | -| static class | [PetpetidGetRequest](#petpetidgetrequest)
The final request inputs class | -| static class | [PetpetidGetNullableRequest](#petpetidgetnullablerequest)
The initial request inputs class | +| static class | [Get](#get)
The class that has a get 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 | -## PetpetidGet1 -public static class PetpetidGet1 extends ApiClient.ApiClient1 implements PetpetidGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -80,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetidGet.PetpetidGet1 apiClient = new PetpetidGet.PetpetidGet1(apiConfiguration, schemaConfiguration); +PetpetidGet.Get apiClient = new PetpetidGet.Get(apiConfiguration, schemaConfiguration); // Map validation @@ -93,7 +93,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new GetRequestBuilder() +var request = new PetpetidGet.GetRequestBuilder() .pathParameters(pathParameters) .build(); @@ -128,12 +128,12 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petpetid/get/Responses.md#endpointresponse) | get([PetpetidGetRequest](#petpetidgetrequest) request) | +| [Responses.EndpointResponse](../../paths/petpetid/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## PetpetidGetRequest public static class PetpetidGetRequest
@@ -148,8 +148,8 @@ a class that stores the final request inputs | [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 | -## PetpetidGetNullableRequest -public static class PetpetidGetNullableRequest
+## GetNullableRequest +public static class GetNullableRequest
a class that stores the initial request inputs @@ -174,7 +174,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidGetRequest](#petpetidgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index d9eed9b0ca0..c877feb1b13 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [PetpetidPost1](#petpetidpost1)
The class that has a post method to call the endpoint | -| static class | [PetpetidPostRequest](#petpetidpostrequest)
The final request inputs class | -| static class | [PetpetidPostNullableRequest](#petpetidpostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## PetpetidPost1 -public static class PetpetidPost1 extends ApiClient.ApiClient1 implements PetpetidPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -80,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetidPost.PetpetidPost1 apiClient = new PetpetidPost.PetpetidPost1(apiConfiguration, schemaConfiguration); +PetpetidPost.Post apiClient = new PetpetidPost.Post(apiConfiguration, schemaConfiguration); // Map validation @@ -93,7 +93,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new PostRequestBuilder() +var request = new PetpetidPost.PostRequestBuilder() .pathParameters(pathParameters) .build(); @@ -121,12 +121,12 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | post([PetpetidPostRequest](#petpetidpostrequest) request) | +| Void | post([PostRequest](#postrequest) request) | ## PetpetidPostRequest public static class PetpetidPostRequest
@@ -142,8 +142,8 @@ a class that stores the final request inputs | [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 | -## PetpetidPostNullableRequest -public static class PetpetidPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -169,7 +169,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidPostRequest](#petpetidpostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/petpetid/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index 291200c3e89..cf5194ab47d 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [PetpetiduploadimagePost1](#petpetiduploadimagepost1)
The class that has a post method to call the endpoint | -| static class | [PetpetiduploadimagePostRequest](#petpetiduploadimagepostrequest)
The final request inputs class | -| static class | [PetpetiduploadimagePostNullableRequest](#petpetiduploadimagepostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## PetpetiduploadimagePost1 -public static class PetpetiduploadimagePost1 extends ApiClient.ApiClient1 implements PetpetiduploadimagePostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -77,7 +77,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetiduploadimagePost.PetpetiduploadimagePost1 apiClient = new PetpetiduploadimagePost.PetpetiduploadimagePost1(apiConfiguration, schemaConfiguration); +PetpetiduploadimagePost.Post apiClient = new PetpetiduploadimagePost.Post(apiConfiguration, schemaConfiguration); // Map validation @@ -90,7 +90,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new PostRequestBuilder() +var request = new PetpetiduploadimagePost.PostRequestBuilder() .pathParameters(pathParameters) .build(); @@ -117,12 +117,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petpetiduploadimage/post/Responses.md#endpointresponse) | post([PetpetiduploadimagePostRequest](#petpetiduploadimagepostrequest) request) | +| [Responses.EndpointResponse](../../paths/petpetiduploadimage/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PetpetiduploadimagePostRequest public static class PetpetiduploadimagePostRequest
@@ -138,8 +138,8 @@ a class that stores the final request inputs | [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 | -## PetpetiduploadimagePostNullableRequest -public static class PetpetiduploadimagePostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -165,7 +165,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetiduploadimagePostRequest](#petpetiduploadimagepostrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/petpetiduploadimage/post/RequestBody.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 | diff --git a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md index 988af4cd9f4..183de237eb9 100644 --- a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md +++ b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [SolidusGet1](#solidusget1)
The class that has a get method to call the endpoint | -| static class | [SolidusGetRequest](#solidusgetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## SolidusGet1 -public static class SolidusGet1 extends ApiClient.ApiClient1 implements SolidusGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -63,10 +63,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -SolidusGet.SolidusGet1 apiClient = new SolidusGet.SolidusGet1(apiConfiguration, schemaConfiguration); +SolidusGet.Get apiClient = new SolidusGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new SolidusGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -90,12 +90,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| SolidusGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/solidus/get/Responses.md#endpointresponse) | get([SolidusGetRequest](#solidusgetrequest) request) | +| [Responses.EndpointResponse](../../paths/solidus/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## SolidusGetRequest public static class SolidusGetRequest
@@ -121,7 +121,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SolidusGetRequest](#solidusgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md index 66d97c3b23a..a84690ceb00 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [StoreinventoryGet1](#storeinventoryget1)
The class that has a get method to call the endpoint | -| static class | [StoreinventoryGetRequest](#storeinventorygetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## StoreinventoryGet1 -public static class StoreinventoryGet1 extends ApiClient.ApiClient1 implements StoreinventoryGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -76,10 +76,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreinventoryGet.StoreinventoryGet1 apiClient = new StoreinventoryGet.StoreinventoryGet1(apiConfiguration, schemaConfiguration); +StoreinventoryGet.Get apiClient = new StoreinventoryGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new StoreinventoryGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -104,12 +104,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreinventoryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/storeinventory/get/Responses.md#endpointresponse) | get([StoreinventoryGetRequest](#storeinventorygetrequest) request) | +| [Responses.EndpointResponse](../../paths/storeinventory/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## StoreinventoryGetRequest public static class StoreinventoryGetRequest
@@ -136,7 +136,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreinventoryGetRequest](#storeinventorygetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md index aefab85f6ea..fa180bd2a61 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md +++ b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [StoreorderPost1](#storeorderpost1)
The class that has a post method to call the endpoint | -| static class | [StoreorderPostRequest](#storeorderpostrequest)
The final request inputs class | -| static class | [StoreorderPostNullableRequest](#storeorderpostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## StoreorderPost1 -public static class StoreorderPost1 extends ApiClient.ApiClient1 implements StoreorderPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreorderPost.StoreorderPost1 apiClient = new StoreorderPost.StoreorderPost1(apiConfiguration, schemaConfiguration); +StoreorderPost.Post apiClient = new StoreorderPost.Post(apiConfiguration, schemaConfiguration); Order1BoxedMap requestBodyPayload = @@ -91,7 +91,7 @@ Order1BoxedMap requestBodyPayload = ); StoreorderPost.SealedRequestBody requestBody = new StoreorderPost.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PostRequestBuilder() +var request = new StoreorderPost.PostRequestBuilder() .requestBody(requestBody) .build(); @@ -126,12 +126,12 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/storeorder/post/Responses.md#endpointresponse) | post([StoreorderPostRequest](#storeorderpostrequest) request) | +| [Responses.EndpointResponse](../../paths/storeorder/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## StoreorderPostRequest public static class StoreorderPostRequest
@@ -145,8 +145,8 @@ a class that stores the final request inputs | [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 | -## StoreorderPostNullableRequest -public static class StoreorderPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -170,7 +170,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderPostRequest](#storeorderpostrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index 27264b0a2ee..3b3da38e07f 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [StoreorderorderidDelete1](#storeorderorderiddelete1)
The class that has a delete method to call the endpoint | -| static class | [StoreorderorderidDeleteRequest](#storeorderorderiddeleterequest)
The final request inputs class | -| static class | [StoreorderorderidDeleteNullableRequest](#storeorderorderiddeletenullablerequest)
The initial request inputs class | +| static class | [Delete](#delete)
The class that has a delete 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 | -## StoreorderorderidDelete1 -public static class StoreorderorderidDelete1 extends ApiClient.ApiClient1 implements StoreorderorderidDeleteOperation
+### Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreorderorderidDelete.StoreorderorderidDelete1 apiClient = new StoreorderorderidDelete.StoreorderorderidDelete1(apiConfiguration, schemaConfiguration); +StoreorderorderidDelete.Delete apiClient = new StoreorderorderidDelete.Delete(apiConfiguration, schemaConfiguration); // Map validation @@ -80,7 +80,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new DeleteRequestBuilder() +var request = new StoreorderorderidDelete.DeleteRequestBuilder() .pathParameters(pathParameters) .build(); @@ -108,12 +108,12 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | delete([StoreorderorderidDeleteRequest](#storeorderorderiddeleterequest) request) | +| Void | delete([DeleteRequest](#deleterequest) request) | ## StoreorderorderidDeleteRequest public static class StoreorderorderidDeleteRequest
@@ -127,8 +127,8 @@ a class that stores the final request inputs | [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 | -## StoreorderorderidDeleteNullableRequest -public static class StoreorderorderidDeleteNullableRequest
+## DeleteNullableRequest +public static class DeleteNullableRequest
a class that stores the initial request inputs @@ -152,7 +152,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidDeleteRequest](#storeorderorderiddeleterequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index f7d786b9889..f72a4c8115d 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [StoreorderorderidGet1](#storeorderorderidget1)
The class that has a get method to call the endpoint | -| static class | [StoreorderorderidGetRequest](#storeorderorderidgetrequest)
The final request inputs class | -| static class | [StoreorderorderidGetNullableRequest](#storeorderorderidgetnullablerequest)
The initial request inputs class | +| static class | [Get](#get)
The class that has a get 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 | -## StoreorderorderidGet1 -public static class StoreorderorderidGet1 extends ApiClient.ApiClient1 implements StoreorderorderidGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreorderorderidGet.StoreorderorderidGet1 apiClient = new StoreorderorderidGet.StoreorderorderidGet1(apiConfiguration, schemaConfiguration); +StoreorderorderidGet.Get apiClient = new StoreorderorderidGet.Get(apiConfiguration, schemaConfiguration); // Map validation @@ -81,7 +81,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new GetRequestBuilder() +var request = new StoreorderorderidGet.GetRequestBuilder() .pathParameters(pathParameters) .build(); @@ -116,12 +116,12 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/storeorderorderid/get/Responses.md#endpointresponse) | get([StoreorderorderidGetRequest](#storeorderorderidgetrequest) request) | +| [Responses.EndpointResponse](../../paths/storeorderorderid/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## StoreorderorderidGetRequest public static class StoreorderorderidGetRequest
@@ -135,8 +135,8 @@ a class that stores the final request inputs | [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 | -## StoreorderorderidGetNullableRequest -public static class StoreorderorderidGetNullableRequest
+## GetNullableRequest +public static class GetNullableRequest
a class that stores the initial request inputs @@ -160,7 +160,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidGetRequest](#storeorderorderidgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md index 94457661411..e88aa14eff3 100644 --- a/samples/client/petstore/java/docs/paths/user/UserPost.md +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [UserPost1](#userpost1)
The class that has a post method to call the endpoint | -| static class | [UserPostRequest](#userpostrequest)
The final request inputs class | -| static class | [UserPostNullableRequest](#userpostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## UserPost1 -public static class UserPost1 extends ApiClient.ApiClient1 implements UserPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserPost.UserPost1 apiClient = new UserPost.UserPost1(apiConfiguration, schemaConfiguration); +UserPost.Post apiClient = new UserPost.Post(apiConfiguration, schemaConfiguration); User1BoxedMap requestBodyPayload = @@ -96,7 +96,7 @@ User1BoxedMap requestBodyPayload = ); UserPost.SealedRequestBody requestBody = new UserPost.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PostRequestBuilder() +var request = new UserPost.PostRequestBuilder() .requestBody(requestBody) .build(); @@ -122,12 +122,12 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/user/post/Responses.md#endpointresponse) | post([UserPostRequest](#userpostrequest) request) | +| [Responses.EndpointResponse](../../paths/user/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## UserPostRequest public static class UserPostRequest
@@ -141,8 +141,8 @@ a class that stores the final request inputs | [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 | -## UserPostNullableRequest -public static class UserPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -166,7 +166,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserPostRequest](#userpostrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md index 0a55276a3fb..9a265207858 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [UsercreatewitharrayPost1](#usercreatewitharraypost1)
The class that has a post method to call the endpoint | -| static class | [UsercreatewitharrayPostRequest](#usercreatewitharraypostrequest)
The final request inputs class | -| static class | [UsercreatewitharrayPostNullableRequest](#usercreatewitharraypostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## UsercreatewitharrayPost1 -public static class UsercreatewitharrayPost1 extends ApiClient.ApiClient1 implements UsercreatewitharrayPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UsercreatewitharrayPost.UsercreatewitharrayPost1 apiClient = new UsercreatewitharrayPost.UsercreatewitharrayPost1(apiConfiguration, schemaConfiguration); +UsercreatewitharrayPost.Post apiClient = new UsercreatewitharrayPost.Post(apiConfiguration, schemaConfiguration); ApplicationjsonSchema1BoxedList requestBodyPayload = @@ -118,7 +118,7 @@ ApplicationjsonSchema1BoxedList requestBodyPayload = ); RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PostRequestBuilder() +var request = new UsercreatewitharrayPost.PostRequestBuilder() .requestBody(requestBody) .build(); @@ -144,12 +144,12 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Constructor Summary | Constructor and Description | | --------------------------- | -| UsercreatewitharrayPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/usercreatewitharray/post/Responses.md#endpointresponse) | post([UsercreatewitharrayPostRequest](#usercreatewitharraypostrequest) request) | +| [Responses.EndpointResponse](../../paths/usercreatewitharray/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## UsercreatewitharrayPostRequest public static class UsercreatewitharrayPostRequest
@@ -163,8 +163,8 @@ a class that stores the final request inputs | [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 | -## UsercreatewitharrayPostNullableRequest -public static class UsercreatewitharrayPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -188,7 +188,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UsercreatewitharrayPostRequest](#usercreatewitharraypostrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md index 234e525da63..806f9c6d2de 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [UsercreatewithlistPost1](#usercreatewithlistpost1)
The class that has a post method to call the endpoint | -| static class | [UsercreatewithlistPostRequest](#usercreatewithlistpostrequest)
The final request inputs class | -| static class | [UsercreatewithlistPostNullableRequest](#usercreatewithlistpostnullablerequest)
The initial request inputs class | +| static class | [Post](#post)
The class that has a post 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 | -## UsercreatewithlistPost1 -public static class UsercreatewithlistPost1 extends ApiClient.ApiClient1 implements UsercreatewithlistPostOperation
+### Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UsercreatewithlistPost.UsercreatewithlistPost1 apiClient = new UsercreatewithlistPost.UsercreatewithlistPost1(apiConfiguration, schemaConfiguration); +UsercreatewithlistPost.Post apiClient = new UsercreatewithlistPost.Post(apiConfiguration, schemaConfiguration); ApplicationjsonSchema1BoxedList requestBodyPayload = @@ -118,7 +118,7 @@ ApplicationjsonSchema1BoxedList requestBodyPayload = ); RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); -var request = new PostRequestBuilder() +var request = new UsercreatewithlistPost.PostRequestBuilder() .requestBody(requestBody) .build(); @@ -144,12 +144,12 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Constructor Summary | Constructor and Description | | --------------------------- | -| UsercreatewithlistPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/usercreatewithlist/post/Responses.md#endpointresponse) | post([UsercreatewithlistPostRequest](#usercreatewithlistpostrequest) request) | +| [Responses.EndpointResponse](../../paths/usercreatewithlist/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## UsercreatewithlistPostRequest public static class UsercreatewithlistPostRequest
@@ -163,8 +163,8 @@ a class that stores the final request inputs | [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 | -## UsercreatewithlistPostNullableRequest -public static class UsercreatewithlistPostNullableRequest
+## PostNullableRequest +public static class PostNullableRequest
a class that stores the initial request inputs @@ -188,7 +188,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UsercreatewithlistPostRequest](#usercreatewithlistpostrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index 9e4c5e3bf97..cc9f4ceb4bf 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [UserloginGet1](#userloginget1)
The class that has a get method to call the endpoint | -| static class | [UserloginGetRequest](#userlogingetrequest)
The final request inputs class | -| static class | [UserloginGetNullableRequest](#userlogingetnullablerequest)
The initial request inputs class | +| static class | [Get](#get)
The class that has a get 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 | -## UserloginGet1 -public static class UserloginGet1 extends ApiClient.ApiClient1 implements UserloginGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserloginGet.UserloginGet1 apiClient = new UserloginGet.UserloginGet1(apiConfiguration, schemaConfiguration); +UserloginGet.Get apiClient = new UserloginGet.Get(apiConfiguration, schemaConfiguration); // Map validation @@ -83,7 +83,7 @@ QueryParameters.QueryParametersMap queryParameters = schemaConfiguration ); -var request = new GetRequestBuilder() +var request = new UserloginGet.GetRequestBuilder() .queryParameters(queryParameters) .build(); @@ -118,12 +118,12 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userlogin/get/Responses.md#endpointresponse) | get([UserloginGetRequest](#userlogingetrequest) request) | +| [Responses.EndpointResponse](../../paths/userlogin/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## UserloginGetRequest public static class UserloginGetRequest
@@ -137,8 +137,8 @@ a class that stores the final request inputs | [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 | -## UserloginGetNullableRequest -public static class UserloginGetNullableRequest
+## GetNullableRequest +public static class GetNullableRequest
a class that stores the initial request inputs @@ -162,7 +162,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetRequest](#userlogingetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md index 7e655277c48..13ac605ef88 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md +++ b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md @@ -11,12 +11,12 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [UserlogoutGet1](#userlogoutget1)
The class that has a get method to call the endpoint | -| static class | [UserlogoutGetRequest](#userlogoutgetrequest)
The request inputs class | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | | static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | -## UserlogoutGet1 -public static class UserlogoutGet1 extends ApiClient.ApiClient1 implements UserlogoutGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -63,10 +63,10 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserlogoutGet.UserlogoutGet1 apiClient = new UserlogoutGet.UserlogoutGet1(apiConfiguration, schemaConfiguration); +UserlogoutGet.Get apiClient = new UserlogoutGet.Get(apiConfiguration, schemaConfiguration); -var request = new GetRequestBuilder().build(); +var request = new UserlogoutGet.GetRequestBuilder().build(); Responses.EndpointResponse response; try { @@ -90,12 +90,12 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserlogoutGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userlogout/get/Responses.md#endpointresponse) | get([UserlogoutGetRequest](#userlogoutgetrequest) request) | +| [Responses.EndpointResponse](../../paths/userlogout/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## UserlogoutGetRequest public static class UserlogoutGetRequest
@@ -121,7 +121,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserlogoutGetRequest](#userlogoutgetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index dd10719ecf5..3909e35d93e 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [UserusernameDelete1](#userusernamedelete1)
The class that has a delete method to call the endpoint | -| static class | [UserusernameDeleteRequest](#userusernamedeleterequest)
The final request inputs class | -| static class | [UserusernameDeleteNullableRequest](#userusernamedeletenullablerequest)
The initial request inputs class | +| static class | [Delete](#delete)
The class that has a delete 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 | -## UserusernameDelete1 -public static class UserusernameDelete1 extends ApiClient.ApiClient1 implements UserusernameDeleteOperation
+### Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -67,7 +67,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserusernameDelete.UserusernameDelete1 apiClient = new UserusernameDelete.UserusernameDelete1(apiConfiguration, schemaConfiguration); +UserusernameDelete.Delete apiClient = new UserusernameDelete.Delete(apiConfiguration, schemaConfiguration); // Map validation @@ -80,7 +80,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new DeleteRequestBuilder() +var request = new UserusernameDelete.DeleteRequestBuilder() .pathParameters(pathParameters) .build(); @@ -109,12 +109,12 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userusername/delete/Responses.md#endpointresponse) | delete([UserusernameDeleteRequest](#userusernamedeleterequest) request) | +| [Responses.EndpointResponse](../../paths/userusername/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | ## UserusernameDeleteRequest public static class UserusernameDeleteRequest
@@ -128,8 +128,8 @@ a class that stores the final request inputs | [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 | -## UserusernameDeleteNullableRequest -public static class UserusernameDeleteNullableRequest
+## DeleteNullableRequest +public static class DeleteNullableRequest
a class that stores the initial request inputs @@ -153,7 +153,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameDeleteRequest](#userusernamedeleterequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index d39f0452487..fb1fc5c324d 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -11,14 +11,14 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [UserusernameGet1](#userusernameget1)
The class that has a get method to call the endpoint | -| static class | [UserusernameGetRequest](#userusernamegetrequest)
The final request inputs class | -| static class | [UserusernameGetNullableRequest](#userusernamegetnullablerequest)
The initial request inputs class | +| static class | [Get](#get)
The class that has a get 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 | -## UserusernameGet1 -public static class UserusernameGet1 extends ApiClient.ApiClient1 implements UserusernameGetOperation
+### Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -68,7 +68,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserusernameGet.UserusernameGet1 apiClient = new UserusernameGet.UserusernameGet1(apiConfiguration, schemaConfiguration); +UserusernameGet.Get apiClient = new UserusernameGet.Get(apiConfiguration, schemaConfiguration); // Map validation @@ -81,7 +81,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new GetRequestBuilder() +var request = new UserusernameGet.GetRequestBuilder() .pathParameters(pathParameters) .build(); @@ -116,12 +116,12 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userusername/get/Responses.md#endpointresponse) | get([UserusernameGetRequest](#userusernamegetrequest) request) | +| [Responses.EndpointResponse](../../paths/userusername/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## UserusernameGetRequest public static class UserusernameGetRequest
@@ -135,8 +135,8 @@ a class that stores the final request inputs | [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 | -## UserusernameGetNullableRequest -public static class UserusernameGetNullableRequest
+## GetNullableRequest +public static class GetNullableRequest
a class that stores the initial request inputs @@ -160,7 +160,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameGetRequest](#userusernamegetrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index dbb7a81a981..6a3be976930 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -11,16 +11,16 @@ A class that contains necessary endpoint classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [UserusernamePut1](#userusernameput1)
The class that has a put method to call the endpoint | -| static class | [UserusernamePutRequest](#userusernameputrequest)
The final request inputs class | -| static class | [UserusernamePutNullableRequest](#userusernameputnullablerequest)
The initial request inputs class | +| static class | [Put](#put)
The class that has a put 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 | -## UserusernamePut1 -public static class UserusernamePut1 extends ApiClient.ApiClient1 implements UserusernamePutOperation
+### Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -71,7 +71,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserusernamePut.UserusernamePut1 apiClient = new UserusernamePut.UserusernamePut1(apiConfiguration, schemaConfiguration); +UserusernamePut.Put apiClient = new UserusernamePut.Put(apiConfiguration, schemaConfiguration); User1BoxedMap requestBodyPayload = @@ -110,7 +110,7 @@ PathParameters.PathParametersMap pathParameters = schemaConfiguration ); -var request = new PutRequestBuilder() +var request = new UserusernamePut.PutRequestBuilder() .requestBody(requestBody) .pathParameters(pathParameters) .build(); @@ -139,12 +139,12 @@ try { ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | put([UserusernamePutRequest](#userusernameputrequest) request) | +| Void | put([PutRequest](#putrequest) request) | ## UserusernamePutRequest public static class UserusernamePutRequest
@@ -159,8 +159,8 @@ a class that stores the final request inputs | [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 | -## UserusernamePutNullableRequest -public static class UserusernamePutNullableRequest
+## PutNullableRequest +public static class PutNullableRequest
a class that stores the initial request inputs @@ -185,7 +185,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernamePutRequest](#userusernameputrequest) | build()
Returns the request input used to call an endpoint method | +| [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 | diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java index 08c73e071c4..b687c5fc891 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.anotherfakedummy.AnotherfakedummyPatch; public class Anotherfakedummy extends ApiClient implements - AnotherfakedummyPatch.AnotherfakedummyPatchOperation + AnotherfakedummyPatch.PatchOperation { public Anotherfakedummy(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java index 983adc651f7..400521401ea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java @@ -8,9 +8,9 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirPost; public class Commonparamsubdir extends ApiClient implements - CommonparamsubdirDelete.CommonparamsubdirDeleteOperation, - CommonparamsubdirGet.CommonparamsubdirGetOperation, - CommonparamsubdirPost.CommonparamsubdirPostOperation + CommonparamsubdirDelete.DeleteOperation, + CommonparamsubdirGet.GetOperation, + CommonparamsubdirPost.PostOperation { public Commonparamsubdir(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fake.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fake.java index 76ba03537db..ac3c467aeb1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fake.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fake.java @@ -9,10 +9,10 @@ import org.openapijsonschematools.client.paths.fake.FakePost; public class Fake extends ApiClient implements - FakeDelete.FakeDeleteOperation, - FakeGet.FakeGetOperation, - FakePatch.FakePatchOperation, - FakePost.FakePostOperation + FakeDelete.DeleteOperation, + FakeGet.GetOperation, + FakePatch.PatchOperation, + FakePost.PostOperation { public Fake(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeadditionalpropertieswitharrayofenums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeadditionalpropertieswitharrayofenums.java index 5ff78d1e8ce..4bf9d268646 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeadditionalpropertieswitharrayofenums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeadditionalpropertieswitharrayofenums.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.FakeadditionalpropertieswitharrayofenumsGet; public class Fakeadditionalpropertieswitharrayofenums extends ApiClient implements - FakeadditionalpropertieswitharrayofenumsGet.FakeadditionalpropertieswitharrayofenumsGetOperation + FakeadditionalpropertieswitharrayofenumsGet.GetOperation { public Fakeadditionalpropertieswitharrayofenums(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithfileschema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithfileschema.java index 9144a7928f6..a89c0f20cb9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithfileschema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithfileschema.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakebodywithfileschema.FakebodywithfileschemaPut; public class Fakebodywithfileschema extends ApiClient implements - FakebodywithfileschemaPut.FakebodywithfileschemaPutOperation + FakebodywithfileschemaPut.PutOperation { public Fakebodywithfileschema(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithqueryparams.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithqueryparams.java index 684edddaf3d..6d592293a3d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithqueryparams.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakebodywithqueryparams.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakebodywithqueryparams.FakebodywithqueryparamsPut; public class Fakebodywithqueryparams extends ApiClient implements - FakebodywithqueryparamsPut.FakebodywithqueryparamsPutOperation + FakebodywithqueryparamsPut.PutOperation { public Fakebodywithqueryparams(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakecasesensitiveparams.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakecasesensitiveparams.java index 0b4d03f9f8d..efbc1ef7ff2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakecasesensitiveparams.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakecasesensitiveparams.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakecasesensitiveparams.FakecasesensitiveparamsPut; public class Fakecasesensitiveparams extends ApiClient implements - FakecasesensitiveparamsPut.FakecasesensitiveparamsPutOperation + FakecasesensitiveparamsPut.PutOperation { public Fakecasesensitiveparams(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeclassnametest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeclassnametest.java index ec74db271e8..53160a2beb8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeclassnametest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeclassnametest.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeclassnametest.FakeclassnametestPatch; public class Fakeclassnametest extends ApiClient implements - FakeclassnametestPatch.FakeclassnametestPatchOperation + FakeclassnametestPatch.PatchOperation { public Fakeclassnametest(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakedeletecoffeeid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakedeletecoffeeid.java index 2a525eb3bc5..5bd8e4f21a5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakedeletecoffeeid.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakedeletecoffeeid.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakedeletecoffeeid.FakedeletecoffeeidDelete; public class Fakedeletecoffeeid extends ApiClient implements - FakedeletecoffeeidDelete.FakedeletecoffeeidDeleteOperation + FakedeletecoffeeidDelete.DeleteOperation { public Fakedeletecoffeeid(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakehealth.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakehealth.java index 1f0eaa6541a..391f0afd3a0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakehealth.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakehealth.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakehealth.FakehealthGet; public class Fakehealth extends ApiClient implements - FakehealthGet.FakehealthGetOperation + FakehealthGet.GetOperation { public Fakehealth(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlineadditionalproperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlineadditionalproperties.java index 786c69bf463..600ba72edd3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlineadditionalproperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlineadditionalproperties.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.FakeinlineadditionalpropertiesPost; public class Fakeinlineadditionalproperties extends ApiClient implements - FakeinlineadditionalpropertiesPost.FakeinlineadditionalpropertiesPostOperation + FakeinlineadditionalpropertiesPost.PostOperation { public Fakeinlineadditionalproperties(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlinecomposition.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlinecomposition.java index 0d57ccf3267..694beae690f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlinecomposition.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeinlinecomposition.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeinlinecomposition.FakeinlinecompositionPost; public class Fakeinlinecomposition extends ApiClient implements - FakeinlinecompositionPost.FakeinlinecompositionPostOperation + FakeinlinecompositionPost.PostOperation { public Fakeinlinecomposition(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonformdata.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonformdata.java index 6227e45bac9..aa70adcb670 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonformdata.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonformdata.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakejsonformdata.FakejsonformdataGet; public class Fakejsonformdata extends ApiClient implements - FakejsonformdataGet.FakejsonformdataGetOperation + FakejsonformdataGet.GetOperation { public Fakejsonformdata(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonpatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonpatch.java index c57487f3c7d..373069d8e7e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonpatch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonpatch.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakejsonpatch.FakejsonpatchPatch; public class Fakejsonpatch extends ApiClient implements - FakejsonpatchPatch.FakejsonpatchPatchOperation + FakejsonpatchPatch.PatchOperation { public Fakejsonpatch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonwithcharset.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonwithcharset.java index 9eb98c770f0..abf3406ac4d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonwithcharset.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakejsonwithcharset.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakejsonwithcharset.FakejsonwithcharsetPost; public class Fakejsonwithcharset extends ApiClient implements - FakejsonwithcharsetPost.FakejsonwithcharsetPostOperation + FakejsonwithcharsetPost.PostOperation { public Fakejsonwithcharset(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplerequestbodycontenttypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplerequestbodycontenttypes.java index 627bff34d28..9e1ca236245 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplerequestbodycontenttypes.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplerequestbodycontenttypes.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.FakemultiplerequestbodycontenttypesPost; public class Fakemultiplerequestbodycontenttypes extends ApiClient implements - FakemultiplerequestbodycontenttypesPost.FakemultiplerequestbodycontenttypesPostOperation + FakemultiplerequestbodycontenttypesPost.PostOperation { public Fakemultiplerequestbodycontenttypes(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultipleresponsebodies.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultipleresponsebodies.java index ddacd36f570..91d15710637 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultipleresponsebodies.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultipleresponsebodies.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.FakemultipleresponsebodiesGet; public class Fakemultipleresponsebodies extends ApiClient implements - FakemultipleresponsebodiesGet.FakemultipleresponsebodiesGetOperation + FakemultipleresponsebodiesGet.GetOperation { public Fakemultipleresponsebodies(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplesecurities.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplesecurities.java index 7b1a9a96309..d7cc6cbbcc6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplesecurities.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakemultiplesecurities.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakemultiplesecurities.FakemultiplesecuritiesGet; public class Fakemultiplesecurities extends ApiClient implements - FakemultiplesecuritiesGet.FakemultiplesecuritiesGetOperation + FakemultiplesecuritiesGet.GetOperation { public Fakemultiplesecurities(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeobjinquery.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeobjinquery.java index 27940b0510f..793a01568fd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeobjinquery.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeobjinquery.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeobjinquery.FakeobjinqueryGet; public class Fakeobjinquery extends ApiClient implements - FakeobjinqueryGet.FakeobjinqueryGetOperation + FakeobjinqueryGet.GetOperation { public Fakeobjinquery(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeparametercollisions1ababselfab.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeparametercollisions1ababselfab.java index 8b1b3932af1..8b399939b4c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeparametercollisions1ababselfab.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeparametercollisions1ababselfab.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Fakeparametercollisions1ababselfabPost; public class Fakeparametercollisions1ababselfab extends ApiClient implements - Fakeparametercollisions1ababselfabPost.Fakeparametercollisions1ababselfabPostOperation + Fakeparametercollisions1ababselfabPost.PostOperation { public Fakeparametercollisions1ababselfab(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepemcontenttype.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepemcontenttype.java index c49218da6de..4ca9fe02e9e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepemcontenttype.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepemcontenttype.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakepemcontenttype.FakepemcontenttypeGet; public class Fakepemcontenttype extends ApiClient implements - FakepemcontenttypeGet.FakepemcontenttypeGetOperation + FakepemcontenttypeGet.GetOperation { public Fakepemcontenttype(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepetiduploadimagewithrequiredfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepetiduploadimagewithrequiredfile.java index 4dfeb2d67ee..bbd2557c597 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepetiduploadimagewithrequiredfile.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakepetiduploadimagewithrequiredfile.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.FakepetiduploadimagewithrequiredfilePost; public class Fakepetiduploadimagewithrequiredfile extends ApiClient implements - FakepetiduploadimagewithrequiredfilePost.FakepetiduploadimagewithrequiredfilePostOperation + FakepetiduploadimagewithrequiredfilePost.PostOperation { public Fakepetiduploadimagewithrequiredfile(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakequeryparamwithjsoncontenttype.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakequeryparamwithjsoncontenttype.java index 2d2d33dc263..553ed3c4117 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakequeryparamwithjsoncontenttype.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakequeryparamwithjsoncontenttype.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.FakequeryparamwithjsoncontenttypeGet; public class Fakequeryparamwithjsoncontenttype extends ApiClient implements - FakequeryparamwithjsoncontenttypeGet.FakequeryparamwithjsoncontenttypeGetOperation + FakequeryparamwithjsoncontenttypeGet.GetOperation { public Fakequeryparamwithjsoncontenttype(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeredirection.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeredirection.java index 3c9829f474b..828e7ba3327 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeredirection.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeredirection.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeredirection.FakeredirectionGet; public class Fakeredirection extends ApiClient implements - FakeredirectionGet.FakeredirectionGetOperation + FakeredirectionGet.GetOperation { public Fakeredirection(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefobjinquery.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefobjinquery.java index 251f8a6ca75..15bc931dce8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefobjinquery.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefobjinquery.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefobjinquery.FakerefobjinqueryGet; public class Fakerefobjinquery extends ApiClient implements - FakerefobjinqueryGet.FakerefobjinqueryGetOperation + FakerefobjinqueryGet.GetOperation { public Fakerefobjinquery(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarraymodel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarraymodel.java index cd0a1fd446c..250a772fbc1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarraymodel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarraymodel.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefsarraymodel.FakerefsarraymodelPost; public class Fakerefsarraymodel extends ApiClient implements - FakerefsarraymodelPost.FakerefsarraymodelPostOperation + FakerefsarraymodelPost.PostOperation { public Fakerefsarraymodel(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarrayofenums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarrayofenums.java index 4ef73f4af2f..988912d6318 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarrayofenums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsarrayofenums.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefsarrayofenums.FakerefsarrayofenumsPost; public class Fakerefsarrayofenums extends ApiClient implements - FakerefsarrayofenumsPost.FakerefsarrayofenumsPostOperation + FakerefsarrayofenumsPost.PostOperation { public Fakerefsarrayofenums(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsboolean.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsboolean.java index 34535d603cd..85159625e64 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsboolean.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsboolean.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefsboolean.FakerefsbooleanPost; public class Fakerefsboolean extends ApiClient implements - FakerefsbooleanPost.FakerefsbooleanPostOperation + FakerefsbooleanPost.PostOperation { public Fakerefsboolean(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefscomposedoneofnumberwithvalidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefscomposedoneofnumberwithvalidations.java index 6691b8d8a15..a129e1082de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefscomposedoneofnumberwithvalidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefscomposedoneofnumberwithvalidations.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.FakerefscomposedoneofnumberwithvalidationsPost; public class Fakerefscomposedoneofnumberwithvalidations extends ApiClient implements - FakerefscomposedoneofnumberwithvalidationsPost.FakerefscomposedoneofnumberwithvalidationsPostOperation + FakerefscomposedoneofnumberwithvalidationsPost.PostOperation { public Fakerefscomposedoneofnumberwithvalidations(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsenum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsenum.java index cb4a852888e..8ba08ff3be7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsenum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsenum.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefsenum.FakerefsenumPost; public class Fakerefsenum extends ApiClient implements - FakerefsenumPost.FakerefsenumPostOperation + FakerefsenumPost.PostOperation { public Fakerefsenum(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsmammal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsmammal.java index 7ed9558c5cf..2ccab524251 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsmammal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsmammal.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefsmammal.FakerefsmammalPost; public class Fakerefsmammal extends ApiClient implements - FakerefsmammalPost.FakerefsmammalPostOperation + FakerefsmammalPost.PostOperation { public Fakerefsmammal(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsnumber.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsnumber.java index 53624771c0d..f1427e288f3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsnumber.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsnumber.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefsnumber.FakerefsnumberPost; public class Fakerefsnumber extends ApiClient implements - FakerefsnumberPost.FakerefsnumberPostOperation + FakerefsnumberPost.PostOperation { public Fakerefsnumber(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsobjectmodelwithrefprops.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsobjectmodelwithrefprops.java index da355974eaf..ed6b1aff9fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsobjectmodelwithrefprops.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsobjectmodelwithrefprops.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.FakerefsobjectmodelwithrefpropsPost; public class Fakerefsobjectmodelwithrefprops extends ApiClient implements - FakerefsobjectmodelwithrefpropsPost.FakerefsobjectmodelwithrefpropsPostOperation + FakerefsobjectmodelwithrefpropsPost.PostOperation { public Fakerefsobjectmodelwithrefprops(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsstring.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsstring.java index 06b029fddad..bc6044ae3df 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsstring.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakerefsstring.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakerefsstring.FakerefsstringPost; public class Fakerefsstring extends ApiClient implements - FakerefsstringPost.FakerefsstringPostOperation + FakerefsstringPost.PostOperation { public Fakerefsstring(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeresponsewithoutschema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeresponsewithoutschema.java index 8fe4a1f0335..6219862cf7d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeresponsewithoutschema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeresponsewithoutschema.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.FakeresponsewithoutschemaGet; public class Fakeresponsewithoutschema extends ApiClient implements - FakeresponsewithoutschemaGet.FakeresponsewithoutschemaGetOperation + FakeresponsewithoutschemaGet.GetOperation { public Fakeresponsewithoutschema(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Faketestqueryparamters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Faketestqueryparamters.java index 9ec454c9adb..cc22cfe66be 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Faketestqueryparamters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Faketestqueryparamters.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.faketestqueryparamters.FaketestqueryparamtersPut; public class Faketestqueryparamters extends ApiClient implements - FaketestqueryparamtersPut.FaketestqueryparamtersPutOperation + FaketestqueryparamtersPut.PutOperation { public Faketestqueryparamters(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploaddownloadfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploaddownloadfile.java index 31144e1f7e5..87b8ed880ff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploaddownloadfile.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploaddownloadfile.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.FakeuploaddownloadfilePost; public class Fakeuploaddownloadfile extends ApiClient implements - FakeuploaddownloadfilePost.FakeuploaddownloadfilePostOperation + FakeuploaddownloadfilePost.PostOperation { public Fakeuploaddownloadfile(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfile.java index a05e716499d..8b8f6ce8678 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfile.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfile.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeuploadfile.FakeuploadfilePost; public class Fakeuploadfile extends ApiClient implements - FakeuploadfilePost.FakeuploadfilePostOperation + FakeuploadfilePost.PostOperation { public Fakeuploadfile(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfiles.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfiles.java index 073872527ee..1a95591c6ac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfiles.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakeuploadfiles.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakeuploadfiles.FakeuploadfilesPost; public class Fakeuploadfiles extends ApiClient implements - FakeuploadfilesPost.FakeuploadfilesPostOperation + FakeuploadfilesPost.PostOperation { public Fakeuploadfiles(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakewildcardresponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakewildcardresponses.java index 57f27bd0ff4..7abc3e972d0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakewildcardresponses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Fakewildcardresponses.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.FakewildcardresponsesGet; public class Fakewildcardresponses extends ApiClient implements - FakewildcardresponsesGet.FakewildcardresponsesGetOperation + FakewildcardresponsesGet.GetOperation { public Fakewildcardresponses(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Foo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Foo.java index 5af065e8818..f17acf763b0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Foo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Foo.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.foo.FooGet; public class Foo extends ApiClient implements - FooGet.FooGetOperation + FooGet.GetOperation { public Foo(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Pet.java index c006d00badd..47a158d79f1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Pet.java @@ -7,8 +7,8 @@ import org.openapijsonschematools.client.paths.pet.PetPut; public class Pet extends ApiClient implements - PetPost.PetPostOperation, - PetPut.PetPutOperation + PetPost.PostOperation, + PetPut.PutOperation { public Pet(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbystatus.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbystatus.java index ed24441d5fb..0c4c1996263 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbystatus.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbystatus.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusGet; public class Petfindbystatus extends ApiClient implements - PetfindbystatusGet.PetfindbystatusGetOperation + PetfindbystatusGet.GetOperation { public Petfindbystatus(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbytags.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbytags.java index acf50abb14b..10c9d0081b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbytags.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petfindbytags.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.petfindbytags.PetfindbytagsGet; public class Petfindbytags extends ApiClient implements - PetfindbytagsGet.PetfindbytagsGetOperation + PetfindbytagsGet.GetOperation { public Petfindbytags(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetid.java index 3916478e532..a1fb089c3d3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetid.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetid.java @@ -8,9 +8,9 @@ import org.openapijsonschematools.client.paths.petpetid.PetpetidPost; public class Petpetid extends ApiClient implements - PetpetidDelete.PetpetidDeleteOperation, - PetpetidGet.PetpetidGetOperation, - PetpetidPost.PetpetidPostOperation + PetpetidDelete.DeleteOperation, + PetpetidGet.GetOperation, + PetpetidPost.PostOperation { public Petpetid(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetiduploadimage.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetiduploadimage.java index 8a24f579fac..2e66215c65e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetiduploadimage.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Petpetiduploadimage.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.petpetiduploadimage.PetpetiduploadimagePost; public class Petpetiduploadimage extends ApiClient implements - PetpetiduploadimagePost.PetpetiduploadimagePostOperation + PetpetiduploadimagePost.PostOperation { public Petpetiduploadimage(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Solidus.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Solidus.java index 0fb3e45facd..cf5e430d52a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Solidus.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Solidus.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.solidus.SolidusGet; public class Solidus extends ApiClient implements - SolidusGet.SolidusGetOperation + SolidusGet.GetOperation { public Solidus(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeinventory.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeinventory.java index 282b7afd29b..bcab950278d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeinventory.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeinventory.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.storeinventory.StoreinventoryGet; public class Storeinventory extends ApiClient implements - StoreinventoryGet.StoreinventoryGetOperation + StoreinventoryGet.GetOperation { public Storeinventory(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorder.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorder.java index 9d80f15ee88..e7e03c2bffa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorder.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorder.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.storeorder.StoreorderPost; public class Storeorder extends ApiClient implements - StoreorderPost.StoreorderPostOperation + StoreorderPost.PostOperation { public Storeorder(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorderorderid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorderorderid.java index ac437d1c7c6..4a6c78c4428 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorderorderid.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Storeorderorderid.java @@ -7,8 +7,8 @@ import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidGet; public class Storeorderorderid extends ApiClient implements - StoreorderorderidDelete.StoreorderorderidDeleteOperation, - StoreorderorderidGet.StoreorderorderidGetOperation + StoreorderorderidDelete.DeleteOperation, + StoreorderorderidGet.GetOperation { public Storeorderorderid(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/User.java index 10f8be6811e..d5797033de0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/User.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.user.UserPost; public class User extends ApiClient implements - UserPost.UserPostOperation + UserPost.PostOperation { public User(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewitharray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewitharray.java index a3606f15e38..ad5b8a37613 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewitharray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewitharray.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.usercreatewitharray.UsercreatewitharrayPost; public class Usercreatewitharray extends ApiClient implements - UsercreatewitharrayPost.UsercreatewitharrayPostOperation + UsercreatewitharrayPost.PostOperation { public Usercreatewitharray(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.java index 8e93076b682..e110f8de79b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Usercreatewithlist.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.usercreatewithlist.UsercreatewithlistPost; public class Usercreatewithlist extends ApiClient implements - UsercreatewithlistPost.UsercreatewithlistPostOperation + UsercreatewithlistPost.PostOperation { public Usercreatewithlist(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java index e3a55277bd1..5059623c6d1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogin.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.userlogin.UserloginGet; public class Userlogin extends ApiClient implements - UserloginGet.UserloginGetOperation + UserloginGet.GetOperation { public Userlogin(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java index c49f22c40b0..00de9ce4f8d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userlogout.java @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.userlogout.UserlogoutGet; public class Userlogout extends ApiClient implements - UserlogoutGet.UserlogoutGetOperation + UserlogoutGet.GetOperation { public Userlogout(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java index 0b50eb4f0d0..9fc5cde71ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/apis/paths/Userusername.java @@ -8,9 +8,9 @@ import org.openapijsonschematools.client.paths.userusername.UserusernamePut; public class Userusername extends ApiClient implements - UserusernameDelete.UserusernameDeleteOperation, - UserusernameGet.UserusernameGetOperation, - UserusernamePut.UserusernamePutOperation + UserusernameDelete.DeleteOperation, + UserusernameGet.GetOperation, + UserusernamePut.PutOperation { public Userusername(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); 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 bcab92e2a98..907b7f4b1be 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 @@ -23,11 +23,11 @@ import java.util.Map; public class AnotherfakedummyPatch { - private static class AnotherfakedummyPatchProvider { + private static class PatchProvider { private static final String method = "patch"; public static Responses.EndpointResponse patch( - AnotherfakedummyPatchRequest request, + PatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse patch( } } - public interface AnotherfakedummyPatchOperation { + public interface PatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(AnotherfakedummyPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return AnotherfakedummyPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse model123TestSpecialTags(AnotherfakedummyPatch } } - public static class AnotherfakedummyPatch1 extends ApiClient implements AnotherfakedummyPatchOperation { - public AnotherfakedummyPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Patch extends ApiClient implements AnotherfakedummyPatchOperation { + public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class AnotherfakedummyPatchRequest { + public static class PatchRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public AnotherfakedummyPatchRequest( + public PatchRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public AnotherfakedummyPatchRequest( } } - public static class AnotherfakedummyPatchNullableRequest { + public static class PatchNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 5e3e4ccd2ba..f881eec0f67 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 @@ -23,11 +23,11 @@ import java.util.Map; public class CommonparamsubdirDelete { - private static class CommonparamsubdirDeleteProvider { + private static class DeleteProvider { private static final String method = "delete"; public static Responses.EndpointResponse delete( - CommonparamsubdirDeleteRequest request, + DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -61,12 +61,12 @@ public static Responses.EndpointResponse delete( } } - public interface CommonparamsubdirDeleteOperation { + public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(CommonparamsubdirDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return CommonparamsubdirDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,19 +79,19 @@ default Responses.EndpointResponse deleteCommonParam(CommonparamsubdirDeleteRequ } } - public static class CommonparamsubdirDelete1 extends ApiClient implements CommonparamsubdirDeleteOperation { - public CommonparamsubdirDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Delete extends ApiClient implements CommonparamsubdirDeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class CommonparamsubdirDeleteRequest { + public static class DeleteRequest { public PathParameters.PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public CommonparamsubdirDeleteRequest( + public DeleteRequest( PathParameters.PathParametersMap pathParameters, HeaderParameters.@Nullable HeaderParametersMap headerParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -104,7 +104,7 @@ public CommonparamsubdirDeleteRequest( } } - public static class CommonparamsubdirDeleteNullableRequest { + public static class DeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 5e3d7e031c2..a4a16cd261d 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 @@ -23,11 +23,11 @@ import java.util.Map; public class CommonparamsubdirGet { - private static class CommonparamsubdirGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - CommonparamsubdirGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface CommonparamsubdirGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(CommonparamsubdirGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return CommonparamsubdirGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,19 +80,19 @@ default Responses.EndpointResponse getCommonParam(CommonparamsubdirGetRequest re } } - public static class CommonparamsubdirGet1 extends ApiClient implements CommonparamsubdirGetOperation { - public CommonparamsubdirGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements CommonparamsubdirGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class CommonparamsubdirGetRequest { + public static class GetRequest { public PathParameters.PathParametersMap pathParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public CommonparamsubdirGetRequest( + public GetRequest( PathParameters.PathParametersMap pathParameters, QueryParameters.@Nullable QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -105,7 +105,7 @@ public CommonparamsubdirGetRequest( } } - public static class CommonparamsubdirGetNullableRequest { + public static class GetNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 efaf22f9b92..369f22386fb 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 @@ -23,11 +23,11 @@ import java.util.Map; public class CommonparamsubdirPost { - private static class CommonparamsubdirPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - CommonparamsubdirPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -61,12 +61,12 @@ public static Responses.EndpointResponse post( } } - public interface CommonparamsubdirPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(CommonparamsubdirPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return CommonparamsubdirPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,19 +79,19 @@ default Responses.EndpointResponse postCommonParam(CommonparamsubdirPostRequest } } - public static class CommonparamsubdirPost1 extends ApiClient implements CommonparamsubdirPostOperation { - public CommonparamsubdirPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements CommonparamsubdirPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class CommonparamsubdirPostRequest { + public static class PostRequest { public PathParameters.PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public CommonparamsubdirPostRequest( + public PostRequest( PathParameters.PathParametersMap pathParameters, HeaderParameters.@Nullable HeaderParametersMap headerParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -104,7 +104,7 @@ public CommonparamsubdirPostRequest( } } - public static class CommonparamsubdirPostNullableRequest { + public static class PostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 fcf18e34eeb..05a5bd56a89 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 @@ -26,11 +26,11 @@ import java.util.Map; public class FakeDelete { - private static class FakeDeleteProvider extends AuthApplier { + private static class DeleteProvider extends AuthApplier { private static final String method = "delete"; public static Responses.EndpointResponse delete( - FakeDeleteRequest request, + DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -73,12 +73,12 @@ public static Responses.EndpointResponse delete( } } - public interface FakeDeleteOperation { + public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(FakeDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -91,20 +91,20 @@ default Responses.EndpointResponse groupParameters(FakeDeleteRequest request) th } } - public static class FakeDelete1 extends ApiClient implements FakeDeleteOperation { - public FakeDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Delete extends ApiClient implements FakeDeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeDeleteRequest { + public static class DeleteRequest { public HeaderParameters.HeaderParametersMap headerParameters; public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public FakeDeleteRequest( + public DeleteRequest( HeaderParameters.HeaderParametersMap headerParameters, QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -119,7 +119,7 @@ public FakeDeleteRequest( } } - public static class FakeDeleteNullableRequest { + public static class DeleteNullableRequest { public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 87751f6c6f2..769fc86f0d5 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 @@ -26,11 +26,11 @@ import java.util.Map; public class FakeGet { - private static class FakeGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakeGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -78,12 +78,12 @@ public static Responses.EndpointResponse get( } } - public interface FakeGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -96,13 +96,13 @@ default Responses.EndpointResponse enumParameters(FakeGetRequest request) throws } } - public static class FakeGet1 extends ApiClient implements FakeGetOperation { - public FakeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakeGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeGetRequest { + public static class GetRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; 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 f1f4555178a..94c8b0726da 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakePatch { - private static class FakePatchProvider { + private static class PatchProvider { private static final String method = "patch"; public static Responses.EndpointResponse patch( - FakePatchRequest request, + PatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse patch( } } - public interface FakePatchOperation { + public interface PatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(FakePatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakePatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse clientModel(FakePatchRequest request) throws } } - public static class FakePatch1 extends ApiClient implements FakePatchOperation { - public FakePatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Patch extends ApiClient implements FakePatchOperation { + public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakePatchRequest { + public static class PatchRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FakePatchRequest( + public PatchRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public FakePatchRequest( } } - public static class FakePatchNullableRequest { + public static class PatchNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 a7cc8ea9635..acdd9162e24 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 @@ -26,11 +26,11 @@ import java.util.Map; public class FakePost { - private static class FakePostProvider extends AuthApplier { + private static class PostProvider extends AuthApplier { private static final String method = "post"; public static Responses.EndpointResponse post( - FakePostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -75,12 +75,12 @@ public static Responses.EndpointResponse post( } } - public interface FakePostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -93,13 +93,13 @@ default Responses.EndpointResponse endpointParameters(FakePostRequest request) t } } - public static class FakePost1 extends ApiClient implements FakePostOperation { - public FakePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakePostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakePostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakePostSecurityInfo.@Nullable SecurityIndex securityIndex; 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 efd6ea8ce12..cec0d566367 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakeadditionalpropertieswitharrayofenumsGet { - private static class FakeadditionalpropertieswitharrayofenumsGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakeadditionalpropertieswitharrayofenumsGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface FakeadditionalpropertieswitharrayofenumsGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakeadditionalpropertieswitharrayofenumsGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeadditionalpropertieswitharrayofenumsGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse additionalPropertiesWithArrayOfEnums(Fakeaddi } } - public static class FakeadditionalpropertieswitharrayofenumsGet1 extends ApiClient implements FakeadditionalpropertieswitharrayofenumsGetOperation { - public FakeadditionalpropertieswitharrayofenumsGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakeadditionalpropertieswitharrayofenumsGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeadditionalpropertieswitharrayofenumsGetRequest { + public static class GetRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 00cef76ca5d..bb8f7fea5be 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakebodywithfileschemaPut { - private static class FakebodywithfileschemaPutProvider { + private static class PutProvider { private static final String method = "put"; public static Responses.EndpointResponse put( - FakebodywithfileschemaPutRequest request, + PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse put( } } - public interface FakebodywithfileschemaPutOperation { + public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(FakebodywithfileschemaPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakebodywithfileschemaPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse bodyWithFileSchema(FakebodywithfileschemaPutR } } - public static class FakebodywithfileschemaPut1 extends ApiClient implements FakebodywithfileschemaPutOperation { - public FakebodywithfileschemaPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Put extends ApiClient implements FakebodywithfileschemaPutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakebodywithfileschemaPutRequest { + public static class PutRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FakebodywithfileschemaPutRequest( + public PutRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public FakebodywithfileschemaPutRequest( } } - public static class FakebodywithfileschemaPutNullableRequest { + public static class PutNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 aa7c90fa7a6..205804c8c8b 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 @@ -25,11 +25,11 @@ import java.util.Map; public class FakebodywithqueryparamsPut { - private static class FakebodywithqueryparamsPutProvider { + private static class PutProvider { private static final String method = "put"; public static Responses.EndpointResponse put( - FakebodywithqueryparamsPutRequest request, + PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -64,12 +64,12 @@ public static Responses.EndpointResponse put( } } - public interface FakebodywithqueryparamsPutOperation { + public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(FakebodywithqueryparamsPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakebodywithqueryparamsPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -82,19 +82,19 @@ default Responses.EndpointResponse bodyWithQueryParams(FakebodywithqueryparamsPu } } - public static class FakebodywithqueryparamsPut1 extends ApiClient implements FakebodywithqueryparamsPutOperation { - public FakebodywithqueryparamsPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Put extends ApiClient implements FakebodywithqueryparamsPutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakebodywithqueryparamsPutRequest { + public static class PutRequest { public RequestBody.SealedRequestBody requestBody; public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FakebodywithqueryparamsPutRequest( + public PutRequest( RequestBody.SealedRequestBody requestBody, QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -107,7 +107,7 @@ public FakebodywithqueryparamsPutRequest( } } - public static class FakebodywithqueryparamsPutNullableRequest { + public static class PutNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 e503af1118e..4787efe890f 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 @@ -22,11 +22,11 @@ import java.util.Map; public class FakecasesensitiveparamsPut { - private static class FakecasesensitiveparamsPutProvider { + private static class PutProvider { private static final String method = "put"; public static Responses.EndpointResponse put( - FakecasesensitiveparamsPutRequest request, + PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -55,12 +55,12 @@ public static Responses.EndpointResponse put( } } - public interface FakecasesensitiveparamsPutOperation { + public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(FakecasesensitiveparamsPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakecasesensitiveparamsPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -73,18 +73,18 @@ default Responses.EndpointResponse caseSensitiveParams(FakecasesensitiveparamsPu } } - public static class FakecasesensitiveparamsPut1 extends ApiClient implements FakecasesensitiveparamsPutOperation { - public FakecasesensitiveparamsPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Put extends ApiClient implements FakecasesensitiveparamsPutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakecasesensitiveparamsPutRequest { + public static class PutRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FakecasesensitiveparamsPutRequest( + public PutRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -95,7 +95,7 @@ public FakecasesensitiveparamsPutRequest( } } - public static class FakecasesensitiveparamsPutNullableRequest { + public static class PutNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 fa54b96c92c..c2239b841ea 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 @@ -26,11 +26,11 @@ import java.util.Map; public class FakeclassnametestPatch { - private static class FakeclassnametestPatchProvider extends AuthApplier { + private static class PatchProvider extends AuthApplier { private static final String method = "patch"; public static Responses.EndpointResponse patch( - FakeclassnametestPatchRequest request, + PatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -71,12 +71,12 @@ public static Responses.EndpointResponse patch( } } - public interface FakeclassnametestPatchOperation { + public interface PatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(FakeclassnametestPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeclassnametestPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -89,19 +89,19 @@ default Responses.EndpointResponse classname(FakeclassnametestPatchRequest reque } } - public static class FakeclassnametestPatch1 extends ApiClient implements FakeclassnametestPatchOperation { - public FakeclassnametestPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Patch extends ApiClient implements FakeclassnametestPatchOperation { + public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeclassnametestPatchRequest { + public static class PatchRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public FakeclassnametestPatchRequest( + public PatchRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -114,7 +114,7 @@ public FakeclassnametestPatchRequest( } } - public static class FakeclassnametestPatchNullableRequest { + public static class PatchNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; 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 00995f052b7..bc10d44b48e 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 @@ -22,11 +22,11 @@ import java.util.Map; public class FakedeletecoffeeidDelete { - private static class FakedeletecoffeeidDeleteProvider { + private static class DeleteProvider { private static final String method = "delete"; public static Responses.EndpointResponse delete( - FakedeletecoffeeidDeleteRequest request, + DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Responses.EndpointResponse delete( } } - public interface FakedeletecoffeeidDeleteOperation { + public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(FakedeletecoffeeidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakedeletecoffeeidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -72,18 +72,18 @@ default Responses.EndpointResponse deleteCoffee(FakedeletecoffeeidDeleteRequest } } - public static class FakedeletecoffeeidDelete1 extends ApiClient implements FakedeletecoffeeidDeleteOperation { - public FakedeletecoffeeidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Delete extends ApiClient implements FakedeletecoffeeidDeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakedeletecoffeeidDeleteRequest { + public static class DeleteRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FakedeletecoffeeidDeleteRequest( + public DeleteRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,7 +94,7 @@ public FakedeletecoffeeidDeleteRequest( } } - public static class FakedeletecoffeeidDeleteNullableRequest { + public static class DeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 b4a005f57e0..70eabf2902d 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 @@ -20,11 +20,11 @@ import java.util.Map; public class FakehealthGet { - private static class FakehealthGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakehealthGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface FakehealthGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakehealthGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakehealthGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,13 +67,13 @@ default Responses.EndpointResponse fakeHealthGet(FakehealthGetRequest request) t } } - public static class FakehealthGet1 extends ApiClient implements FakehealthGetOperation { - public FakehealthGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakehealthGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakehealthGetRequest { + public static class GetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } 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 35c6dfc2000..499944a9824 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakeinlineadditionalpropertiesPost { - private static class FakeinlineadditionalpropertiesPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakeinlineadditionalpropertiesPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface FakeinlineadditionalpropertiesPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakeinlineadditionalpropertiesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeinlineadditionalpropertiesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse inlineAdditionalProperties(Fakeinlineaddition } } - public static class FakeinlineadditionalpropertiesPost1 extends ApiClient implements FakeinlineadditionalpropertiesPostOperation { - public FakeinlineadditionalpropertiesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakeinlineadditionalpropertiesPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeinlineadditionalpropertiesPostRequest { + public static class PostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FakeinlineadditionalpropertiesPostRequest( + public PostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public FakeinlineadditionalpropertiesPostRequest( } } - public static class FakeinlineadditionalpropertiesPostNullableRequest { + public static class PostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 010862383ba..a477d79d60e 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 @@ -25,11 +25,11 @@ import java.util.Map; public class FakeinlinecompositionPost { - private static class FakeinlinecompositionPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakeinlinecompositionPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -71,12 +71,12 @@ public static Responses.EndpointResponse post( } } - public interface FakeinlinecompositionPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakeinlinecompositionPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeinlinecompositionPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -89,13 +89,13 @@ default Responses.EndpointResponse inlineComposition(FakeinlinecompositionPostRe } } - public static class FakeinlinecompositionPost1 extends ApiClient implements FakeinlinecompositionPostOperation { - public FakeinlinecompositionPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakeinlinecompositionPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeinlinecompositionPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 1582705f1f3..37ca83a1972 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakejsonformdataGet { - private static class FakejsonformdataGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakejsonformdataGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface FakejsonformdataGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakejsonformdataGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakejsonformdataGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse jsonFormData(FakejsonformdataGetRequest reque } } - public static class FakejsonformdataGet1 extends ApiClient implements FakejsonformdataGetOperation { - public FakejsonformdataGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakejsonformdataGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakejsonformdataGetRequest { + public static class GetRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 50a93b5f8ac..b5e807cf466 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakejsonpatchPatch { - private static class FakejsonpatchPatchProvider { + private static class PatchProvider { private static final String method = "patch"; public static Responses.EndpointResponse patch( - FakejsonpatchPatchRequest request, + PatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse patch( } } - public interface FakejsonpatchPatchOperation { + public interface PatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(FakejsonpatchPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakejsonpatchPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse jsonPatch(FakejsonpatchPatchRequest request) } } - public static class FakejsonpatchPatch1 extends ApiClient implements FakejsonpatchPatchOperation { - public FakejsonpatchPatch1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Patch extends ApiClient implements FakejsonpatchPatchOperation { + public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakejsonpatchPatchRequest { + public static class PatchRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 366213568d9..5651005799c 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakejsonwithcharsetPost { - private static class FakejsonwithcharsetPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakejsonwithcharsetPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakejsonwithcharsetPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakejsonwithcharsetPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakejsonwithcharsetPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse jsonWithCharset(FakejsonwithcharsetPostReques } } - public static class FakejsonwithcharsetPost1 extends ApiClient implements FakejsonwithcharsetPostOperation { - public FakejsonwithcharsetPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakejsonwithcharsetPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakejsonwithcharsetPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 de2eb619369..5540dfcf9d6 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakemultiplerequestbodycontenttypesPost { - private static class FakemultiplerequestbodycontenttypesPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakemultiplerequestbodycontenttypesPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakemultiplerequestbodycontenttypesPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakemultiplerequestbodycontenttypesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakemultiplerequestbodycontenttypesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse multipleRequestBodyContentTypes(Fakemultipler } } - public static class FakemultiplerequestbodycontenttypesPost1 extends ApiClient implements FakemultiplerequestbodycontenttypesPostOperation { - public FakemultiplerequestbodycontenttypesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakemultiplerequestbodycontenttypesPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakemultiplerequestbodycontenttypesPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 23be32a48b3..3e7c0092cd3 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 @@ -20,11 +20,11 @@ import java.util.Map; public class FakemultipleresponsebodiesGet { - private static class FakemultipleresponsebodiesGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakemultipleresponsebodiesGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface FakemultipleresponsebodiesGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakemultipleresponsebodiesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakemultipleresponsebodiesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,13 +67,13 @@ default Responses.EndpointResponse multipleResponseBodies(Fakemultipleresponsebo } } - public static class FakemultipleresponsebodiesGet1 extends ApiClient implements FakemultipleresponsebodiesGetOperation { - public FakemultipleresponsebodiesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakemultipleresponsebodiesGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakemultipleresponsebodiesGetRequest { + public static class GetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } 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 af8430c04f0..97b1e903dad 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakemultiplesecuritiesGet { - private static class FakemultiplesecuritiesGetProvider extends AuthApplier { + private static class GetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - FakemultiplesecuritiesGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface FakemultiplesecuritiesGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakemultiplesecuritiesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakemultiplesecuritiesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse multipleSecurities(FakemultiplesecuritiesGetR } } - public static class FakemultiplesecuritiesGet1 extends ApiClient implements FakemultiplesecuritiesGetOperation { - public FakemultiplesecuritiesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakemultiplesecuritiesGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakemultiplesecuritiesGetRequest { + public static class GetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public FakemultiplesecuritiesGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; 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 333dc9de657..674f7e69998 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 @@ -22,11 +22,11 @@ import java.util.Map; public class FakeobjinqueryGet { - private static class FakeobjinqueryGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakeobjinqueryGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse get( } } - public interface FakeobjinqueryGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakeobjinqueryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeobjinqueryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,13 +76,13 @@ default Responses.EndpointResponse objectInQuery(FakeobjinqueryGetRequest reques } } - public static class FakeobjinqueryGet1 extends ApiClient implements FakeobjinqueryGetOperation { - public FakeobjinqueryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakeobjinqueryGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeobjinqueryGetRequest { + public static class GetRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 5256052326d..781c59a0e0e 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 @@ -28,11 +28,11 @@ import java.util.Map; public class Fakeparametercollisions1ababselfabPost { - private static class Fakeparametercollisions1ababselfabPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - Fakeparametercollisions1ababselfabPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -90,12 +90,12 @@ public static Responses.EndpointResponse post( } } - public interface Fakeparametercollisions1ababselfabPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(Fakeparametercollisions1ababselfabPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return Fakeparametercollisions1ababselfabPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -108,13 +108,13 @@ default Responses.EndpointResponse parameterCollisions(Fakeparametercollisions1a } } - public static class Fakeparametercollisions1ababselfabPost1 extends ApiClient implements Fakeparametercollisions1ababselfabPostOperation { - public Fakeparametercollisions1ababselfabPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements Fakeparametercollisions1ababselfabPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class Fakeparametercollisions1ababselfabPostRequest { + public static class PostRequest { public PathParameters.PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; @@ -123,7 +123,7 @@ public static class Fakeparametercollisions1ababselfabPostRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public Fakeparametercollisions1ababselfabPostRequest( + public PostRequest( PathParameters.PathParametersMap pathParameters, RequestBody.@Nullable SealedRequestBody requestBody, HeaderParameters.@Nullable HeaderParametersMap headerParameters, @@ -142,7 +142,7 @@ public Fakeparametercollisions1ababselfabPostRequest( } } - public static class Fakeparametercollisions1ababselfabPostNullableRequest { + public static class PostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; 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 7550547424b..fe13e49f4d9 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakepemcontenttypeGet { - private static class FakepemcontenttypeGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakepemcontenttypeGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface FakepemcontenttypeGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakepemcontenttypeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakepemcontenttypeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse pemContentType(FakepemcontenttypeGetRequest r } } - public static class FakepemcontenttypeGet1 extends ApiClient implements FakepemcontenttypeGetOperation { - public FakepemcontenttypeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakepemcontenttypeGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakepemcontenttypeGetRequest { + public static class GetRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 c8236e4831e..792d08a7628 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 @@ -28,11 +28,11 @@ import java.util.Map; public class FakepetiduploadimagewithrequiredfilePost { - private static class FakepetiduploadimagewithrequiredfilePostProvider extends AuthApplier { + private static class PostProvider extends AuthApplier { private static final String method = "post"; public static Responses.EndpointResponse post( - FakepetiduploadimagewithrequiredfilePostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -80,12 +80,12 @@ public static Responses.EndpointResponse post( } } - public interface FakepetiduploadimagewithrequiredfilePostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakepetiduploadimagewithrequiredfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakepetiduploadimagewithrequiredfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -98,20 +98,20 @@ default Responses.EndpointResponse uploadFileWithRequiredFile(Fakepetiduploadima } } - public static class FakepetiduploadimagewithrequiredfilePost1 extends ApiClient implements FakepetiduploadimagewithrequiredfilePostOperation { - public FakepetiduploadimagewithrequiredfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakepetiduploadimagewithrequiredfilePostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakepetiduploadimagewithrequiredfilePostRequest { + public static class PostRequest { public PathParameters.PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public FakepetiduploadimagewithrequiredfilePostRequest( + public PostRequest( PathParameters.PathParametersMap pathParameters, RequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -126,7 +126,7 @@ public FakepetiduploadimagewithrequiredfilePostRequest( } } - public static class FakepetiduploadimagewithrequiredfilePostNullableRequest { + public static class PostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 c96ab6c2dda..ee618b52667 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 @@ -22,11 +22,11 @@ import java.util.Map; public class FakequeryparamwithjsoncontenttypeGet { - private static class FakequeryparamwithjsoncontenttypeGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakequeryparamwithjsoncontenttypeGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -55,12 +55,12 @@ public static Responses.EndpointResponse get( } } - public interface FakequeryparamwithjsoncontenttypeGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakequeryparamwithjsoncontenttypeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakequeryparamwithjsoncontenttypeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -73,18 +73,18 @@ default Responses.EndpointResponse queryParamWithJsonContentType(Fakequeryparamw } } - public static class FakequeryparamwithjsoncontenttypeGet1 extends ApiClient implements FakequeryparamwithjsoncontenttypeGetOperation { - public FakequeryparamwithjsoncontenttypeGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakequeryparamwithjsoncontenttypeGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakequeryparamwithjsoncontenttypeGetRequest { + public static class GetRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FakequeryparamwithjsoncontenttypeGetRequest( + public GetRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -95,7 +95,7 @@ public FakequeryparamwithjsoncontenttypeGetRequest( } } - public static class FakequeryparamwithjsoncontenttypeGetNullableRequest { + public static class GetNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 806d1216984..cf0fbff8f1b 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 @@ -20,11 +20,11 @@ import java.util.Map; public class FakeredirectionGet { - private static class FakeredirectionGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakeredirectionGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface FakeredirectionGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakeredirectionGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeredirectionGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,13 +67,13 @@ default Responses.EndpointResponse redirection(FakeredirectionGetRequest request } } - public static class FakeredirectionGet1 extends ApiClient implements FakeredirectionGetOperation { - public FakeredirectionGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakeredirectionGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeredirectionGetRequest { + public static class GetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } 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 7f5b80b0fd6..ccd206155b1 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 @@ -22,11 +22,11 @@ import java.util.Map; public class FakerefobjinqueryGet { - private static class FakerefobjinqueryGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakerefobjinqueryGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse get( } } - public interface FakerefobjinqueryGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakerefobjinqueryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefobjinqueryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,13 +76,13 @@ default Responses.EndpointResponse refObjectInQuery(FakerefobjinqueryGetRequest } } - public static class FakerefobjinqueryGet1 extends ApiClient implements FakerefobjinqueryGetOperation { - public FakerefobjinqueryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakerefobjinqueryGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefobjinqueryGetRequest { + public static class GetRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 aee518fc962..1a4d371d1c9 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakerefsarraymodelPost { - private static class FakerefsarraymodelPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakerefsarraymodelPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakerefsarraymodelPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakerefsarraymodelPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsarraymodelPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse arrayModel(FakerefsarraymodelPostRequest requ } } - public static class FakerefsarraymodelPost1 extends ApiClient implements FakerefsarraymodelPostOperation { - public FakerefsarraymodelPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakerefsarraymodelPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefsarraymodelPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 ba5e96388fc..b98b7de12ba 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakerefsarrayofenumsPost { - private static class FakerefsarrayofenumsPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakerefsarrayofenumsPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakerefsarrayofenumsPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakerefsarrayofenumsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsarrayofenumsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse arrayOfEnums(FakerefsarrayofenumsPostRequest } } - public static class FakerefsarrayofenumsPost1 extends ApiClient implements FakerefsarrayofenumsPostOperation { - public FakerefsarrayofenumsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakerefsarrayofenumsPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefsarrayofenumsPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 d393fd88ccd..c123dc5dc41 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakerefsbooleanPost { - private static class FakerefsbooleanPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakerefsbooleanPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakerefsbooleanPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakerefsbooleanPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsbooleanPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse modelBoolean(FakerefsbooleanPostRequest reque } } - public static class FakerefsbooleanPost1 extends ApiClient implements FakerefsbooleanPostOperation { - public FakerefsbooleanPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakerefsbooleanPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefsbooleanPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 a0e9fbda1d4..5b618b326cd 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakerefscomposedoneofnumberwithvalidationsPost { - private static class FakerefscomposedoneofnumberwithvalidationsPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakerefscomposedoneofnumberwithvalidationsPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakerefscomposedoneofnumberwithvalidationsPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakerefscomposedoneofnumberwithvalidationsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefscomposedoneofnumberwithvalidationsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse composedOneOfDifferentTypes(Fakerefscomposedo } } - public static class FakerefscomposedoneofnumberwithvalidationsPost1 extends ApiClient implements FakerefscomposedoneofnumberwithvalidationsPostOperation { - public FakerefscomposedoneofnumberwithvalidationsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakerefscomposedoneofnumberwithvalidationsPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefscomposedoneofnumberwithvalidationsPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 eaa666330a2..94504e022a4 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakerefsenumPost { - private static class FakerefsenumPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakerefsenumPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakerefsenumPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakerefsenumPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsenumPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse stringEnum(FakerefsenumPostRequest request) t } } - public static class FakerefsenumPost1 extends ApiClient implements FakerefsenumPostOperation { - public FakerefsenumPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakerefsenumPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefsenumPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 dedb25bfec9..e518edca57f 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakerefsmammalPost { - private static class FakerefsmammalPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakerefsmammalPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface FakerefsmammalPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakerefsmammalPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsmammalPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse mammal(FakerefsmammalPostRequest request) thr } } - public static class FakerefsmammalPost1 extends ApiClient implements FakerefsmammalPostOperation { - public FakerefsmammalPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakerefsmammalPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefsmammalPostRequest { + public static class PostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FakerefsmammalPostRequest( + public PostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public FakerefsmammalPostRequest( } } - public static class FakerefsmammalPostNullableRequest { + public static class PostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 fe55ff8fced..82746d0b265 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakerefsnumberPost { - private static class FakerefsnumberPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakerefsnumberPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakerefsnumberPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakerefsnumberPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsnumberPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse numberWithValidations(FakerefsnumberPostReque } } - public static class FakerefsnumberPost1 extends ApiClient implements FakerefsnumberPostOperation { - public FakerefsnumberPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakerefsnumberPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefsnumberPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 cd4c60c03a3..24eed159a21 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakerefsobjectmodelwithrefpropsPost { - private static class FakerefsobjectmodelwithrefpropsPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakerefsobjectmodelwithrefpropsPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakerefsobjectmodelwithrefpropsPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakerefsobjectmodelwithrefpropsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsobjectmodelwithrefpropsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse objectModelWithRefProps(Fakerefsobjectmodelwi } } - public static class FakerefsobjectmodelwithrefpropsPost1 extends ApiClient implements FakerefsobjectmodelwithrefpropsPostOperation { - public FakerefsobjectmodelwithrefpropsPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakerefsobjectmodelwithrefpropsPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefsobjectmodelwithrefpropsPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 8e5b2ca7e9a..be9b7386abd 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakerefsstringPost { - private static class FakerefsstringPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakerefsstringPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakerefsstringPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakerefsstringPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsstringPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse modelString(FakerefsstringPostRequest request } } - public static class FakerefsstringPost1 extends ApiClient implements FakerefsstringPostOperation { - public FakerefsstringPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakerefsstringPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakerefsstringPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 d686f4d1ef0..475cf4e43ca 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 @@ -20,11 +20,11 @@ import java.util.Map; public class FakeresponsewithoutschemaGet { - private static class FakeresponsewithoutschemaGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakeresponsewithoutschemaGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface FakeresponsewithoutschemaGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakeresponsewithoutschemaGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeresponsewithoutschemaGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,13 +67,13 @@ default Responses.EndpointResponse responseWithoutSchema(Fakeresponsewithoutsche } } - public static class FakeresponsewithoutschemaGet1 extends ApiClient implements FakeresponsewithoutschemaGetOperation { - public FakeresponsewithoutschemaGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakeresponsewithoutschemaGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeresponsewithoutschemaGetRequest { + public static class GetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } 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 b013415ef1a..4f2092dccec 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 @@ -22,11 +22,11 @@ import java.util.Map; public class FaketestqueryparamtersPut { - private static class FaketestqueryparamtersPutProvider { + private static class PutProvider { private static final String method = "put"; public static Responses.EndpointResponse put( - FaketestqueryparamtersPutRequest request, + PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -55,12 +55,12 @@ public static Responses.EndpointResponse put( } } - public interface FaketestqueryparamtersPutOperation { + public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(FaketestqueryparamtersPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FaketestqueryparamtersPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -73,18 +73,18 @@ default Responses.EndpointResponse queryParameterCollectionFormat(Faketestqueryp } } - public static class FaketestqueryparamtersPut1 extends ApiClient implements FaketestqueryparamtersPutOperation { - public FaketestqueryparamtersPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Put extends ApiClient implements FaketestqueryparamtersPutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FaketestqueryparamtersPutRequest { + public static class PutRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FaketestqueryparamtersPutRequest( + public PutRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -95,7 +95,7 @@ public FaketestqueryparamtersPutRequest( } } - public static class FaketestqueryparamtersPutNullableRequest { + public static class PutNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 9eab0b34377..ce5d94ced0e 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakeuploaddownloadfilePost { - private static class FakeuploaddownloadfilePostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakeuploaddownloadfilePostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface FakeuploaddownloadfilePostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakeuploaddownloadfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeuploaddownloadfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse uploadDownloadFile(FakeuploaddownloadfilePost } } - public static class FakeuploaddownloadfilePost1 extends ApiClient implements FakeuploaddownloadfilePostOperation { - public FakeuploaddownloadfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakeuploaddownloadfilePostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeuploaddownloadfilePostRequest { + public static class PostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public FakeuploaddownloadfilePostRequest( + public PostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public FakeuploaddownloadfilePostRequest( } } - public static class FakeuploaddownloadfilePostNullableRequest { + public static class PostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 080c030d310..2787525dcce 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakeuploadfilePost { - private static class FakeuploadfilePostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakeuploadfilePostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakeuploadfilePostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakeuploadfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeuploadfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse uploadFile(FakeuploadfilePostRequest request) } } - public static class FakeuploadfilePost1 extends ApiClient implements FakeuploadfilePostOperation { - public FakeuploadfilePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakeuploadfilePostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeuploadfilePostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 39266d09711..ed81ca94f3d 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 @@ -23,11 +23,11 @@ import java.util.Map; public class FakeuploadfilesPost { - private static class FakeuploadfilesPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - FakeuploadfilesPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse post( } } - public interface FakeuploadfilesPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(FakeuploadfilesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeuploadfilesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse uploadFiles(FakeuploadfilesPostRequest reques } } - public static class FakeuploadfilesPost1 extends ApiClient implements FakeuploadfilesPostOperation { - public FakeuploadfilesPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements FakeuploadfilesPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakeuploadfilesPostRequest { + public static class PostRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 6de89e90e9f..31d7095501e 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 @@ -20,11 +20,11 @@ import java.util.Map; public class FakewildcardresponsesGet { - private static class FakewildcardresponsesGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FakewildcardresponsesGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface FakewildcardresponsesGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(FakewildcardresponsesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakewildcardresponsesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,13 +67,13 @@ default Responses.EndpointResponse wildCardResponses(FakewildcardresponsesGetReq } } - public static class FakewildcardresponsesGet1 extends ApiClient implements FakewildcardresponsesGetOperation { - public FakewildcardresponsesGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FakewildcardresponsesGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FakewildcardresponsesGetRequest { + public static class GetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } 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 index e46e413cd44..be60e6ed5ad 100644 --- 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 @@ -20,11 +20,11 @@ import java.util.Map; public class FooGet { - private static class FooGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - FooGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,22 +49,31 @@ public static Responses.EndpointResponse get( } } + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Responses.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 Responses.EndpointResponse get(FooGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default Responses.EndpointResponse fooGet(FooGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return FooGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - public static class FooGet1 extends ApiClient implements FooGetOperation { - public FooGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements FooGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class FooGetRequest { + public static class GetRequest { public FooGetServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } 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 fa96e85ece6..7c124ef108c 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 @@ -26,11 +26,11 @@ import java.util.Map; public class PetPost { - private static class PetPostProvider extends AuthApplier { + private static class PostProvider extends AuthApplier { private static final String method = "post"; public static Responses.EndpointResponse post( - PetPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -71,12 +71,12 @@ public static Responses.EndpointResponse post( } } - public interface PetPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PetPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -89,19 +89,19 @@ default Responses.EndpointResponse addPet(PetPostRequest request) throws IOExcep } } - public static class PetPost1 extends ApiClient implements PetPostOperation { - public PetPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements PetPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PetPostRequest { + public static class PostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PetPostRequest( + public PostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetPostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -114,7 +114,7 @@ public PetPostRequest( } } - public static class PetPostNullableRequest { + public static class PostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; 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 97a90a080be..edcb1b99f32 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 @@ -26,11 +26,11 @@ import java.util.Map; public class PetPut { - private static class PetPutProvider extends AuthApplier { + private static class PutProvider extends AuthApplier { private static final String method = "put"; public static Void put( - PetPutRequest request, + PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -71,12 +71,12 @@ public static Void put( } } - public interface PetPutOperation { + public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void put(PetPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -89,19 +89,19 @@ default Void updatePet(PetPutRequest request) throws IOException, InterruptedExc } } - public static class PetPut1 extends ApiClient implements PetPutOperation { - public PetPut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Put extends ApiClient implements PetPutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PetPutRequest { + public static class PutRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PetPutRequest( + public PutRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetPutSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -114,7 +114,7 @@ public PetPutRequest( } } - public static class PetPutNullableRequest { + public static class PutNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; 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 8300c6cd4c5..08328d17de4 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 @@ -25,11 +25,11 @@ import java.util.Map; public class PetfindbystatusGet { - private static class PetfindbystatusGetProvider extends AuthApplier { + private static class GetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - PetfindbystatusGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -68,12 +68,12 @@ public static Responses.EndpointResponse get( } } - public interface PetfindbystatusGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(PetfindbystatusGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetfindbystatusGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -86,19 +86,19 @@ default Responses.EndpointResponse findPetsByStatus(PetfindbystatusGetRequest re } } - public static class PetfindbystatusGet1 extends ApiClient implements PetfindbystatusGetOperation { - public PetfindbystatusGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements PetfindbystatusGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PetfindbystatusGetRequest { + public static class GetRequest { public QueryParameters.QueryParametersMap queryParameters; public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PetfindbystatusGetRequest( + public GetRequest( QueryParameters.QueryParametersMap queryParameters, PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex, PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -111,7 +111,7 @@ public PetfindbystatusGetRequest( } } - public static class PetfindbystatusGetNullableRequest { + public static class GetNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; 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 067e55449c9..f0dcd084c1c 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 @@ -25,11 +25,11 @@ import java.util.Map; public class PetfindbytagsGet { - private static class PetfindbytagsGetProvider extends AuthApplier { + private static class GetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - PetfindbytagsGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -68,12 +68,12 @@ public static Responses.EndpointResponse get( } } - public interface PetfindbytagsGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(PetfindbytagsGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetfindbytagsGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -86,19 +86,19 @@ default Responses.EndpointResponse findPetsByTags(PetfindbytagsGetRequest reques } } - public static class PetfindbytagsGet1 extends ApiClient implements PetfindbytagsGetOperation { - public PetfindbytagsGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements PetfindbytagsGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PetfindbytagsGetRequest { + public static class GetRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PetfindbytagsGetRequest( + public GetRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -111,7 +111,7 @@ public PetfindbytagsGetRequest( } } - public static class PetfindbytagsGetNullableRequest { + public static class GetNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; 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 f679abea44e..4b5193db9f6 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 @@ -26,11 +26,11 @@ import java.util.Map; public class PetpetidDelete { - private static class PetpetidDeleteProvider extends AuthApplier { + private static class DeleteProvider extends AuthApplier { private static final String method = "delete"; public static Void delete( - PetpetidDeleteRequest request, + DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -74,12 +74,12 @@ public static Void delete( } } - public interface PetpetidDeleteOperation { + public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void delete(PetpetidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetpetidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -92,20 +92,20 @@ default Void deletePet(PetpetidDeleteRequest request) throws IOException, Interr } } - public static class PetpetidDelete1 extends ApiClient implements PetpetidDeleteOperation { - public PetpetidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Delete extends ApiClient implements PetpetidDeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PetpetidDeleteRequest { + public static class DeleteRequest { public PathParameters.PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PetpetidDeleteRequest( + public DeleteRequest( PathParameters.PathParametersMap pathParameters, HeaderParameters.@Nullable HeaderParametersMap headerParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -120,7 +120,7 @@ public PetpetidDeleteRequest( } } - public static class PetpetidDeleteNullableRequest { + public static class DeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 481e319741f..52070a5d3b6 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 @@ -25,11 +25,11 @@ import java.util.Map; public class PetpetidGet { - private static class PetpetidGetProvider extends AuthApplier { + private static class GetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - PetpetidGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -67,12 +67,12 @@ public static Responses.EndpointResponse get( } } - public interface PetpetidGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(PetpetidGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetpetidGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -85,19 +85,19 @@ default Responses.EndpointResponse getPetById(PetpetidGetRequest request) throws } } - public static class PetpetidGet1 extends ApiClient implements PetpetidGetOperation { - public PetpetidGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements PetpetidGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PetpetidGetRequest { + public static class GetRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PetpetidGetRequest( + public GetRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -110,7 +110,7 @@ public PetpetidGetRequest( } } - public static class PetpetidGetNullableRequest { + public static class GetNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; 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 f3d49175458..90275ba13a5 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 @@ -28,11 +28,11 @@ import java.util.Map; public class PetpetidPost { - private static class PetpetidPostProvider extends AuthApplier { + private static class PostProvider extends AuthApplier { private static final String method = "post"; public static Void post( - PetpetidPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -80,12 +80,12 @@ public static Void post( } } - public interface PetpetidPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void post(PetpetidPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetpetidPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -98,20 +98,20 @@ default Void updatePetWithForm(PetpetidPostRequest request) throws IOException, } } - public static class PetpetidPost1 extends ApiClient implements PetpetidPostOperation { - public PetpetidPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements PetpetidPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PetpetidPostRequest { + public static class PostRequest { public PathParameters.PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PetpetidPostRequest( + public PostRequest( PathParameters.PathParametersMap pathParameters, RequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -126,7 +126,7 @@ public PetpetidPostRequest( } } - public static class PetpetidPostNullableRequest { + public static class PostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 ad8a36d2d65..866b701c8fd 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 @@ -28,11 +28,11 @@ import java.util.Map; public class PetpetiduploadimagePost { - private static class PetpetiduploadimagePostProvider extends AuthApplier { + private static class PostProvider extends AuthApplier { private static final String method = "post"; public static Responses.EndpointResponse post( - PetpetiduploadimagePostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -80,12 +80,12 @@ public static Responses.EndpointResponse post( } } - public interface PetpetiduploadimagePostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PetpetiduploadimagePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetpetiduploadimagePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -98,20 +98,20 @@ default Responses.EndpointResponse uploadImage(PetpetiduploadimagePostRequest re } } - public static class PetpetiduploadimagePost1 extends ApiClient implements PetpetiduploadimagePostOperation { - public PetpetiduploadimagePost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements PetpetiduploadimagePostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class PetpetiduploadimagePostRequest { + public static class PostRequest { public PathParameters.PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; - public PetpetiduploadimagePostRequest( + public PostRequest( PathParameters.PathParametersMap pathParameters, RequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -126,7 +126,7 @@ public PetpetiduploadimagePostRequest( } } - public static class PetpetiduploadimagePostNullableRequest { + public static class PostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; 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 fbcf38e99e0..fefb1971976 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 @@ -20,11 +20,11 @@ import java.util.Map; public class SolidusGet { - private static class SolidusGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - SolidusGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface SolidusGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(SolidusGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return SolidusGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,13 +67,13 @@ default Responses.EndpointResponse slashRoute(SolidusGetRequest request) throws } } - public static class SolidusGet1 extends ApiClient implements SolidusGetOperation { - public SolidusGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements SolidusGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class SolidusGetRequest { + public static class GetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } 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 f771ae062a9..93ab6d8c1a8 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 @@ -23,11 +23,11 @@ import java.util.Map; public class StoreinventoryGet { - private static class StoreinventoryGetProvider extends AuthApplier { + private static class GetProvider extends AuthApplier { private static final String method = "get"; public static Responses.EndpointResponse get( - StoreinventoryGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -62,12 +62,12 @@ public static Responses.EndpointResponse get( } } - public interface StoreinventoryGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(StoreinventoryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return StoreinventoryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,13 +80,13 @@ default Responses.EndpointResponse getInventory(StoreinventoryGetRequest request } } - public static class StoreinventoryGet1 extends ApiClient implements StoreinventoryGetOperation { - public StoreinventoryGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements StoreinventoryGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class StoreinventoryGetRequest { + public static class GetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public StoreinventoryGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; 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 afc4a584928..f7674a82f01 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 @@ -23,11 +23,11 @@ import java.util.Map; public class StoreorderPost { - private static class StoreorderPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - StoreorderPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface StoreorderPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(StoreorderPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return StoreorderPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse placeOrder(StoreorderPostRequest request) thr } } - public static class StoreorderPost1 extends ApiClient implements StoreorderPostOperation { - public StoreorderPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements StoreorderPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class StoreorderPostRequest { + public static class PostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public StoreorderPostRequest( + public PostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public StoreorderPostRequest( } } - public static class StoreorderPostNullableRequest { + public static class PostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 33b0ab5ca44..44dc15a59a0 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 @@ -22,11 +22,11 @@ import java.util.Map; public class StoreorderorderidDelete { - private static class StoreorderorderidDeleteProvider { + private static class DeleteProvider { private static final String method = "delete"; public static Void delete( - StoreorderorderidDeleteRequest request, + DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Void delete( } } - public interface StoreorderorderidDeleteOperation { + public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void delete(StoreorderorderidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return StoreorderorderidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -72,18 +72,18 @@ default Void deleteOrder(StoreorderorderidDeleteRequest request) throws IOExcept } } - public static class StoreorderorderidDelete1 extends ApiClient implements StoreorderorderidDeleteOperation { - public StoreorderorderidDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Delete extends ApiClient implements StoreorderorderidDeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class StoreorderorderidDeleteRequest { + public static class DeleteRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public StoreorderorderidDeleteRequest( + public DeleteRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,7 +94,7 @@ public StoreorderorderidDeleteRequest( } } - public static class StoreorderorderidDeleteNullableRequest { + public static class DeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 6016b8595e7..1fa2afd17db 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 @@ -22,11 +22,11 @@ import java.util.Map; public class StoreorderorderidGet { - private static class StoreorderorderidGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - StoreorderorderidGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Responses.EndpointResponse get( } } - public interface StoreorderorderidGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(StoreorderorderidGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return StoreorderorderidGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -72,18 +72,18 @@ default Responses.EndpointResponse getOrderById(StoreorderorderidGetRequest requ } } - public static class StoreorderorderidGet1 extends ApiClient implements StoreorderorderidGetOperation { - public StoreorderorderidGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements StoreorderorderidGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class StoreorderorderidGetRequest { + public static class GetRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public StoreorderorderidGetRequest( + public GetRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,7 +94,7 @@ public StoreorderorderidGetRequest( } } - public static class StoreorderorderidGetNullableRequest { + public static class GetNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 0dd98d3b72c..01dddaa6834 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 @@ -23,11 +23,11 @@ import java.util.Map; public class UserPost { - private static class UserPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - UserPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface UserPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(UserPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse createUser(UserPostRequest request) throws IO } } - public static class UserPost1 extends ApiClient implements UserPostOperation { - public UserPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements UserPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class UserPostRequest { + public static class PostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public UserPostRequest( + public PostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public UserPostRequest( } } - public static class UserPostNullableRequest { + public static class PostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 15a5bbfcff9..ea6491e0041 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 @@ -23,11 +23,11 @@ import java.util.Map; public class UsercreatewitharrayPost { - private static class UsercreatewitharrayPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - UsercreatewitharrayPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface UsercreatewitharrayPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(UsercreatewitharrayPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UsercreatewitharrayPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse createUsersWithArrayInput(Usercreatewitharray } } - public static class UsercreatewitharrayPost1 extends ApiClient implements UsercreatewitharrayPostOperation { - public UsercreatewitharrayPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements UsercreatewitharrayPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class UsercreatewitharrayPostRequest { + public static class PostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public UsercreatewitharrayPostRequest( + public PostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public UsercreatewitharrayPostRequest( } } - public static class UsercreatewitharrayPostNullableRequest { + public static class PostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 6ccd8bb85c4..2257bbe6ad0 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 @@ -23,11 +23,11 @@ import java.util.Map; public class UsercreatewithlistPost { - private static class UsercreatewithlistPostProvider { + private static class PostProvider { private static final String method = "post"; public static Responses.EndpointResponse post( - UsercreatewithlistPostRequest request, + PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -58,12 +58,12 @@ public static Responses.EndpointResponse post( } } - public interface UsercreatewithlistPostOperation { + public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(UsercreatewithlistPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UsercreatewithlistPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -76,18 +76,18 @@ default Responses.EndpointResponse createUsersWithListInput(UsercreatewithlistPo } } - public static class UsercreatewithlistPost1 extends ApiClient implements UsercreatewithlistPostOperation { - public UsercreatewithlistPost1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Post extends ApiClient implements UsercreatewithlistPostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class UsercreatewithlistPostRequest { + public static class PostRequest { public RequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public UsercreatewithlistPostRequest( + public PostRequest( RequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -98,7 +98,7 @@ public UsercreatewithlistPostRequest( } } - public static class UsercreatewithlistPostNullableRequest { + public static class PostNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 174f14d2269..baf1c9aadf4 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 @@ -22,11 +22,11 @@ import java.util.Map; public class UserloginGet { - private static class UserloginGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - UserloginGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -55,12 +55,12 @@ public static Responses.EndpointResponse get( } } - public interface UserloginGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(UserloginGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserloginGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -73,18 +73,18 @@ default Responses.EndpointResponse loginUser(UserloginGetRequest request) throws } } - public static class UserloginGet1 extends ApiClient implements UserloginGetOperation { - public UserloginGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements UserloginGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class UserloginGetRequest { + public static class GetRequest { public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public UserloginGetRequest( + public GetRequest( QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -95,7 +95,7 @@ public UserloginGetRequest( } } - public static class UserloginGetNullableRequest { + public static class GetNullableRequest { public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 20544d55369..ad39437a8fb 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 @@ -20,11 +20,11 @@ import java.util.Map; public class UserlogoutGet { - private static class UserlogoutGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - UserlogoutGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -49,12 +49,12 @@ public static Responses.EndpointResponse get( } } - public interface UserlogoutGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(UserlogoutGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserlogoutGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,13 +67,13 @@ default Responses.EndpointResponse logoutUser(UserlogoutGetRequest request) thro } } - public static class UserlogoutGet1 extends ApiClient implements UserlogoutGetOperation { - public UserlogoutGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements UserlogoutGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class UserlogoutGetRequest { + public static class GetRequest { public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } 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 3d9dbe5e7da..36a6fb6b3db 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 @@ -22,11 +22,11 @@ import java.util.Map; public class UserusernameDelete { - private static class UserusernameDeleteProvider { + private static class DeleteProvider { private static final String method = "delete"; public static Responses.EndpointResponse delete( - UserusernameDeleteRequest request, + DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Responses.EndpointResponse delete( } } - public interface UserusernameDeleteOperation { + public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(UserusernameDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserusernameDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -72,18 +72,18 @@ default Responses.EndpointResponse deleteUser(UserusernameDeleteRequest request) } } - public static class UserusernameDelete1 extends ApiClient implements UserusernameDeleteOperation { - public UserusernameDelete1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Delete extends ApiClient implements UserusernameDeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class UserusernameDeleteRequest { + public static class DeleteRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public UserusernameDeleteRequest( + public DeleteRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,7 +94,7 @@ public UserusernameDeleteRequest( } } - public static class UserusernameDeleteNullableRequest { + public static class DeleteNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 241334c4598..fa15d510fad 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 @@ -22,11 +22,11 @@ import java.util.Map; public class UserusernameGet { - private static class UserusernameGetProvider { + private static class GetProvider { private static final String method = "get"; public static Responses.EndpointResponse get( - UserusernameGetRequest request, + GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -54,12 +54,12 @@ public static Responses.EndpointResponse get( } } - public interface UserusernameGetOperation { + public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(UserusernameGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserusernameGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -72,18 +72,18 @@ default Responses.EndpointResponse getUserByName(UserusernameGetRequest request) } } - public static class UserusernameGet1 extends ApiClient implements UserusernameGetOperation { - public UserusernameGet1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Get extends ApiClient implements UserusernameGetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class UserusernameGetRequest { + public static class GetRequest { public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public UserusernameGetRequest( + public GetRequest( PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -94,7 +94,7 @@ public UserusernameGetRequest( } } - public static class UserusernameGetNullableRequest { + public static class GetNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; 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 a360755b2d3..251a594a4f7 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 @@ -25,11 +25,11 @@ import java.util.Map; public class UserusernamePut { - private static class UserusernamePutProvider { + private static class PutProvider { private static final String method = "put"; public static Void put( - UserusernamePutRequest request, + PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -63,12 +63,12 @@ public static Void put( } } - public interface UserusernamePutOperation { + public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void put(UserusernamePutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserusernamePutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -81,19 +81,19 @@ default Void updateUser(UserusernamePutRequest request) throws IOException, Inte } } - public static class UserusernamePut1 extends ApiClient implements UserusernamePutOperation { - public UserusernamePut1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class Put extends ApiClient implements UserusernamePutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } - public static class UserusernamePutRequest { + public static class PutRequest { public RequestBody.SealedRequestBody requestBody; public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; - public UserusernamePutRequest( + public PutRequest( RequestBody.SealedRequestBody requestBody, PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @@ -106,7 +106,7 @@ public UserusernamePutRequest( } } - public static class UserusernamePutNullableRequest { + public static class PutNullableRequest { public RequestBody.@Nullable SealedRequestBody requestBody; public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index ebb4bb41b3b..3c29333568d 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -2956,38 +2956,40 @@ public CodegenOperation fromOperation(Operation operation, String jsonPath, Link CodegenList usedServers = (servers != null) ? servers : rootOrPathServers; CodegenList usedSecurity = (security != null) ? security : rootSecurity; List> builders = getOperationBuilders(jsonPath, requestBody, parametersInfo, usedServers, usedSecurity); + CodegenKey method = getKey(pathPieces[pathPieces.length-1], "misc", jsonPath); String subpackage = getSubpackage(jsonPath); return new CodegenOperation( - deprecated, - nonErrorStatusCodes, - nonErrorWildcardStatusCodes, - errorStatusCodes, - errorWildcardStatusCodes, - summary, - description, - produces, - usedServers, - requestBody, - parametersInfo, - hasRequiredParamOrBody, - hasOptionalParamOrBody, - usedSecurity, - tags, - responses, - statusCodeResponses, - wildcardCodeResponses, - nonDefaultResponses, - defaultResponse, - callbacks, - externalDocs, - vendorExtensions, - operationId, - jsonPathPiece, - requestBodySchema, - builders, - subpackage - ); + deprecated, + nonErrorStatusCodes, + nonErrorWildcardStatusCodes, + errorStatusCodes, + errorWildcardStatusCodes, + summary, + description, + produces, + usedServers, + requestBody, + parametersInfo, + hasRequiredParamOrBody, + hasOptionalParamOrBody, + usedSecurity, + tags, + responses, + statusCodeResponses, + wildcardCodeResponses, + nonDefaultResponses, + defaultResponse, + callbacks, + externalDocs, + vendorExtensions, + operationId, + jsonPathPiece, + method, + requestBodySchema, + builders, + subpackage + ); } protected List> getOperationBuilders(String jsonPath, CodegenRequestBody requestBody, CodegenParametersInfo parametersInfo, CodegenList servers, CodegenList security) { diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenOperation.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenOperation.java index a3510dd105b..8228355ad27 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenOperation.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenOperation.java @@ -50,6 +50,7 @@ public class CodegenOperation { public final Map vendorExtensions; public final CodegenKey operationId; public final CodegenKey jsonPathPiece; + public final CodegenKey method; public final List> builders; public final String subpackage; @@ -79,6 +80,7 @@ public CodegenOperation( Map vendorExtensions, CodegenKey operationId, CodegenKey jsonPathPiece, + CodegenKey method, CodegenSchema requestBodySchema, List> builders, String subpackage @@ -108,6 +110,7 @@ public CodegenOperation( this.vendorExtensions = vendorExtensions; this.operationId = operationId; this.jsonPathPiece = jsonPathPiece; + this.method = method; this.requestBodySchema = requestBodySchema; this.builders = builders; this.subpackage = subpackage; diff --git a/src/main/resources/java/src/main/java/packagename/apis/paths/Api.hbs b/src/main/resources/java/src/main/java/packagename/apis/paths/Api.hbs index 9d081afb400..810d50ea53f 100644 --- a/src/main/resources/java/src/main/java/packagename/apis/paths/Api.hbs +++ b/src/main/resources/java/src/main/java/packagename/apis/paths/Api.hbs @@ -9,7 +9,7 @@ import {{packageName}}.{{subpackage}}.{{jsonPathPiece.pascalCase}}; public class {{pathItem.jsonPathPiece.pascalCase}} extends ApiClient implements {{#each pathItem.operations}} - {{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}Operation{{#unless @last}},{{/unless}} + {{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Operation{{#unless @last}},{{/unless}} {{/each}} { public {{pathItem.jsonPathPiece.pascalCase}}(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs index d350d8df4a6..031213c1e73 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs @@ -62,11 +62,11 @@ import java.util.List; import java.util.Map; public class {{jsonPathPiece.pascalCase}} { - private static class {{jsonPathPiece.pascalCase}}Provider{{#each builders}}{{#if @first}}{{#each keyToBuilder}}{{#eq @key.camelCase "securityIndex"}} extends AuthApplier{{/eq}}{{/each}}{{/if}}{{/each}} { + private static class {{method.pascalCase}}Provider{{#each builders}}{{#if @first}}{{#each keyToBuilder}}{{#eq @key.camelCase "securityIndex"}} extends AuthApplier{{/eq}}{{/each}}{{/if}}{{/each}} { private static final String method = "{{jsonPathPiece.original}}"; - public static {{#if nonErrorResponses }}{{#with responses}}{{jsonPathPiece.pascalCase}}.EndpointResponse{{/with}}{{else}}Void{{/if}} {{jsonPathPiece.camelCase}}( - {{jsonPathPiece.pascalCase}}Request request, + public static {{#if nonErrorResponses }}{{#with responses}}{{jsonPathPiece.pascalCase}}.EndpointResponse{{/with}}{{else}}Void{{/if}} {{method.camelCase}}( + {{method.pascalCase}}Request request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, HttpClient client @@ -192,15 +192,15 @@ public class {{jsonPathPiece.pascalCase}} { } } - public interface {{jsonPathPiece.pascalCase}}Operation { + public interface {{method.pascalCase}}Operation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default {{#if nonErrorResponses }}{{#with responses}}{{jsonPathPiece.pascalCase}}.EndpointResponse{{/with}}{{else}}Void{{/if}} {{jsonPathPiece.camelCase}}({{jsonPathPiece.pascalCase}}Request request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return {{jsonPathPiece.pascalCase}}Provider.{{jsonPathPiece.camelCase}}(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default {{#if nonErrorResponses }}{{#with responses}}{{jsonPathPiece.pascalCase}}.EndpointResponse{{/with}}{{else}}Void{{/if}} {{jsonPathPiece.camelCase}}({{method.pascalCase}}Request request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return {{method.pascalCase}}Provider.{{method.camelCase}}(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } - {{#neq jsonPathPiece.pascalCase operationId.pascalCase}} + {{#neq method.pascalCase operationId.pascalCase}} public interface {{operationId.pascalCase}}Operation { ApiConfiguration getApiConfiguration(); @@ -212,14 +212,14 @@ public class {{jsonPathPiece.pascalCase}} { } {{/neq}} - public static class {{jsonPathPiece.pascalCase}}1 extends ApiClient implements {{jsonPathPiece.pascalCase}}Operation { - public {{jsonPathPiece.pascalCase}}1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + public static class {{method.pascalCase}} extends ApiClient implements {{jsonPathPiece.pascalCase}}Operation { + public {{method.pascalCase}}(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } } {{#eq builders.size 1}} - public static class {{jsonPathPiece.pascalCase}}Request { + public static class {{method.pascalCase}}Request { {{#each builders}} {{#each keyToBuilder}} {{#with property}} @@ -238,7 +238,7 @@ public class {{jsonPathPiece.pascalCase}} { } {{else}} - public static class {{jsonPathPiece.pascalCase}}Request { + public static class {{method.pascalCase}}Request { {{#each (reverse builders)}} {{#or @first @last}} {{#each keyToBuilder}} @@ -257,7 +257,7 @@ public class {{jsonPathPiece.pascalCase}} { {{/or}} {{/each}} - public {{jsonPathPiece.pascalCase}}Request( + public {{method.pascalCase}}Request( {{#each (reverse builders)}} {{#or @first @last}} {{#each keyToBuilder}} @@ -286,7 +286,7 @@ public class {{jsonPathPiece.pascalCase}} { } } - public static class {{jsonPathPiece.pascalCase}}NullableRequest { + public static class {{method.pascalCase}}NullableRequest { {{#each (reverse builders)}} {{#or @first @last}} {{#each keyToBuilder}} diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs index edec9e83199..308f6754cce 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs @@ -19,21 +19,21 @@ A class that contains necessary endpoint classes {{headerSize}}# Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [{{jsonPathPiece.pascalCase}}1](#{{jsonPathPiece.kebabCase}}1)
The class that has a {{jsonPathPiece.camelCase}} method to call the endpoint | +| static class | [{{method.pascalCase}}](#{{method.kebabCase}})
The class that has a {{method.camelCase}} method to call the endpoint | {{#eq builders.size 1}} -| static class | [{{jsonPathPiece.pascalCase}}Request](#{{jsonPathPiece.kebabCase}}request)
The request inputs class | +| static class | [{{method.pascalCase}}Request](#{{method.kebabCase}}request)
The request inputs class | {{else}} -| static class | [{{jsonPathPiece.pascalCase}}Request](#{{jsonPathPiece.kebabCase}}request)
The final request inputs class | -| static class | [{{jsonPathPiece.pascalCase}}NullableRequest](#{{jsonPathPiece.kebabCase}}nullablerequest)
The initial request inputs class | +| static class | [{{method.pascalCase}}Request](#{{method.kebabCase}}request)
The final request inputs class | +| static class | [{{method.pascalCase}}NullableRequest](#{{method.kebabCase}}nullablerequest)
The initial request inputs class | {{/eq}} {{#each builders}} | static class | [{{className.pascalCase}}](#{{className.kebabCase}})
A builder for the request input class | {{/each}} -{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "1" "")) }} -public static class {{jsonPathPiece.pascalCase}}1 extends ApiClient.ApiClient1 implements {{jsonPathPiece.pascalCase}}Operation
+{{headerSize}}## {{method.pascalCase}} +public static class {{method.pascalCase}} extends ApiClient.ApiClient1 implements {{method.pascalCase}}Operation
-a class that allows one to call the endpoint using a method named {{jsonPathPiece.camelCase}} +a class that allows one to call the endpoint using a method named {{method.camelCase}} {{headerSize}}## Code Sample {{> src/main/java/packagename/paths/path/verb/_OperationDocCodeSample }} @@ -41,20 +41,20 @@ a class that allows one to call the endpoint using a method named {{jsonPathPiec {{headerSize}}## Constructor Summary | Constructor and Description | | --------------------------- | -| {{jsonPathPiece.pascalCase}}1(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | +| {{method.pascalCase}}(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | {{headerSize}}## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | {{jsonPathPiece.camelCase}}([{{jsonPathPiece.pascalCase}}Request](#{{jsonPathPiece.kebabCase}}request) request) | +| {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | {{method.camelCase}}([{{method.pascalCase}}Request](#{{method.kebabCase}}request) request) | {{#eq builders.size 1}} {{> src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc }} {{else}} {{> src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc }} -{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "NullableRequest" "")) }} -public static class {{jsonPathPiece.pascalCase}}NullableRequest
+{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join method.pascalCase "NullableRequest" "")) }} +public static class {{method.pascalCase}}NullableRequest
a class that stores the initial request inputs @@ -99,7 +99,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | {{#if @first}} -| [{{jsonPathPiece.pascalCase}}Request](#{{jsonPathPiece.kebabCase}}request) | build()
Returns the request input used to call an endpoint method | +| [{{method.pascalCase}}Request](#{{method.kebabCase}}request) | build()
Returns the request input used to call an endpoint method | {{/if}} {{#each keyToBuilder}} | [{{builder.className.pascalCase}}](#{{builder.className.kebabCase}}) | {{@key.camelCase}}({{#with property}}{{#if containerJsonPathPiece}}[{{containerJsonPathPiece.pascalCase}}{{else}}{{#if this.jsonPathPiece}}[{{jsonPathPiece.pascalCase}}.{{/if}}{{/if}}{{operationInputClassName.pascalCase}}{{#or containerJsonPathPiece this.jsonPathPiece}}]({{docRoot}}{{pathFromDocRoot}}.md#{{operationInputClassName.kebabCase}}){{/or}}{{/with}} {{@key.camelCase}})
sets the {{#if ../@first}}optional {{/if}}property{{#or (eq @key.camelCase "securityIndex") (eq @key.camelCase "serverIndex") (eq @key.camelCase "timeout")}}. Note: this will override the value in apiConfiguration{{/or}} | 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 8762d450860..9af87b9afba 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 @@ -161,7 +161,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1 apiClient = new {{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1(apiConfiguration, schemaConfiguration); +{{jsonPathPiece.pascalCase}}.{{method.pascalCase}} apiClient = new {{jsonPathPiece.pascalCase}}.{{method.pascalCase}}(apiConfiguration, schemaConfiguration); {{#gt builders.size 1}} {{#each builders}} @@ -198,12 +198,12 @@ SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchema {{#eq builders.size 1}} {{! only option props}} {{#each builders}} -var request = new {{className.pascalCase}}().build(); +var request = new {{../jsonPathPiece.pascalCase}}.{{className.pascalCase}}().build(); {{/each}} {{else}} {{#each builders}} {{#if @last}} -var request = new {{className.pascalCase}}() +var request = new {{../jsonPathPiece.pascalCase}}.{{className.pascalCase}}() {{#each keyToBuilder}} .{{@key.camelCase}}({{@key.camelCase}}) {{#if @last}} From acdb317a2aafc79bec126c67ab8e4ea0cf4199cd Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 10 Apr 2024 11:20:28 -0700 Subject: [PATCH 07/21] Deprecates schema pascal case method --- .../codegen/generators/DefaultGenerator.java | 71 ++++++++++--------- .../codegen/generators/Generator.java | 1 + .../generators/JavaClientGenerator.java | 5 +- .../generators/PythonClientGenerator.java | 40 +++++++---- 4 files changed, 69 insertions(+), 48 deletions(-) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 3c29333568d..23a0ec38be2 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -3362,6 +3362,40 @@ public boolean shouldGenerateFile(String jsonPath, boolean isDoc) { @Override public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, String jsonPath) { switch (type) { + case SCHEMA: + String usedKey = escapeUnsafeCharacters(lastJsonPathFragment); + HashMap keyToQty = sourceJsonPathToKeyToQty.getOrDefault(jsonPath, new HashMap<>()); + if (!sourceJsonPathToKeyToQty.containsKey(jsonPath)) { + sourceJsonPathToKeyToQty.put(jsonPath, keyToQty); + } + // starts with number + if (usedKey.matches("^\\d.*")) { + LOGGER.warn("{} (component name starts with number) cannot be used as name. Renamed to Schema{}", usedKey, usedKey); + usedKey = "Schema" + usedKey; // 200 -> Schema200 + } + + usedKey = camelize(usedKey); + + // handle case where usedKey is empty + if (usedKey.isEmpty()) { + // happens with a name like "/" + usedKey = camelize(toEnumVarName(lastJsonPathFragment, null).toLowerCase(Locale.ROOT)); + } + + if (isReservedWord(usedKey)) { + usedKey = usedKey + "Schema"; // e.g. return => ReturnSchema + LOGGER.warn("{} (reserved word) cannot be used as name. Renamed to {}", lastJsonPathFragment, usedKey); + } + + Integer qty = keyToQty.getOrDefault(usedKey, 0); + qty += 1; + keyToQty.put(usedKey, qty); + String suffix = ""; + if (qty > 1) { + suffix = qty.toString(); + } + usedKey = usedKey + suffix; + return usedKey; case OPERATION: return toModelName(lastJsonPathFragment, jsonPath); default: @@ -4896,41 +4930,10 @@ public CodegenKey getKey(String key, String keyType) { return getKey(key, keyType, null); } + @Deprecated @Override public String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPath) { - String usedKey = escapeUnsafeCharacters(name); - HashMap keyToQty = sourceJsonPathToKeyToQty.getOrDefault(sourceJsonPath, new HashMap<>()); - if (!sourceJsonPathToKeyToQty.containsKey(sourceJsonPath)) { - sourceJsonPathToKeyToQty.put(sourceJsonPath, keyToQty); - } - // starts with number - if (usedKey.matches("^\\d.*")) { - LOGGER.warn("{} (component name starts with number) cannot be used as name. Renamed to Schema{}", usedKey, usedKey); - usedKey = "Schema" + usedKey; // 200 -> Schema200 - } - - usedKey = camelize(usedKey); - - // handle case where usedKey is empty - if (usedKey.isEmpty()) { - // happens with a name like "/" - usedKey = camelize(toEnumVarName(name, null).toLowerCase(Locale.ROOT)); - } - - if (isReservedWord(usedKey)) { - usedKey = usedKey + "Schema"; // e.g. return => ReturnSchema - LOGGER.warn("{} (reserved word) cannot be used as name. Renamed to {}", name, usedKey); - } - - Integer qty = keyToQty.getOrDefault(usedKey, 0); - qty += 1; - keyToQty.put(usedKey, qty); - String suffix = ""; - if (qty > 1) { - suffix = qty.toString(); - } - usedKey = usedKey + suffix; - return usedKey; + return getPascalCase(CodegenKeyType.SCHEMA, name, sourceJsonPath); } protected String getCamelCaseName(String key) { @@ -4952,7 +4955,7 @@ public CodegenKey getKey(String key, String keyType, String sourceJsonPath) { usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toModelFilename(usedKey, sourceJsonPath); - pascalCaseName = getSchemaPascalCaseName(key, sourceJsonPath); + pascalCaseName = getPascalCase(CodegenKeyType.SCHEMA, key, sourceJsonPath); camelCaseName = getCamelCaseName(usedKey); break; case "paths": diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java b/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java index f812ff44622..93507a4f199 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java @@ -108,6 +108,7 @@ public interface Generator { String getSchemaFilename(String jsonPath); + @Deprecated String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPath); Set getImports(String sourceJsonPath, CodegenSchema schema, FeatureSet featureSet); String toContentTypeFilename(String name); diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 84ba4180ef7..fc4257b8f13 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -1213,9 +1213,10 @@ protected boolean isValid(String name) { return name.matches("^[a-zA-Z]\\w*$"); } + @Deprecated @Override public String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPath) { - return getSchemaPascalCaseName(name, sourceJsonPath, true); + return getPascalCase(CodegenKeyType.SCHEMA, name, sourceJsonPath); } protected String getCamelCaseName(String key) { @@ -2626,6 +2627,8 @@ public String toOperationFilename(String name, String jsonPath) { @Override public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, String jsonPath) { switch (type) { + case SCHEMA: + return getSchemaPascalCaseName(lastJsonPathFragment, jsonPath, true); case OPERATION: return toOperationFilename(lastJsonPathFragment, jsonPath); default: diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java index a44d13ef2a7..d9177b80a96 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java @@ -33,6 +33,7 @@ import org.openapijsonschematools.codegen.generators.generatormetadata.features.OperationFeature; import org.openapijsonschematools.codegen.generators.generatormetadata.features.SchemaFeature; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenDiscriminator; +import org.openapijsonschematools.codegen.generators.openapimodels.CodegenKeyType; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenPatternInfo; import org.openapijsonschematools.codegen.generators.openapimodels.CodegenSchema; import org.openapijsonschematools.codegen.templating.SupportingFile; @@ -2128,21 +2129,34 @@ public void postProcess() { LOGGER.info("################################################################################"); } + @Deprecated @Override public String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPath) { - String usedKey = escapeUnsafeCharacters(name); - HashMap keyToQty = sourceJsonPathToKeyToQty.getOrDefault(sourceJsonPath, new HashMap<>()); - if (!sourceJsonPathToKeyToQty.containsKey(sourceJsonPath)) { - sourceJsonPathToKeyToQty.put(sourceJsonPath, keyToQty); - } - Integer qty = keyToQty.getOrDefault(usedKey.toLowerCase(Locale.ROOT), 0); - qty += 1; - keyToQty.put(usedKey.toLowerCase(Locale.ROOT), qty); - String suffix = ""; - if (qty > 1) { - suffix = qty.toString(); - } - return toModelName(usedKey + suffix, sourceJsonPath); + return getPascalCase(CodegenKeyType.SCHEMA, name, sourceJsonPath); + } + + @Override + public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, String jsonPath) { + switch (type) { + case SCHEMA: + String usedKey = escapeUnsafeCharacters(lastJsonPathFragment); + HashMap keyToQty = sourceJsonPathToKeyToQty.getOrDefault(jsonPath, new HashMap<>()); + if (!sourceJsonPathToKeyToQty.containsKey(jsonPath)) { + sourceJsonPathToKeyToQty.put(jsonPath, keyToQty); + } + Integer qty = keyToQty.getOrDefault(usedKey.toLowerCase(Locale.ROOT), 0); + qty += 1; + keyToQty.put(usedKey.toLowerCase(Locale.ROOT), qty); + String suffix = ""; + if (qty > 1) { + suffix = qty.toString(); + } + return toModelName(usedKey + suffix, jsonPath); + case OPERATION: + return toModelName(lastJsonPathFragment, jsonPath); + default: + return null; + } } @Override From ce4d069e036424534486cfa9f4de00558d72c9fd Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 10 Apr 2024 11:27:44 -0700 Subject: [PATCH 08/21] Uses getPascalCase for 2 more use cases --- .../codegen/generators/DefaultGenerator.java | 8 ++++++-- .../codegen/generators/JavaClientGenerator.java | 4 ++++ .../codegen/generators/PythonClientGenerator.java | 4 ++++ .../codegen/generators/openapimodels/CodegenKeyType.java | 6 ++++-- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 23a0ec38be2..c712e895c74 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -3396,6 +3396,10 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St } usedKey = usedKey + suffix; return usedKey; + case PATH: + return camelize(toPathFilename(lastJsonPathFragment, jsonPath)); + case MISC: + return toModelName(lastJsonPathFragment, jsonPath); case OPERATION: return toModelName(lastJsonPathFragment, jsonPath); default: @@ -4962,14 +4966,14 @@ public CodegenKey getKey(String key, String keyType, String sourceJsonPath) { usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toPathFilename(usedKey, sourceJsonPath); - pascalCaseName = camelize(toPathFilename(usedKey, sourceJsonPath)); + pascalCaseName = getPascalCase(CodegenKeyType.PATH, usedKey, sourceJsonPath); break; case "misc": usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toModelFilename(usedKey, sourceJsonPath); camelCaseName = camelize(usedKey, true); - pascalCaseName = toModelName(usedKey, sourceJsonPath); + pascalCaseName = getPascalCase(CodegenKeyType.MISC, usedKey, sourceJsonPath); break; case "verb": usedKey = escapeUnsafeCharacters(key); diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index fc4257b8f13..3d8ed223088 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -2629,6 +2629,10 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St switch (type) { case SCHEMA: return getSchemaPascalCaseName(lastJsonPathFragment, jsonPath, true); + case PATH: + return camelize(toPathFilename(lastJsonPathFragment, jsonPath)); + case MISC: + return toModelName(lastJsonPathFragment, jsonPath); case OPERATION: return toOperationFilename(lastJsonPathFragment, jsonPath); default: diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java index d9177b80a96..cb0b915cc8a 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java @@ -2152,6 +2152,10 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St suffix = qty.toString(); } return toModelName(usedKey + suffix, jsonPath); + case PATH: + return camelize(toPathFilename(lastJsonPathFragment, jsonPath)); + case MISC: + return toModelName(lastJsonPathFragment, jsonPath); case OPERATION: return toModelName(lastJsonPathFragment, jsonPath); default: diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java index ba144ad5492..c85dabc18f7 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java @@ -1,10 +1,12 @@ package org.openapijsonschematools.codegen.generators.openapimodels; public enum CodegenKeyType { - OPERATION, SCHEMA, + PATH, + OPERATION, PARAMETER, RESPONSE, SERVER, - SECURITY + SECURITY, + MISC // content-type, operation method } From 28eb84101a6a9f42c6e9c7999cd4c8b0016c4423 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 10 Apr 2024 12:06:23 -0700 Subject: [PATCH 09/21] Deprecates specific pascalCase methods --- .../codegen/generators/DefaultGenerator.java | 38 +++++--- .../codegen/generators/Generator.java | 1 + .../generators/JavaClientGenerator.java | 90 +++++++++++-------- .../generators/PythonClientGenerator.java | 41 +++++---- .../openapimodels/CodegenKeyType.java | 7 +- 5 files changed, 108 insertions(+), 69 deletions(-) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index c712e895c74..acc02e1600a 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -739,7 +739,8 @@ public HashMap public String toResponseModuleName(String componentName, String jsonPath) { return toModuleFilename(componentName, jsonPath); } - public String getPascalCaseResponse(String componentName, String jsonPath) { return toModelName(componentName, null); } + @Deprecated + public String getPascalCaseResponse(String componentName, String jsonPath) { return getPascalCase(CodegenKeyType.RESPONSE, componentName, jsonPath); } public String toHeaderFilename(String componentName, String jsonPath) { return toModuleFilename(componentName, jsonPath); } @@ -954,13 +955,15 @@ public String toSecurityFilename(String basename, String jsonPath) { return toModuleFilename(basename, jsonPath); } + @Deprecated @Override public String getPascalCaseServer(String basename, String jsonPath) { - return "Server" + basename; + return getPascalCase(CodegenKeyType.SERVER, basename, jsonPath); } + @Deprecated public String getPascalCaseParameter(String basename, String jsonPath) { - return toModelName(basename, null); + return getPascalCase(CodegenKeyType.PARAMETER, basename, null); } /** @@ -3398,10 +3401,19 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St return usedKey; case PATH: return camelize(toPathFilename(lastJsonPathFragment, jsonPath)); + case PARAMETER: + case RESPONSE: + return toModelName(lastJsonPathFragment, null); case MISC: - return toModelName(lastJsonPathFragment, jsonPath); case OPERATION: + case REQUEST_BODY: + case HEADER: + case SECURITY_SCHEME: return toModelName(lastJsonPathFragment, jsonPath); + case SERVER: + return "Server" + lastJsonPathFragment; + case SECURITY: + return toSecurityFilename(lastJsonPathFragment, jsonPath); default: return null; } @@ -4986,38 +4998,37 @@ public CodegenKey getKey(String key, String keyType, String sourceJsonPath) { usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toParameterFilename(usedKey, sourceJsonPath); - pascalCaseName = getPascalCaseParameter(usedKey, sourceJsonPath); + pascalCaseName = getPascalCase(CodegenKeyType.PARAMETER, usedKey, sourceJsonPath); break; case "requestBodies": usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toRequestBodyFilename(usedKey, sourceJsonPath); - // todo add getPascalCaseRequestBody() - pascalCaseName = toModelName(usedKey, sourceJsonPath); + pascalCaseName = getPascalCase(CodegenKeyType.REQUEST_BODY, usedKey, sourceJsonPath); break; case "headers": usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toHeaderFilename(usedKey, sourceJsonPath); - pascalCaseName = toModelName(usedKey, sourceJsonPath); + pascalCaseName = getPascalCase(CodegenKeyType.HEADER, usedKey, sourceJsonPath); break; case "responses": usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toResponseModuleName(usedKey, sourceJsonPath); - pascalCaseName = getPascalCaseResponse(usedKey, sourceJsonPath); + pascalCaseName = getPascalCase(CodegenKeyType.RESPONSE, usedKey, sourceJsonPath); break; case "securitySchemes": usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toSecuritySchemeFilename(usedKey, sourceJsonPath); - pascalCaseName = toModelName(usedKey, sourceJsonPath); + pascalCaseName = getPascalCase(CodegenKeyType.SECURITY_SCHEME, usedKey, sourceJsonPath); break; case "servers": usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toServerFilename(usedKey, sourceJsonPath); - pascalCaseName = getPascalCaseServer(usedKey, sourceJsonPath); + pascalCaseName = getPascalCase(CodegenKeyType.SERVER, usedKey, sourceJsonPath); camelCaseName = camelize(pascalCaseName, true); break; case "security": @@ -5026,7 +5037,7 @@ public CodegenKey getKey(String key, String keyType, String sourceJsonPath) { usedKey = escapeUnsafeCharacters(key); isValid = isValid(usedKey); snakeCaseName = toSecuritySnakeCase(key, sourceJsonPath); - pascalCaseName = toSecurityPascalCase(key, sourceJsonPath); + pascalCaseName = getPascalCase(CodegenKeyType.SECURITY, usedKey, sourceJsonPath); camelCaseName = camelize(pascalCaseName, true); break; } @@ -5043,8 +5054,9 @@ public CodegenKey getKey(String key, String keyType, String sourceJsonPath) { ); } + @Deprecated protected String toSecurityPascalCase(String basename, String jsonPath) { - return toSecurityFilename(basename, jsonPath); + return getPascalCase(CodegenKeyType.SECURITY, basename, jsonPath); } protected String toSecuritySnakeCase(String basename, String jsonPath) { diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java b/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java index 93507a4f199..1199f68c26b 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/Generator.java @@ -203,6 +203,7 @@ public interface Generator { String toSecurityFilename(String baseName, String jsonPath); + @Deprecated String getPascalCaseServer(String baseName, String jsonPath); String toModelImport(String refClass); diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 3d8ed223088..8c6e8703a74 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -147,39 +147,10 @@ protected void updateServersFilepath(String[] pathPieces) { } } + @Deprecated @Override public String getPascalCaseServer(String basename, String jsonPath) { - 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")) { - CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); - if (pathPieces.length == 5) { - // #/paths/somePath/get/servers - return pathKey.pascalCase + StringUtils.capitalize(pathPieces[3]) + "ServerInfo"; - } else { - // #/paths/somePath/get/servers/0 - return pathKey.pascalCase + StringUtils.capitalize(pathPieces[3]) + "Server" + pathPieces[5]; - } - } - } - return "Server" + basename; + return getPascalCase(CodegenKeyType.SERVER, basename, jsonPath); } @Override @@ -1169,12 +1140,9 @@ public String toHeaderFilename(String componentName, String jsonPath) { return toModuleFilename(componentName, jsonPath); } + @Deprecated public String getPascalCaseResponse(String componentName, String jsonPath) { - if (jsonPath.startsWith("#/components/responses/")) { - return toModelName(componentName, null); - } else { - return toModelName("Code"+componentName+"Response", null); - } + return getPascalCase(CodegenKeyType.RESPONSE, componentName, jsonPath); } @Override @@ -1406,11 +1374,10 @@ private static boolean isInteger(String str) { return true; } + @Deprecated @Override public String getPascalCaseParameter(String basename, String jsonPath) { - - return toParameterFilename(basename, jsonPath); - + return getPascalCase(CodegenKeyType.PARAMETER, basename, jsonPath); } public String toPathFilename(String name, String jsonPath) { @@ -2632,9 +2599,54 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St case PATH: return camelize(toPathFilename(lastJsonPathFragment, jsonPath)); case MISC: + case REQUEST_BODY: + case HEADER: + case SECURITY_SCHEME: return toModelName(lastJsonPathFragment, jsonPath); case OPERATION: return toOperationFilename(lastJsonPathFragment, jsonPath); + case PARAMETER: + return toParameterFilename(lastJsonPathFragment, jsonPath); + case RESPONSE: + if (jsonPath.startsWith("#/components/responses/")) { + return toModelName(lastJsonPathFragment, null); + } else { + return toModelName("Code"+lastJsonPathFragment+"Response", null); + } + 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")) { + CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); + if (pathPieces.length == 5) { + // #/paths/somePath/get/servers + return pathKey.pascalCase + StringUtils.capitalize(pathPieces[3]) + "ServerInfo"; + } else { + // #/paths/somePath/get/servers/0 + return pathKey.pascalCase + StringUtils.capitalize(pathPieces[3]) + "Server" + pathPieces[5]; + } + } + } + return "Server" + lastJsonPathFragment; + case SECURITY: + return toSecurityFilename(lastJsonPathFragment, jsonPath); default: return null; } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java index cb0b915cc8a..68f3dc7318f 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java @@ -827,8 +827,9 @@ public String toModuleFilename(String name, String jsonPath) { return underscore(dropDots(toModelName(name, jsonPath))); } + @Deprecated protected String toSecurityPascalCase(String basename, String jsonPath) { - return "Security"; + return getPascalCase(CodegenKeyType.SECURITY, basename, jsonPath); } @Override @@ -1902,24 +1903,15 @@ public String toSecurityFilename(String basename, String jsonPath) { return "security_requirement_object_" + basename; } + @Deprecated @Override public String getPascalCaseParameter(String name, String jsonPath) { - try { - Integer.parseInt(name); - // for parameters in path, or an endpoint - return "Parameter" + name; - } catch (NumberFormatException nfe) { - // for header parameters in responses - return toModelName(name, null); - } + return getPascalCase(CodegenKeyType.PARAMETER, name, jsonPath); } + @Deprecated public String getPascalCaseResponse(String name, String jsonPath) { - if (name.matches("^\\d[X\\d]{2}$")) { - // 200 or 2XX - return "ResponseFor" + name; - } - return toModelName(name, null); + return getPascalCase(CodegenKeyType.RESPONSE, name, jsonPath); } @Override @@ -2155,9 +2147,28 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St case PATH: return camelize(toPathFilename(lastJsonPathFragment, jsonPath)); case MISC: - return toModelName(lastJsonPathFragment, jsonPath); case OPERATION: + case REQUEST_BODY: + case HEADER: + case SECURITY_SCHEME: return toModelName(lastJsonPathFragment, jsonPath); + case PARAMETER: + try { + Integer.parseInt(lastJsonPathFragment); + // for parameters in path, or an endpoint + return "Parameter" + lastJsonPathFragment; + } catch (NumberFormatException nfe) { + // for header parameters in responses + return toModelName(lastJsonPathFragment, null); + } + case RESPONSE: + if (lastJsonPathFragment.matches("^\\d[X\\d]{2}$")) { + // 200 or 2XX + return "ResponseFor" + lastJsonPathFragment; + } + return toModelName(lastJsonPathFragment, null); + case SECURITY: + return "Security"; default: return null; } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java index c85dabc18f7..b98c029544a 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenKeyType.java @@ -3,10 +3,13 @@ public enum CodegenKeyType { SCHEMA, PATH, + MISC, // content-type, operation method OPERATION, PARAMETER, + REQUEST_BODY, + HEADER, RESPONSE, + SECURITY_SCHEME, SERVER, - SECURITY, - MISC // content-type, operation method + SECURITY } From 396938daa5cdaf9dd2efff41df7a593099561576 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 10 Apr 2024 13:26:03 -0700 Subject: [PATCH 10/21] Adds prefix to java request body classes --- .../petstore/java/.openapi-generator/FILES | 152 +++++++++--------- .../anotherfakedummy/AnotherfakedummyPatch.md | 10 +- .../patch/AnotherfakedummyPatchRequestBody.md | 17 ++ .../patch/AnotherfakedummyRequestBody.md | 17 ++ .../petstore/java/docs/paths/fake/FakeGet.md | 6 +- .../java/docs/paths/fake/FakePatch.md | 10 +- .../petstore/java/docs/paths/fake/FakePost.md | 6 +- .../docs/paths/fake/get/FakeGetRequestBody.md | 90 +++++++++++ .../{RequestBody.md => FakeRequestBody.md} | 20 +-- .../paths/fake/patch/FakePatchRequestBody.md | 17 ++ .../patch/FakeRequestBody.md} | 10 +- .../paths/fake/post/FakePostRequestBody.md | 90 +++++++++++ .../{RequestBody.md => FakeRequestBody.md} | 20 +-- ...additionalpropertieswitharrayofenumsGet.md | 6 +- ...ropertieswitharrayofenumsGetRequestBody.md | 90 +++++++++++ ...lpropertieswitharrayofenumsRequestBody.md} | 20 +-- .../FakebodywithfileschemaPut.md | 8 +- .../FakebodywithfileschemaPutRequestBody.md | 90 +++++++++++ ...d => FakebodywithfileschemaRequestBody.md} | 20 +-- .../FakebodywithqueryparamsPut.md | 10 +- .../FakebodywithqueryparamsPutRequestBody.md | 90 +++++++++++ ... => FakebodywithqueryparamsRequestBody.md} | 20 +-- .../FakeclassnametestPatch.md | 10 +- .../FakeclassnametestPatchRequestBody.md | 17 ++ .../patch/FakeclassnametestRequestBody.md | 17 ++ .../FakeinlineadditionalpropertiesPost.md | 8 +- ...lineadditionalpropertiesPostRequestBody.md | 90 +++++++++++ ...einlineadditionalpropertiesRequestBody.md} | 20 +-- .../FakeinlinecompositionPost.md | 6 +- .../FakeinlinecompositionPostRequestBody.md | 128 +++++++++++++++ ...md => FakeinlinecompositionRequestBody.md} | 24 +-- .../fakejsonformdata/FakejsonformdataGet.md | 6 +- .../get/FakejsonformdataGetRequestBody.md | 90 +++++++++++ ...Body.md => FakejsonformdataRequestBody.md} | 20 +-- .../paths/fakejsonpatch/FakejsonpatchPatch.md | 6 +- .../patch/FakejsonpatchPatchRequestBody.md | 90 +++++++++++ ...estBody.md => FakejsonpatchRequestBody.md} | 20 +-- .../FakejsonwithcharsetPost.md | 6 +- .../FakejsonwithcharsetPostRequestBody.md | 90 +++++++++++ ...y.md => FakejsonwithcharsetRequestBody.md} | 20 +-- ...FakemultiplerequestbodycontenttypesPost.md | 6 +- ...erequestbodycontenttypesPostRequestBody.md | 128 +++++++++++++++ ...iplerequestbodycontenttypesRequestBody.md} | 24 +-- .../Fakeparametercollisions1ababselfabPost.md | 8 +- ...tercollisions1ababselfabPostRequestBody.md | 90 +++++++++++ ...ametercollisions1ababselfabRequestBody.md} | 20 +-- .../FakepemcontenttypeGet.md | 6 +- .../get/FakepemcontenttypeGetRequestBody.md | 90 +++++++++++ ...dy.md => FakepemcontenttypeRequestBody.md} | 20 +-- ...akepetiduploadimagewithrequiredfilePost.md | 8 +- ...oadimagewithrequiredfilePostRequestBody.md | 90 +++++++++++ ...uploadimagewithrequiredfileRequestBody.md} | 20 +-- .../FakerefsarraymodelPost.md | 6 +- .../post/FakerefsarraymodelPostRequestBody.md | 90 +++++++++++ ...dy.md => FakerefsarraymodelRequestBody.md} | 20 +-- .../FakerefsarrayofenumsPost.md | 6 +- .../FakerefsarrayofenumsPostRequestBody.md | 90 +++++++++++ ....md => FakerefsarrayofenumsRequestBody.md} | 20 +-- .../fakerefsboolean/FakerefsbooleanPost.md | 6 +- .../post/FakerefsbooleanPostRequestBody.md | 90 +++++++++++ ...tBody.md => FakerefsbooleanRequestBody.md} | 20 +-- ...scomposedoneofnumberwithvalidationsPost.md | 6 +- ...eofnumberwithvalidationsPostRequestBody.md | 90 +++++++++++ ...doneofnumberwithvalidationsRequestBody.md} | 20 +-- .../paths/fakerefsenum/FakerefsenumPost.md | 6 +- .../post/FakerefsenumPostRequestBody.md | 90 +++++++++++ ...uestBody.md => FakerefsenumRequestBody.md} | 20 +-- .../fakerefsmammal/FakerefsmammalPost.md | 8 +- .../post/FakerefsmammalPostRequestBody.md | 90 +++++++++++ ...stBody.md => FakerefsmammalRequestBody.md} | 20 +-- .../fakerefsnumber/FakerefsnumberPost.md | 6 +- .../post/FakerefsnumberPostRequestBody.md | 90 +++++++++++ ...stBody.md => FakerefsnumberRequestBody.md} | 20 +-- .../FakerefsobjectmodelwithrefpropsPost.md | 6 +- ...sobjectmodelwithrefpropsPostRequestBody.md | 90 +++++++++++ ...refsobjectmodelwithrefpropsRequestBody.md} | 20 +-- .../fakerefsstring/FakerefsstringPost.md | 6 +- .../post/FakerefsstringPostRequestBody.md | 90 +++++++++++ ...stBody.md => FakerefsstringRequestBody.md} | 20 +-- .../FakeuploaddownloadfilePost.md | 8 +- .../FakeuploaddownloadfilePostRequestBody.md | 90 +++++++++++ ...d => FakeuploaddownloadfileRequestBody.md} | 20 +-- .../fakeuploadfile/FakeuploadfilePost.md | 6 +- .../post/FakeuploadfilePostRequestBody.md | 90 +++++++++++ ...stBody.md => FakeuploadfileRequestBody.md} | 20 +-- .../fakeuploadfiles/FakeuploadfilesPost.md | 6 +- .../post/FakeuploadfilesPostRequestBody.md | 90 +++++++++++ ...tBody.md => FakeuploadfilesRequestBody.md} | 20 +-- .../petstore/java/docs/paths/pet/PetPost.md | 10 +- .../petstore/java/docs/paths/pet/PetPut.md | 10 +- .../docs/paths/pet/post/PetPostRequestBody.md | 17 ++ .../post/PetRequestBody.md} | 10 +- .../put/PetPutRequestBody.md} | 10 +- .../put/PetRequestBody.md} | 10 +- .../java/docs/paths/pet/put/RequestBody.md | 17 -- .../java/docs/paths/petpetid/PetpetidPost.md | 8 +- .../petpetid/post/PetpetidPostRequestBody.md | 90 +++++++++++ ...{RequestBody.md => PetpetidRequestBody.md} | 20 +-- .../PetpetiduploadimagePost.md | 8 +- .../PetpetiduploadimagePostRequestBody.md | 90 +++++++++++ ...y.md => PetpetiduploadimageRequestBody.md} | 20 +-- .../docs/paths/storeorder/StoreorderPost.md | 8 +- .../post/StoreorderPostRequestBody.md | 90 +++++++++++ ...equestBody.md => StoreorderRequestBody.md} | 20 +-- .../petstore/java/docs/paths/user/UserPost.md | 8 +- .../paths/user/post/UserPostRequestBody.md | 90 +++++++++++ .../{RequestBody.md => UserRequestBody.md} | 20 +-- .../UsercreatewitharrayPost.md | 10 +- .../usercreatewitharray/post/RequestBody.md | 17 -- .../UsercreatewitharrayPostRequestBody.md | 17 ++ .../post/UsercreatewitharrayRequestBody.md | 17 ++ .../UsercreatewithlistPost.md | 10 +- .../usercreatewithlist/post/RequestBody.md | 17 -- .../post/UsercreatewithlistPostRequestBody.md | 17 ++ .../post/UsercreatewithlistRequestBody.md | 17 ++ .../paths/userusername/UserusernamePut.md | 10 +- .../put/UserusernamePutRequestBody.md | 90 +++++++++++ ...uestBody.md => UserusernameRequestBody.md} | 20 +-- .../AnotherfakedummyPatch.java | 42 ++--- .../AnotherfakedummyPatchRequestBody.java | 11 ++ ....java => AnotherfakedummyRequestBody.java} | 4 +- .../CommonparamsubdirDelete.java | 34 ++-- .../CommonparamsubdirGet.java | 34 ++-- .../CommonparamsubdirPost.java | 34 ++-- .../client/paths/fake/FakeDelete.java | 54 +++---- .../client/paths/fake/FakeGet.java | 40 ++--- .../client/paths/fake/FakePatch.java | 42 ++--- .../client/paths/fake/FakePost.java | 36 ++--- .../paths/fake/get/FakeGetRequestBody.java | 53 ++++++ ...{RequestBody.java => FakeRequestBody.java} | 6 +- .../fake/patch/FakePatchRequestBody.java | 11 ++ ...{RequestBody.java => FakeRequestBody.java} | 4 +- .../paths/fake/post/FakePostRequestBody.java | 53 ++++++ ...{RequestBody.java => FakeRequestBody.java} | 6 +- ...ditionalpropertieswitharrayofenumsGet.java | 32 ++-- ...pertieswitharrayofenumsGetRequestBody.java | 53 ++++++ ...ropertieswitharrayofenumsRequestBody.java} | 6 +- .../FakebodywithfileschemaPut.java | 42 ++--- .../FakebodywithfileschemaPutRequestBody.java | 53 ++++++ ...=> FakebodywithfileschemaRequestBody.java} | 6 +- .../FakebodywithqueryparamsPut.java | 62 +++---- ...FakebodywithqueryparamsPutRequestBody.java | 53 ++++++ ...> FakebodywithqueryparamsRequestBody.java} | 6 +- .../FakecasesensitiveparamsPut.java | 30 ++-- .../FakeclassnametestPatch.java | 46 +++--- .../FakeclassnametestPatchRequestBody.java | 11 ++ ...java => FakeclassnametestRequestBody.java} | 4 +- .../FakedeletecoffeeidDelete.java | 30 ++-- .../paths/fakehealth/FakehealthGet.java | 20 +-- .../FakeinlineadditionalpropertiesPost.java | 42 ++--- ...neadditionalpropertiesPostRequestBody.java | 53 ++++++ ...nlineadditionalpropertiesRequestBody.java} | 6 +- .../FakeinlinecompositionPost.java | 36 ++--- .../FakeinlinecompositionPostRequestBody.java | 75 +++++++++ ... => FakeinlinecompositionRequestBody.java} | 6 +- .../fakejsonformdata/FakejsonformdataGet.java | 32 ++-- .../get/FakejsonformdataGetRequestBody.java | 53 ++++++ ....java => FakejsonformdataRequestBody.java} | 6 +- .../fakejsonpatch/FakejsonpatchPatch.java | 32 ++-- .../patch/FakejsonpatchPatchRequestBody.java | 53 ++++++ ...ody.java => FakejsonpatchRequestBody.java} | 6 +- .../FakejsonwithcharsetPost.java | 32 ++-- .../FakejsonwithcharsetPostRequestBody.java | 53 ++++++ ...va => FakejsonwithcharsetRequestBody.java} | 6 +- ...kemultiplerequestbodycontenttypesPost.java | 32 ++-- ...equestbodycontenttypesPostRequestBody.java | 75 +++++++++ ...lerequestbodycontenttypesRequestBody.java} | 6 +- .../FakemultipleresponsebodiesGet.java | 20 +-- .../FakemultiplesecuritiesGet.java | 24 +-- .../fakeobjinquery/FakeobjinqueryGet.java | 24 +-- ...akeparametercollisions1ababselfabPost.java | 58 +++---- ...rcollisions1ababselfabPostRequestBody.java | 53 ++++++ ...etercollisions1ababselfabRequestBody.java} | 6 +- .../FakepemcontenttypeGet.java | 32 ++-- .../get/FakepemcontenttypeGetRequestBody.java | 53 ++++++ ...ava => FakepemcontenttypeRequestBody.java} | 6 +- ...epetiduploadimagewithrequiredfilePost.java | 50 +++--- ...dimagewithrequiredfilePostRequestBody.java | 53 ++++++ ...loadimagewithrequiredfileRequestBody.java} | 6 +- .../FakequeryparamwithjsoncontenttypeGet.java | 30 ++-- .../fakeredirection/FakeredirectionGet.java | 20 +-- .../FakerefobjinqueryGet.java | 24 +-- .../FakerefsarraymodelPost.java | 32 ++-- .../FakerefsarraymodelPostRequestBody.java | 53 ++++++ ...ava => FakerefsarraymodelRequestBody.java} | 6 +- .../FakerefsarrayofenumsPost.java | 32 ++-- .../FakerefsarrayofenumsPostRequestBody.java | 53 ++++++ ...a => FakerefsarrayofenumsRequestBody.java} | 6 +- .../fakerefsboolean/FakerefsbooleanPost.java | 32 ++-- .../post/FakerefsbooleanPostRequestBody.java | 53 ++++++ ...y.java => FakerefsbooleanRequestBody.java} | 6 +- ...omposedoneofnumberwithvalidationsPost.java | 32 ++-- ...fnumberwithvalidationsPostRequestBody.java | 53 ++++++ ...neofnumberwithvalidationsRequestBody.java} | 6 +- .../paths/fakerefsenum/FakerefsenumPost.java | 32 ++-- .../post/FakerefsenumPostRequestBody.java | 53 ++++++ ...Body.java => FakerefsenumRequestBody.java} | 6 +- .../fakerefsmammal/FakerefsmammalPost.java | 42 ++--- .../post/FakerefsmammalPostRequestBody.java | 53 ++++++ ...dy.java => FakerefsmammalRequestBody.java} | 6 +- .../fakerefsnumber/FakerefsnumberPost.java | 32 ++-- .../post/FakerefsnumberPostRequestBody.java | 53 ++++++ ...dy.java => FakerefsnumberRequestBody.java} | 6 +- .../FakerefsobjectmodelwithrefpropsPost.java | 32 ++-- ...bjectmodelwithrefpropsPostRequestBody.java | 53 ++++++ ...fsobjectmodelwithrefpropsRequestBody.java} | 6 +- .../fakerefsstring/FakerefsstringPost.java | 32 ++-- .../post/FakerefsstringPostRequestBody.java | 53 ++++++ ...dy.java => FakerefsstringRequestBody.java} | 6 +- .../FakeresponsewithoutschemaGet.java | 20 +-- .../FaketestqueryparamtersPut.java | 30 ++-- .../FakeuploaddownloadfilePost.java | 42 ++--- ...FakeuploaddownloadfilePostRequestBody.java | 53 ++++++ ...=> FakeuploaddownloadfileRequestBody.java} | 6 +- .../fakeuploadfile/FakeuploadfilePost.java | 32 ++-- .../post/FakeuploadfilePostRequestBody.java | 53 ++++++ ...dy.java => FakeuploadfileRequestBody.java} | 6 +- .../fakeuploadfiles/FakeuploadfilesPost.java | 32 ++-- .../post/FakeuploadfilesPostRequestBody.java | 53 ++++++ ...y.java => FakeuploadfilesRequestBody.java} | 6 +- .../FakewildcardresponsesGet.java | 20 +-- .../client/paths/foo/FooGet.java | 20 +-- .../client/paths/pet/PetPost.java | 46 +++--- .../client/paths/pet/PetPut.java | 46 +++--- .../paths/pet/post/PetPostRequestBody.java | 11 ++ .../{RequestBody.java => PetRequestBody.java} | 4 +- .../paths/pet/put/PetPutRequestBody.java | 11 ++ .../{RequestBody.java => PetRequestBody.java} | 4 +- .../petfindbystatus/PetfindbystatusGet.java | 34 ++-- .../paths/petfindbytags/PetfindbytagsGet.java | 34 ++-- .../client/paths/petpetid/PetpetidDelete.java | 38 ++--- .../client/paths/petpetid/PetpetidGet.java | 34 ++-- .../client/paths/petpetid/PetpetidPost.java | 50 +++--- .../post/PetpetidPostRequestBody.java | 53 ++++++ ...uestBody.java => PetpetidRequestBody.java} | 6 +- .../PetpetiduploadimagePost.java | 50 +++--- .../PetpetiduploadimagePostRequestBody.java | 53 ++++++ ...va => PetpetiduploadimageRequestBody.java} | 6 +- .../client/paths/solidus/SolidusGet.java | 20 +-- .../storeinventory/StoreinventoryGet.java | 24 +-- .../paths/storeorder/StoreorderPost.java | 42 ++--- .../post/StoreorderPostRequestBody.java | 53 ++++++ ...stBody.java => StoreorderRequestBody.java} | 6 +- .../StoreorderorderidDelete.java | 30 ++-- .../StoreorderorderidGet.java | 30 ++-- .../client/paths/user/UserPost.java | 42 ++--- .../paths/user/post/UserPostRequestBody.java | 53 ++++++ ...{RequestBody.java => UserRequestBody.java} | 6 +- .../UsercreatewitharrayPost.java | 42 ++--- .../UsercreatewitharrayPostRequestBody.java | 11 ++ ...va => UsercreatewitharrayRequestBody.java} | 4 +- .../UsercreatewithlistPost.java | 42 ++--- .../UsercreatewithlistPostRequestBody.java | 11 ++ ...ava => UsercreatewithlistRequestBody.java} | 4 +- .../client/paths/userlogin/UserloginGet.java | 30 ++-- .../paths/userlogout/UserlogoutGet.java | 20 +-- .../userusername/UserusernameDelete.java | 30 ++-- .../paths/userusername/UserusernameGet.java | 30 ++-- .../paths/userusername/UserusernamePut.java | 62 +++---- .../put/UserusernamePutRequestBody.java | 53 ++++++ ...Body.java => UserusernameRequestBody.java} | 6 +- .../generators/JavaClientGenerator.java | 37 +++-- .../packagename/paths/path/verb/Operation.hbs | 18 +-- 263 files changed, 6661 insertions(+), 1899 deletions(-) create mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeGetRequestBody.md rename samples/client/petstore/java/docs/paths/fake/get/{RequestBody.md => FakeRequestBody.md} (84%) create mode 100644 samples/client/petstore/java/docs/paths/fake/patch/FakePatchRequestBody.md rename samples/client/petstore/java/docs/paths/{pet/post/RequestBody.md => fake/patch/FakeRequestBody.md} (53%) create mode 100644 samples/client/petstore/java/docs/paths/fake/post/FakePostRequestBody.md rename samples/client/petstore/java/docs/paths/fake/post/{RequestBody.md => FakeRequestBody.md} (84%) create mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md rename samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/{RequestBody.md => FakeadditionalpropertieswitharrayofenumsRequestBody.md} (76%) create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md rename samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/{RequestBody.md => FakebodywithfileschemaRequestBody.md} (79%) create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md rename samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/{RequestBody.md => FakebodywithqueryparamsRequestBody.md} (78%) create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/{RequestBody.md => FakeinlineadditionalpropertiesRequestBody.md} (78%) create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/{RequestBody.md => FakeinlinecompositionRequestBody.md} (82%) create mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md rename samples/client/petstore/java/docs/paths/fakejsonformdata/get/{RequestBody.md => FakejsonformdataRequestBody.md} (82%) create mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md rename samples/client/petstore/java/docs/paths/fakejsonpatch/patch/{RequestBody.md => FakejsonpatchRequestBody.md} (81%) create mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/{RequestBody.md => FakejsonwithcharsetRequestBody.md} (79%) create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/{RequestBody.md => FakemultiplerequestbodycontenttypesRequestBody.md} (81%) create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/{RequestBody.md => Fakeparametercollisions1ababselfabRequestBody.md} (75%) create mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md rename samples/client/petstore/java/docs/paths/fakepemcontenttype/get/{RequestBody.md => FakepemcontenttypeRequestBody.md} (79%) create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md rename samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/{RequestBody.md => FakepetiduploadimagewithrequiredfileRequestBody.md} (77%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/{RequestBody.md => FakerefsarraymodelRequestBody.md} (79%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/{RequestBody.md => FakerefsarrayofenumsRequestBody.md} (79%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakerefsboolean/post/{RequestBody.md => FakerefsbooleanRequestBody.md} (79%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/{RequestBody.md => FakerefscomposedoneofnumberwithvalidationsRequestBody.md} (75%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakerefsenum/post/{RequestBody.md => FakerefsenumRequestBody.md} (80%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakerefsmammal/post/{RequestBody.md => FakerefsmammalRequestBody.md} (80%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakerefsnumber/post/{RequestBody.md => FakerefsnumberRequestBody.md} (80%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/{RequestBody.md => FakerefsobjectmodelwithrefpropsRequestBody.md} (77%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakerefsstring/post/{RequestBody.md => FakerefsstringRequestBody.md} (79%) create mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md rename samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/{RequestBody.md => FakeuploaddownloadfileRequestBody.md} (78%) create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md rename samples/client/petstore/java/docs/paths/fakeuploadfile/post/{RequestBody.md => FakeuploadfileRequestBody.md} (81%) create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md rename samples/client/petstore/java/docs/paths/fakeuploadfiles/post/{RequestBody.md => FakeuploadfilesRequestBody.md} (81%) create mode 100644 samples/client/petstore/java/docs/paths/pet/post/PetPostRequestBody.md rename samples/client/petstore/java/docs/paths/{anotherfakedummy/patch/RequestBody.md => pet/post/PetRequestBody.md} (54%) rename samples/client/petstore/java/docs/paths/{fake/patch/RequestBody.md => pet/put/PetPutRequestBody.md} (53%) rename samples/client/petstore/java/docs/paths/{fakeclassnametest/patch/RequestBody.md => pet/put/PetRequestBody.md} (54%) delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/RequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostRequestBody.md rename samples/client/petstore/java/docs/paths/petpetid/post/{RequestBody.md => PetpetidRequestBody.md} (83%) create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md rename samples/client/petstore/java/docs/paths/petpetiduploadimage/post/{RequestBody.md => PetpetiduploadimageRequestBody.md} (80%) create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostRequestBody.md rename samples/client/petstore/java/docs/paths/storeorder/post/{RequestBody.md => StoreorderRequestBody.md} (80%) create mode 100644 samples/client/petstore/java/docs/paths/user/post/UserPostRequestBody.md rename samples/client/petstore/java/docs/paths/user/post/{RequestBody.md => UserRequestBody.md} (82%) delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/RequestBody.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/UsercreatewitharrayRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/RequestBody.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/UsercreatewithlistRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutRequestBody.md rename samples/client/petstore/java/docs/paths/userusername/put/{RequestBody.md => UserusernameRequestBody.md} (80%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/{RequestBody.java => AnotherfakedummyRequestBody.java} (65%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/{RequestBody.java => FakeRequestBody.java} (93%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/{RequestBody.java => FakeRequestBody.java} (69%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/{RequestBody.java => FakeRequestBody.java} (93%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/{RequestBody.java => FakeadditionalpropertieswitharrayofenumsRequestBody.java} (88%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/{RequestBody.java => FakebodywithfileschemaRequestBody.java} (90%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/{RequestBody.java => FakebodywithqueryparamsRequestBody.java} (90%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/{RequestBody.java => FakeclassnametestRequestBody.java} (65%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/{RequestBody.java => FakeinlineadditionalpropertiesRequestBody.java} (89%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/{RequestBody.java => FakeinlinecompositionRequestBody.java} (93%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/{RequestBody.java => FakejsonformdataRequestBody.java} (92%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/{RequestBody.java => FakejsonpatchRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/{RequestBody.java => FakejsonwithcharsetRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/{RequestBody.java => FakemultiplerequestbodycontenttypesRequestBody.java} (92%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/{RequestBody.java => Fakeparametercollisions1ababselfabRequestBody.java} (89%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/{RequestBody.java => FakepemcontenttypeRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/{RequestBody.java => FakepetiduploadimagewithrequiredfileRequestBody.java} (89%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/{RequestBody.java => FakerefsarraymodelRequestBody.java} (90%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/{RequestBody.java => FakerefsarrayofenumsRequestBody.java} (90%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/{RequestBody.java => FakerefsbooleanRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/{RequestBody.java => FakerefscomposedoneofnumberwithvalidationsRequestBody.java} (88%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/{RequestBody.java => FakerefsenumRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/{RequestBody.java => FakerefsmammalRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/{RequestBody.java => FakerefsnumberRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/{RequestBody.java => FakerefsobjectmodelwithrefpropsRequestBody.java} (89%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/{RequestBody.java => FakerefsstringRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/{RequestBody.java => FakeuploaddownloadfileRequestBody.java} (90%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/{RequestBody.java => FakeuploadfileRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/{RequestBody.java => FakeuploadfilesRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/{RequestBody.java => PetRequestBody.java} (70%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/{RequestBody.java => PetRequestBody.java} (70%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/{RequestBody.java => PetpetidRequestBody.java} (92%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/{RequestBody.java => PetpetiduploadimageRequestBody.java} (90%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/{RequestBody.java => StoreorderRequestBody.java} (91%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/{RequestBody.java => UserRequestBody.java} (92%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/{RequestBody.java => UsercreatewitharrayRequestBody.java} (64%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/{RequestBody.java => UsercreatewithlistRequestBody.java} (63%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/{RequestBody.java => UserusernameRequestBody.java} (91%) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index c2b6854bfc1..76f41a28fa5 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -191,7 +191,7 @@ docs/components/securityschemes/HttpSignatureTest.md docs/components/securityschemes/OpenIdConnectTest.md docs/components/securityschemes/PetstoreAuth.md docs/paths/anotherfakedummy/AnotherfakedummyPatch.md -docs/paths/anotherfakedummy/patch/RequestBody.md +docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md docs/paths/anotherfakedummy/patch/Responses.md docs/paths/anotherfakedummy/patch/responses/Code200Response.md docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -231,9 +231,9 @@ docs/paths/fake/delete/parameters/parameter4/Schema4.md docs/paths/fake/delete/parameters/parameter5/Schema5.md docs/paths/fake/delete/responses/Code200Response.md docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md +docs/paths/fake/get/FakeGetRequestBody.md docs/paths/fake/get/HeaderParameters.md docs/paths/fake/get/QueryParameters.md -docs/paths/fake/get/RequestBody.md docs/paths/fake/get/Responses.md docs/paths/fake/get/parameters/parameter0/Schema0.md docs/paths/fake/get/parameters/parameter1/Schema1.md @@ -245,31 +245,31 @@ docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/Applicatio docs/paths/fake/get/responses/Code200Response.md docs/paths/fake/get/responses/Code404Response.md docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fake/patch/RequestBody.md +docs/paths/fake/patch/FakePatchRequestBody.md docs/paths/fake/patch/Responses.md docs/paths/fake/patch/responses/Code200Response.md docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +docs/paths/fake/post/FakePostRequestBody.md docs/paths/fake/post/FakePostSecurityInfo.md -docs/paths/fake/post/RequestBody.md docs/paths/fake/post/Responses.md docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md docs/paths/fake/post/responses/Code200Response.md docs/paths/fake/post/responses/Code404Response.md docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md -docs/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.md +docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md -docs/paths/fakebodywithfileschema/put/RequestBody.md +docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md docs/paths/fakebodywithfileschema/put/Responses.md docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithfileschema/put/responses/Code200Response.md docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md docs/paths/fakebodywithqueryparams/put/QueryParameters.md -docs/paths/fakebodywithqueryparams/put/RequestBody.md docs/paths/fakebodywithqueryparams/put/Responses.md docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -282,8 +282,8 @@ docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md docs/paths/fakecasesensitiveparams/put/responses/Code200Response.md docs/paths/fakeclassnametest/FakeclassnametestPatch.md +docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md -docs/paths/fakeclassnametest/patch/RequestBody.md docs/paths/fakeclassnametest/patch/Responses.md docs/paths/fakeclassnametest/patch/responses/Code200Response.md docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -299,13 +299,13 @@ docs/paths/fakehealth/get/Responses.md docs/paths/fakehealth/get/responses/Code200Response.md docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md -docs/paths/fakeinlineadditionalproperties/post/RequestBody.md +docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md docs/paths/fakeinlineadditionalproperties/post/Responses.md docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlineadditionalproperties/post/responses/Code200Response.md docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md docs/paths/fakeinlinecomposition/post/QueryParameters.md -docs/paths/fakeinlinecomposition/post/RequestBody.md docs/paths/fakeinlinecomposition/post/Responses.md docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md @@ -315,23 +315,23 @@ docs/paths/fakeinlinecomposition/post/responses/Code200Response.md docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakejsonformdata/FakejsonformdataGet.md -docs/paths/fakejsonformdata/get/RequestBody.md +docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md docs/paths/fakejsonformdata/get/Responses.md docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md docs/paths/fakejsonformdata/get/responses/Code200Response.md docs/paths/fakejsonpatch/FakejsonpatchPatch.md -docs/paths/fakejsonpatch/patch/RequestBody.md +docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md docs/paths/fakejsonpatch/patch/Responses.md docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md docs/paths/fakejsonpatch/patch/responses/Code200Response.md docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md -docs/paths/fakejsonwithcharset/post/RequestBody.md +docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md docs/paths/fakejsonwithcharset/post/Responses.md docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md docs/paths/fakejsonwithcharset/post/responses/Code200Response.md docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md -docs/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.md +docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md docs/paths/fakemultiplerequestbodycontenttypes/post/Responses.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -358,10 +358,10 @@ docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakeobjinquery/get/responses/Code200Response.md docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md +docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md -docs/paths/fakeparametercollisions1ababselfab/post/RequestBody.md docs/paths/fakeparametercollisions1ababselfab/post/Responses.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md @@ -386,15 +386,15 @@ docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicati docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md -docs/paths/fakepemcontenttype/get/RequestBody.md +docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md docs/paths/fakepemcontenttype/get/Responses.md docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md docs/paths/fakepemcontenttype/get/responses/Code200Response.md docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md -docs/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.md docs/paths/fakepetiduploadimagewithrequiredfile/post/Responses.md docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -417,55 +417,55 @@ docs/paths/fakerefobjinquery/get/Responses.md docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakerefobjinquery/get/responses/Code200Response.md docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md -docs/paths/fakerefsarraymodel/post/RequestBody.md +docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md docs/paths/fakerefsarraymodel/post/Responses.md docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarraymodel/post/responses/Code200Response.md docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md -docs/paths/fakerefsarrayofenums/post/RequestBody.md +docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md docs/paths/fakerefsarrayofenums/post/Responses.md docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsboolean/FakerefsbooleanPost.md -docs/paths/fakerefsboolean/post/RequestBody.md +docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md docs/paths/fakerefsboolean/post/Responses.md docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsboolean/post/responses/Code200Response.md docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md -docs/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.md +docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsenum/FakerefsenumPost.md -docs/paths/fakerefsenum/post/RequestBody.md +docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md docs/paths/fakerefsenum/post/Responses.md docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsenum/post/responses/Code200Response.md docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsmammal/FakerefsmammalPost.md -docs/paths/fakerefsmammal/post/RequestBody.md +docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md docs/paths/fakerefsmammal/post/Responses.md docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsmammal/post/responses/Code200Response.md docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsnumber/FakerefsnumberPost.md -docs/paths/fakerefsnumber/post/RequestBody.md +docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md docs/paths/fakerefsnumber/post/Responses.md docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsnumber/post/responses/Code200Response.md docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md -docs/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.md +docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md docs/paths/fakerefsobjectmodelwithrefprops/post/Responses.md docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsstring/FakerefsstringPost.md -docs/paths/fakerefsstring/post/RequestBody.md +docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md docs/paths/fakerefsstring/post/Responses.md docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsstring/post/responses/Code200Response.md @@ -484,19 +484,19 @@ docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md docs/paths/faketestqueryparamters/put/responses/Code200Response.md docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md -docs/paths/fakeuploaddownloadfile/post/RequestBody.md +docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md docs/paths/fakeuploaddownloadfile/post/Responses.md docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md docs/paths/fakeuploadfile/FakeuploadfilePost.md -docs/paths/fakeuploadfile/post/RequestBody.md +docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md docs/paths/fakeuploadfile/post/Responses.md docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakeuploadfile/post/responses/Code200Response.md docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeuploadfiles/FakeuploadfilesPost.md -docs/paths/fakeuploadfiles/post/RequestBody.md +docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md docs/paths/fakeuploadfiles/post/Responses.md docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakeuploadfiles/post/responses/Code200Response.md @@ -525,16 +525,16 @@ docs/paths/foo/get/servers/FooGetServer1.md docs/paths/foo/get/servers/server1/Variables.md docs/paths/pet/PetPost.md docs/paths/pet/PetPut.md +docs/paths/pet/post/PetPostRequestBody.md docs/paths/pet/post/PetPostSecurityInfo.md -docs/paths/pet/post/RequestBody.md docs/paths/pet/post/Responses.md docs/paths/pet/post/responses/Code200Response.md docs/paths/pet/post/responses/Code405Response.md docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md +docs/paths/pet/put/PetPutRequestBody.md docs/paths/pet/put/PetPutSecurityInfo.md -docs/paths/pet/put/RequestBody.md docs/paths/pet/put/Responses.md docs/paths/pet/put/responses/Code400Response.md docs/paths/pet/put/responses/Code404Response.md @@ -587,8 +587,8 @@ docs/paths/petpetid/get/responses/code200response/content/applicationjson/Applic docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md docs/paths/petpetid/post/PathParameters.md +docs/paths/petpetid/post/PetpetidPostRequestBody.md docs/paths/petpetid/post/PetpetidPostSecurityInfo.md -docs/paths/petpetid/post/RequestBody.md docs/paths/petpetid/post/Responses.md docs/paths/petpetid/post/parameters/parameter0/Schema0.md docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -597,8 +597,8 @@ docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md docs/paths/petpetiduploadimage/post/PathParameters.md +docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md -docs/paths/petpetiduploadimage/post/RequestBody.md docs/paths/petpetiduploadimage/post/Responses.md docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -613,8 +613,8 @@ docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md docs/paths/storeinventory/get/responses/Code200Response.md docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md docs/paths/storeorder/StoreorderPost.md -docs/paths/storeorder/post/RequestBody.md docs/paths/storeorder/post/Responses.md +docs/paths/storeorder/post/StoreorderPostRequestBody.md docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/storeorder/post/responses/Code200Response.md docs/paths/storeorder/post/responses/Code400Response.md @@ -636,17 +636,17 @@ docs/paths/storeorderorderid/get/responses/Code404Response.md docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/user/UserPost.md -docs/paths/user/post/RequestBody.md docs/paths/user/post/Responses.md +docs/paths/user/post/UserPostRequestBody.md docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/user/post/responses/CodedefaultResponse.md docs/paths/usercreatewitharray/UsercreatewitharrayPost.md -docs/paths/usercreatewitharray/post/RequestBody.md docs/paths/usercreatewitharray/post/Responses.md +docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md docs/paths/usercreatewitharray/post/responses/CodedefaultResponse.md docs/paths/usercreatewithlist/UsercreatewithlistPost.md -docs/paths/usercreatewithlist/post/RequestBody.md docs/paths/usercreatewithlist/post/Responses.md +docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md docs/paths/usercreatewithlist/post/responses/CodedefaultResponse.md docs/paths/userlogin/UserloginGet.md docs/paths/userlogin/get/QueryParameters.md @@ -678,8 +678,8 @@ docs/paths/userusername/get/responses/Code404Response.md docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/userusername/put/PathParameters.md -docs/paths/userusername/put/RequestBody.md docs/paths/userusername/put/Responses.md +docs/paths/userusername/put/UserusernamePutRequestBody.md docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/userusername/put/responses/Code400Response.md docs/paths/userusername/put/responses/Code404Response.md @@ -1042,7 +1042,7 @@ src/main/java/org/openapijsonschematools/client/paths/Userlogin.java src/main/java/org/openapijsonschematools/client/paths/Userlogout.java src/main/java/org/openapijsonschematools/client/paths/Userusername.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java -src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/Responses.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1097,10 +1097,10 @@ src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/par src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java @@ -1118,32 +1118,32 @@ src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/conte src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fake/patch/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/Responses.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java -src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java @@ -1161,8 +1161,8 @@ src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/pu src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java +src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -1180,14 +1180,14 @@ src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/Responses.j src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java @@ -1199,23 +1199,23 @@ src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -1244,11 +1244,11 @@ src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/paramet src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java @@ -1292,16 +1292,16 @@ src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ab src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java -src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java +src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java @@ -1329,55 +1329,55 @@ src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/para src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java -src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java @@ -1403,19 +1403,19 @@ src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java @@ -1444,16 +1444,16 @@ src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServ src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.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 src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/pet/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/pet/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/pet/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/pet/put/Responses.java src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java @@ -1516,8 +1516,8 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/cod src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java @@ -1528,8 +1528,8 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/Pet src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java @@ -1545,8 +1545,8 @@ src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/Storein src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java -src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java @@ -1572,17 +1572,17 @@ src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/resp src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java -src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/user/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java @@ -1628,8 +1628,8 @@ src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/Responses.java +src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md index e84054234fb..37129dec265 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.RequestBody; +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; @@ -78,7 +78,7 @@ Client1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); +AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody = new AnotherfakedummyPatchRequestBody.ApplicationjsonRequestBody(requestBodyPayload); var request = new AnotherfakedummyPatch.PatchRequestBuilder() .requestBody(requestBody) @@ -123,7 +123,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/anotherfakedummy/patch/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -135,7 +135,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/anotherfakedummy/patch/RequestBody.md#sealedrequestbody) | requestBody | +| [AnotherfakedummyPatchRequestBody.@Nullable SealedRequestBody](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -169,6 +169,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Patch0RequestBuilder](#patch0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/anotherfakedummy/patch/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/AnotherfakedummyRequestBody.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.md new file mode 100644 index 00000000000..cbe277ec997 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.md @@ -0,0 +1,17 @@ +# AnotherfakedummyRequestBody + +public class AnotherfakedummyRequestBody 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 | [AnotherfakedummyRequestBody.AnotherfakedummyRequestBody1](#anotherfakedummyrequestbody1)
class that serializes request bodies | + +## AnotherfakedummyRequestBody1 +public static class AnotherfakedummyRequestBody1 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/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index fa9c34ff802..d66cfa8c1ed 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -31,7 +31,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.paths.fake.get.RequestBody; +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.HeaderParameters; import org.openapijsonschematools.client.paths.fake.get.QueryParameters; @@ -113,7 +113,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fake/get/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [FakeGetRequestBody.@Nullable SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) | requestBody
optional | | [HeaderParameters.@Nullable HeaderParametersMap](../../paths/fake/get/HeaderParameters.md#headerparametersmap) | headerParameters
optional | | [QueryParameters.@Nullable QueryParametersMap](../../paths/fake/get/QueryParameters.md#queryparametersmap) | queryParameters
optional | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | @@ -133,7 +133,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) | requestBody([RequestBody.SealedRequestBody](../../paths/fake/get/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | requestBody([FakeGetRequestBody.SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/fake/get/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fake/get/QueryParameters.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 | diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md index 66437cfc509..f5f004c0072 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePatch.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.fake.patch.RequestBody; +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; @@ -78,7 +78,7 @@ Client1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); +FakePatchRequestBody.SealedRequestBody requestBody = new FakePatchRequestBody.ApplicationjsonRequestBody(requestBodyPayload); var request = new FakePatch.PatchRequestBuilder() .requestBody(requestBody) @@ -123,7 +123,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/fake/patch/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -135,7 +135,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fake/patch/RequestBody.md#sealedrequestbody) | requestBody | +| [FakePatchRequestBody.@Nullable SealedRequestBody](../../paths/fake/patch/FakePatchRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -169,6 +169,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Patch0RequestBuilder](#patch0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fake/patch/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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 index 0d00bbe2fb4..3e5649d442b 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePost.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -31,7 +31,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.paths.fake.post.RequestBody; +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; @@ -123,7 +123,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fake/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -142,7 +142,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fake/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fake/get/FakeRequestBody.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fake/get/RequestBody.md rename to samples/client/petstore/java/docs/paths/fake/get/FakeRequestBody.md index f65e52d102c..2efd04c1445 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakeRequestBody -public class RequestBody +public class FakeRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakeRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeRequestBody.FakeRequestBody1](#fakerequestbody1)
class that serializes request bodies | +| sealed interface | [FakeRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakeRequestBody1 +public static class FakeRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakeRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | 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/pet/post/RequestBody.md b/samples/client/petstore/java/docs/paths/fake/patch/FakeRequestBody.md similarity index 53% rename from samples/client/petstore/java/docs/paths/pet/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fake/patch/FakeRequestBody.md index ee81d9d563b..f3d7ab059b2 100644 --- a/samples/client/petstore/java/docs/paths/pet/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fake/patch/FakeRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakeRequestBody -public class RequestBody extends [Pet](../../../components/requestbodies/Pet.md) +public class FakeRequestBody 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 @@ -8,10 +8,10 @@ A class (extended from the $ref class) that contains necessary nested request bo ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | +| static class | [FakeRequestBody.FakeRequestBody1](#fakerequestbody1)
class that serializes request bodies | -## RequestBody1 -public static class RequestBody1 extends [Pet1](../../../components/requestbodies/Pet.md#pet1)
+## FakeRequestBody1 +public static class FakeRequestBody1 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/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/RequestBody.md b/samples/client/petstore/java/docs/paths/fake/post/FakeRequestBody.md similarity index 84% rename from samples/client/petstore/java/docs/paths/fake/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fake/post/FakeRequestBody.md index 0b707158f4f..9bb57a78621 100644 --- a/samples/client/petstore/java/docs/paths/fake/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fake/post/FakeRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakeRequestBody -public class RequestBody +public class FakeRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakeRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeRequestBody.FakeRequestBody1](#fakerequestbody1)
class that serializes request bodies | +| sealed interface | [FakeRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakeRequestBody1 +public static class FakeRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakeRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md index 02bedeeb02f..d1acaa2c84c 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -31,7 +31,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.paths.fakeadditionalpropertieswitharrayofenums.get.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.md index 1619a3e89be..bcc3e1754fb 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakeadditionalpropertieswitharrayofenumsRequestBody -public class RequestBody +public class FakeadditionalpropertieswitharrayofenumsRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakeadditionalpropertieswitharrayofenumsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeadditionalpropertieswitharrayofenumsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeadditionalpropertieswitharrayofenumsRequestBody.FakeadditionalpropertieswitharrayofenumsRequestBody1](#fakeadditionalpropertieswitharrayofenumsrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeadditionalpropertieswitharrayofenumsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeadditionalpropertieswitharrayofenumsRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakeadditionalpropertieswitharrayofenumsRequestBody1 +public static class FakeadditionalpropertieswitharrayofenumsRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakeadditionalpropertieswitharrayofenumsRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md index 58383b2eb29..96ade871352 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.RequestBody; +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; @@ -123,7 +123,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/fakebodywithfileschema/put/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -135,7 +135,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithfileschema/put/RequestBody.md#sealedrequestbody) | requestBody | +| [FakebodywithfileschemaPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -169,6 +169,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakebodywithfileschema/put/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.md index 5184498774c..b2dd7cef252 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakebodywithfileschemaRequestBody -public class RequestBody +public class FakebodywithfileschemaRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakebodywithfileschemaRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakebodywithfileschemaRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakebodywithfileschemaRequestBody.FakebodywithfileschemaRequestBody1](#fakebodywithfileschemarequestbody1)
class that serializes request bodies | +| sealed interface | [FakebodywithfileschemaRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakebodywithfileschemaRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakebodywithfileschemaRequestBody1 +public static class FakebodywithfileschemaRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakebodywithfileschemaRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index 1cb4d8ac367..df1650d701a 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.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.RequestBody; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.QueryParameters; import org.openapijsonschematools.client.servers.Server0; @@ -151,7 +151,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/RequestBody.md#sealedrequestbody) | requestBody | +| [FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | | [QueryParameters.QueryParametersMap](../../paths/fakebodywithqueryparams/put/QueryParameters.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 | @@ -164,7 +164,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithqueryparams/put/RequestBody.md#sealedrequestbody) | requestBody | +| [FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | | [QueryParameters.@Nullable QueryParametersMap](../../paths/fakebodywithqueryparams/put/QueryParameters.md#queryparametersmap) | queryParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -214,7 +214,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [Put00RequestBuilder](#put00requestbuilder) | requestBody([FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | ## PutRequestBuilder public static class PutRequestBuilder
@@ -229,7 +229,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put01RequestBuilder](#put01requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [Put01RequestBuilder](#put01requestbuilder) | requestBody([FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | | [Put10RequestBuilder](#put10requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakebodywithqueryparams/put/QueryParameters.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/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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.md similarity index 78% rename from samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.md index bbaa1842a70..91962ab16ec 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakebodywithqueryparamsRequestBody -public class RequestBody +public class FakebodywithqueryparamsRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakebodywithqueryparamsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakebodywithqueryparamsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakebodywithqueryparamsRequestBody.FakebodywithqueryparamsRequestBody1](#fakebodywithqueryparamsrequestbody1)
class that serializes request bodies | +| sealed interface | [FakebodywithqueryparamsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakebodywithqueryparamsRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakebodywithqueryparamsRequestBody1 +public static class FakebodywithqueryparamsRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakebodywithqueryparamsRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md index d06c82b580f..fe2c46954fb 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -35,7 +35,7 @@ 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.RequestBody; +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; @@ -90,7 +90,7 @@ Client1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); +FakeclassnametestPatchRequestBody.SealedRequestBody requestBody = new FakeclassnametestPatchRequestBody.ApplicationjsonRequestBody(requestBodyPayload); var request = new FakeclassnametestPatch.PatchRequestBuilder() .requestBody(requestBody) @@ -135,7 +135,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/fakeclassnametest/patch/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -148,7 +148,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakeclassnametest/patch/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Patch0RequestBuilder](#patch0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeclassnametest/patch/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/FakeclassnametestRequestBody.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.md new file mode 100644 index 00000000000..230fddee212 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.md @@ -0,0 +1,17 @@ +# FakeclassnametestRequestBody + +public class FakeclassnametestRequestBody 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 | [FakeclassnametestRequestBody.FakeclassnametestRequestBody1](#fakeclassnametestrequestbody1)
class that serializes request bodies | + +## FakeclassnametestRequestBody1 +public static class FakeclassnametestRequestBody1 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/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md index afc9cd4b960..5844d7dfc91 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.RequestBody; +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; @@ -121,7 +121,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -133,7 +133,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/RequestBody.md#sealedrequestbody) | requestBody | +| [FakeinlineadditionalpropertiesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -167,6 +167,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.md similarity index 78% rename from samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.md index a7b497c88fa..5bec0201da8 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakeinlineadditionalpropertiesRequestBody -public class RequestBody +public class FakeinlineadditionalpropertiesRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakeinlineadditionalpropertiesRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeinlineadditionalpropertiesRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeinlineadditionalpropertiesRequestBody.FakeinlineadditionalpropertiesRequestBody1](#fakeinlineadditionalpropertiesrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeinlineadditionalpropertiesRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeinlineadditionalpropertiesRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakeinlineadditionalpropertiesRequestBody1 +public static class FakeinlineadditionalpropertiesRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakeinlineadditionalpropertiesRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index 9cf4c9f6c8d..c82f491a0f7 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -31,7 +31,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.paths.fakeinlinecomposition.post.RequestBody; +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.QueryParameters; import org.openapijsonschematools.client.RootServerInfo; @@ -114,7 +114,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakeinlinecomposition/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) | requestBody
optional | | [QueryParameters.@Nullable QueryParametersMap](../../paths/fakeinlinecomposition/post/QueryParameters.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 | @@ -133,7 +133,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeinlinecomposition/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeinlinecompositionPostRequestBody.SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [PostRequestBuilder](#postrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakeinlinecomposition/post/QueryParameters.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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.md similarity index 82% rename from samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.md index 42b8f6dd39d..fec86858e6d 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakeinlinecompositionRequestBody -public class RequestBody +public class FakeinlinecompositionRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,13 +12,13 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| record | [RequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | -| record | [RequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakeinlinecompositionRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeinlinecompositionRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| record | [FakeinlinecompositionRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeinlinecompositionRequestBody.FakeinlinecompositionRequestBody1](#fakeinlinecompositionrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeinlinecompositionRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeinlinecompositionRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| record | [FakeinlinecompositionRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -63,15 +63,15 @@ class storing schema info for a specific contentType | [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakeinlinecompositionRequestBody1 +public static class FakeinlinecompositionRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakeinlinecompositionRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md index 3598b0bca5b..62214a68b33 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -31,7 +31,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.paths.fakejsonformdata.get.RequestBody; +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.Server0; @@ -107,7 +107,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakejsonformdata/get/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -125,7 +125,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) | requestBody([RequestBody.SealedRequestBody](../../paths/fakejsonformdata/get/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataRequestBody.md similarity index 82% rename from samples/client/petstore/java/docs/paths/fakejsonformdata/get/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataRequestBody.md index e90d97b831b..048f6956f10 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakejsonformdataRequestBody -public class RequestBody +public class FakejsonformdataRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakejsonformdataRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakejsonformdataRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakejsonformdataRequestBody.FakejsonformdataRequestBody1](#fakejsonformdatarequestbody1)
class that serializes request bodies | +| sealed interface | [FakejsonformdataRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakejsonformdataRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakejsonformdataRequestBody1 +public static class FakejsonformdataRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakejsonformdataRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md index 05d71832261..26993afbe44 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -31,7 +31,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.paths.fakejsonpatch.patch.RequestBody; +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.Server0; @@ -107,7 +107,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakejsonpatch/patch/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -125,7 +125,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 | -| [PatchRequestBuilder](#patchrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakejsonpatch/patch/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.md similarity index 81% rename from samples/client/petstore/java/docs/paths/fakejsonpatch/patch/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.md index 8f4044c6273..0e403867f40 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakejsonpatchRequestBody -public class RequestBody +public class FakejsonpatchRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonpatchjsonMediaType](#applicationjsonpatchjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonpatchjsonRequestBody](#applicationjsonpatchjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakejsonpatchRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakejsonpatchRequestBody.ApplicationjsonpatchjsonMediaType](#applicationjsonpatchjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakejsonpatchRequestBody.FakejsonpatchRequestBody1](#fakejsonpatchrequestbody1)
class that serializes request bodies | +| sealed interface | [FakejsonpatchRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakejsonpatchRequestBody.ApplicationjsonpatchjsonRequestBody](#applicationjsonpatchjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1](../../../paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md#applicationjsonpatchjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakejsonpatchRequestBody1 +public static class FakejsonpatchRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakejsonpatchRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md index c60720d53ef..9632e6b3d0e 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -31,7 +31,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.paths.fakejsonwithcharset.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakejsonwithcharset/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakejsonwithcharset/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.md index 8e7015ce024..f9f1f2343dd 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakejsonwithcharsetRequestBody -public class RequestBody +public class FakejsonwithcharsetRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.Applicationjsoncharsetutf8RequestBody](#applicationjsoncharsetutf8requestbody)
implements sealed interface to store request body input | +| sealed interface | [FakejsonwithcharsetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakejsonwithcharsetRequestBody.Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakejsonwithcharsetRequestBody.FakejsonwithcharsetRequestBody1](#fakejsonwithcharsetrequestbody1)
class that serializes request bodies | +| sealed interface | [FakejsonwithcharsetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakejsonwithcharsetRequestBody.Applicationjsoncharsetutf8RequestBody](#applicationjsoncharsetutf8requestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakejsonwithcharsetRequestBody1 +public static class FakejsonwithcharsetRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakejsonwithcharsetRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md index 3184d010bc9..d3fab9cf013 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -31,7 +31,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.paths.fakemultiplerequestbodycontenttypes.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.md similarity index 81% rename from samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.md index 5258ce593d8..86d18acd9c4 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakemultiplerequestbodycontenttypesRequestBody -public class RequestBody +public class FakemultiplerequestbodycontenttypesRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,13 +12,13 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| record | [RequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | -| record | [RequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakemultiplerequestbodycontenttypesRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakemultiplerequestbodycontenttypesRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| record | [FakemultiplerequestbodycontenttypesRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakemultiplerequestbodycontenttypesRequestBody.FakemultiplerequestbodycontenttypesRequestBody1](#fakemultiplerequestbodycontenttypesrequestbody1)
class that serializes request bodies | +| sealed interface | [FakemultiplerequestbodycontenttypesRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakemultiplerequestbodycontenttypesRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| record | [FakemultiplerequestbodycontenttypesRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -63,15 +63,15 @@ class storing schema info for a specific contentType | [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakemultiplerequestbodycontenttypesRequestBody1 +public static class FakemultiplerequestbodycontenttypesRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakemultiplerequestbodycontenttypesRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index 5fd7d2abb17..8451889d702 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -33,7 +33,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.paths.fakeparametercollisions1ababselfab.post.RequestBody; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostRequestBody; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.HeaderParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.QueryParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.CookieParameters; @@ -135,7 +135,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PathParameters.PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/PathParameters.md#pathparametersmap) | pathParameters | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody
optional | | [HeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md#headerparametersmap) | headerParameters
optional | | [QueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/QueryParameters.md#queryparametersmap) | queryParameters
optional | | [CookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/CookieParameters.md#cookieparametersmap) | cookieParameters
optional | @@ -151,7 +151,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PathParameters.@Nullable PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/PathParameters.md#pathparametersmap) | pathParameters | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/RequestBody.md#sealedrequestbody) | requestBody | +| [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody | | [HeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md#headerparametersmap) | headerParameters | | [QueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/QueryParameters.md#queryparametersmap) | queryParameters | | [CookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/CookieParameters.md#cookieparametersmap) | cookieParameters | @@ -172,7 +172,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) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/QueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | cookieParameters([CookieParametersCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/CookieParameters.md#cookieparametersmap) cookieParameters)
sets the optional property | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.md similarity index 75% rename from samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.md index ad5c1348c48..67cde2196e9 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# Fakeparametercollisions1ababselfabRequestBody -public class RequestBody +public class Fakeparametercollisions1ababselfabRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [Fakeparametercollisions1ababselfabRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [Fakeparametercollisions1ababselfabRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [Fakeparametercollisions1ababselfabRequestBody.Fakeparametercollisions1ababselfabRequestBody1](#fakeparametercollisions1ababselfabrequestbody1)
class that serializes request bodies | +| sealed interface | [Fakeparametercollisions1ababselfabRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [Fakeparametercollisions1ababselfabRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## Fakeparametercollisions1ababselfabRequestBody1 +public static class Fakeparametercollisions1ababselfabRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| Fakeparametercollisions1ababselfabRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md index 36f097b45ca..6c189334e96 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -31,7 +31,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.paths.fakepemcontenttype.get.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakepemcontenttype/get/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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) | requestBody([RequestBody.SealedRequestBody](../../paths/fakepemcontenttype/get/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakepemcontenttype/get/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.md index b15697012da..a5da390278d 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakepemcontenttypeRequestBody -public class RequestBody +public class FakepemcontenttypeRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationxpemfileMediaType](#applicationxpemfilemediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationxpemfileRequestBody](#applicationxpemfilerequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakepemcontenttypeRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakepemcontenttypeRequestBody.ApplicationxpemfileMediaType](#applicationxpemfilemediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakepemcontenttypeRequestBody.FakepemcontenttypeRequestBody1](#fakepemcontenttyperequestbody1)
class that serializes request bodies | +| sealed interface | [FakepemcontenttypeRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakepemcontenttypeRequestBody.ApplicationxpemfileRequestBody](#applicationxpemfilerequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakepemcontenttypeRequestBody1 +public static class FakepemcontenttypeRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakepemcontenttypeRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index 03bfaea922f..033f1a01f34 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -33,7 +33,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.paths.fakepetiduploadimagewithrequiredfile.post.RequestBody; +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.PathParameters; @@ -133,7 +133,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PathParameters.PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md#pathparametersmap) | pathParameters | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -147,7 +147,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PathParameters.@Nullable PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md#pathparametersmap) | pathParameters | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -166,7 +166,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) | requestBody([RequestBody.SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.md similarity index 77% rename from samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.md index dfcea020fdb..d8284f19ea5 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakepetiduploadimagewithrequiredfileRequestBody -public class RequestBody +public class FakepetiduploadimagewithrequiredfileRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakepetiduploadimagewithrequiredfileRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakepetiduploadimagewithrequiredfileRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakepetiduploadimagewithrequiredfileRequestBody.FakepetiduploadimagewithrequiredfileRequestBody1](#fakepetiduploadimagewithrequiredfilerequestbody1)
class that serializes request bodies | +| sealed interface | [FakepetiduploadimagewithrequiredfileRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakepetiduploadimagewithrequiredfileRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakepetiduploadimagewithrequiredfileRequestBody1 +public static class FakepetiduploadimagewithrequiredfileRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakepetiduploadimagewithrequiredfileRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md index 81f682ad609..6134c4761ce 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -31,7 +31,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.paths.fakerefsarraymodel.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakerefsarraymodel/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsarraymodel/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.md index 759fe5a28e5..4ce477b86d3 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakerefsarraymodelRequestBody -public class RequestBody +public class FakerefsarraymodelRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakerefsarraymodelRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsarraymodelRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsarraymodelRequestBody.FakerefsarraymodelRequestBody1](#fakerefsarraymodelrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsarraymodelRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsarraymodelRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakerefsarraymodelRequestBody1 +public static class FakerefsarraymodelRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakerefsarraymodelRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md index 85ee0259c9c..b854dc2dcbb 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -31,7 +31,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.paths.fakerefsarrayofenums.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakerefsarrayofenums/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsarrayofenums/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.md index 8cdc705b119..5874f9c7c3a 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakerefsarrayofenumsRequestBody -public class RequestBody +public class FakerefsarrayofenumsRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakerefsarrayofenumsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsarrayofenumsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsarrayofenumsRequestBody.FakerefsarrayofenumsRequestBody1](#fakerefsarrayofenumsrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsarrayofenumsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsarrayofenumsRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakerefsarrayofenumsRequestBody1 +public static class FakerefsarrayofenumsRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakerefsarrayofenumsRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md index 9a6731e06fd..205939a3c71 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -31,7 +31,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.paths.fakerefsboolean.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakerefsboolean/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsboolean/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakerefsboolean/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.md index 6097f74bea9..05703322082 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakerefsbooleanRequestBody -public class RequestBody +public class FakerefsbooleanRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakerefsbooleanRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsbooleanRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsbooleanRequestBody.FakerefsbooleanRequestBody1](#fakerefsbooleanrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsbooleanRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsbooleanRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakerefsbooleanRequestBody1 +public static class FakerefsbooleanRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakerefsbooleanRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md index fcc34169451..eddc7a3a103 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -31,7 +31,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.paths.fakerefscomposedoneofnumberwithvalidations.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.md similarity index 75% rename from samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.md index 0e61ede331b..8de89548a65 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakerefscomposedoneofnumberwithvalidationsRequestBody -public class RequestBody +public class FakerefscomposedoneofnumberwithvalidationsRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakerefscomposedoneofnumberwithvalidationsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefscomposedoneofnumberwithvalidationsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefscomposedoneofnumberwithvalidationsRequestBody.FakerefscomposedoneofnumberwithvalidationsRequestBody1](#fakerefscomposedoneofnumberwithvalidationsrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefscomposedoneofnumberwithvalidationsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefscomposedoneofnumberwithvalidationsRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakerefscomposedoneofnumberwithvalidationsRequestBody1 +public static class FakerefscomposedoneofnumberwithvalidationsRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakerefscomposedoneofnumberwithvalidationsRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md index 3794eb13acf..ac17104faa9 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -31,7 +31,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.paths.fakerefsenum.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakerefsenum/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsenum/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumRequestBody.md similarity index 80% rename from samples/client/petstore/java/docs/paths/fakerefsenum/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumRequestBody.md index 385c2e4a878..f67e0f96c99 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakerefsenumRequestBody -public class RequestBody +public class FakerefsenumRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakerefsenumRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsenumRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsenumRequestBody.FakerefsenumRequestBody1](#fakerefsenumrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsenumRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsenumRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakerefsenumRequestBody1 +public static class FakerefsenumRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakerefsenumRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md index 374440af66f..50bca2f7eee 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.RequestBody; +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; @@ -114,7 +114,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/fakerefsmammal/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -126,7 +126,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakerefsmammal/post/RequestBody.md#sealedrequestbody) | requestBody | +| [FakerefsmammalPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -160,6 +160,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsmammal/post/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalRequestBody.md similarity index 80% rename from samples/client/petstore/java/docs/paths/fakerefsmammal/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalRequestBody.md index 64fb8aa98e1..ef9dc6c29d6 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakerefsmammalRequestBody -public class RequestBody +public class FakerefsmammalRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakerefsmammalRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsmammalRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsmammalRequestBody.FakerefsmammalRequestBody1](#fakerefsmammalrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsmammalRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsmammalRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakerefsmammalRequestBody1 +public static class FakerefsmammalRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakerefsmammalRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md index 9ed3155438f..54134b0e81d 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -31,7 +31,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.paths.fakerefsnumber.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakerefsnumber/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsnumber/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberRequestBody.md similarity index 80% rename from samples/client/petstore/java/docs/paths/fakerefsnumber/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberRequestBody.md index bf52e31b42d..7dd1341854c 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakerefsnumberRequestBody -public class RequestBody +public class FakerefsnumberRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakerefsnumberRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsnumberRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsnumberRequestBody.FakerefsnumberRequestBody1](#fakerefsnumberrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsnumberRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsnumberRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakerefsnumberRequestBody1 +public static class FakerefsnumberRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakerefsnumberRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md index 925cd6ccae6..2886cf90a0f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -31,7 +31,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.paths.fakerefsobjectmodelwithrefprops.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.md similarity index 77% rename from samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.md index fa402eba521..e935782a129 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakerefsobjectmodelwithrefpropsRequestBody -public class RequestBody +public class FakerefsobjectmodelwithrefpropsRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakerefsobjectmodelwithrefpropsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsobjectmodelwithrefpropsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsobjectmodelwithrefpropsRequestBody.FakerefsobjectmodelwithrefpropsRequestBody1](#fakerefsobjectmodelwithrefpropsrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsobjectmodelwithrefpropsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsobjectmodelwithrefpropsRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakerefsobjectmodelwithrefpropsRequestBody1 +public static class FakerefsobjectmodelwithrefpropsRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakerefsobjectmodelwithrefpropsRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md index 182d0806e85..1342a20e824 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -31,7 +31,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.paths.fakerefsstring.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakerefsstring/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakerefsstring/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringRequestBody.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakerefsstring/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringRequestBody.md index dadb1fcd877..570c93c3fc8 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakerefsstringRequestBody -public class RequestBody +public class FakerefsstringRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakerefsstringRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsstringRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsstringRequestBody.FakerefsstringRequestBody1](#fakerefsstringrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsstringRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsstringRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakerefsstringRequestBody1 +public static class FakerefsstringRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakerefsstringRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md index 8cea840361e..d192dc6b9aa 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.RequestBody; +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; @@ -119,7 +119,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/fakeuploaddownloadfile/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -131,7 +131,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakeuploaddownloadfile/post/RequestBody.md#sealedrequestbody) | requestBody | +| [FakeuploaddownloadfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -165,6 +165,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeuploaddownloadfile/post/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.md similarity index 78% rename from samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.md index f031c76d24d..04b786c09d2 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakeuploaddownloadfileRequestBody -public class RequestBody +public class FakeuploaddownloadfileRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationoctetstreamRequestBody](#applicationoctetstreamrequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakeuploaddownloadfileRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeuploaddownloadfileRequestBody.ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeuploaddownloadfileRequestBody.FakeuploaddownloadfileRequestBody1](#fakeuploaddownloadfilerequestbody1)
class that serializes request bodies | +| sealed interface | [FakeuploaddownloadfileRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeuploaddownloadfileRequestBody.ApplicationoctetstreamRequestBody](#applicationoctetstreamrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakeuploaddownloadfileRequestBody1 +public static class FakeuploaddownloadfileRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakeuploaddownloadfileRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md index e5c6ba2fd3f..67f38a53275 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -31,7 +31,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.paths.fakeuploadfile.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakeuploadfile/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeuploadfile/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfileRequestBody.md similarity index 81% rename from samples/client/petstore/java/docs/paths/fakeuploadfile/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfileRequestBody.md index bd73b367e08..21d1efbe648 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfileRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakeuploadfileRequestBody -public class RequestBody +public class FakeuploadfileRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakeuploadfileRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeuploadfileRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeuploadfileRequestBody.FakeuploadfileRequestBody1](#fakeuploadfilerequestbody1)
class that serializes request bodies | +| sealed interface | [FakeuploadfileRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeuploadfileRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakeuploadfileRequestBody1 +public static class FakeuploadfileRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakeuploadfileRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md index 787858d9e19..8b57fad5bd5 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -31,7 +31,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.paths.fakeuploadfiles.post.RequestBody; +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.Server0; @@ -109,7 +109,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/fakeuploadfiles/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -127,7 +127,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 | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/fakeuploadfiles/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.md similarity index 81% rename from samples/client/petstore/java/docs/paths/fakeuploadfiles/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.md index 0b3ec075d2c..962e0419f7b 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# FakeuploadfilesRequestBody -public class RequestBody +public class FakeuploadfilesRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | +| sealed interface | [FakeuploadfilesRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeuploadfilesRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeuploadfilesRequestBody.FakeuploadfilesRequestBody1](#fakeuploadfilesrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeuploadfilesRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeuploadfilesRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## FakeuploadfilesRequestBody1 +public static class FakeuploadfilesRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| FakeuploadfilesRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md index 9e1e37f248f..f3d5048f255 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPost.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -35,7 +35,7 @@ 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.RequestBody; +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; @@ -124,7 +124,7 @@ Pet1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); +PetPostRequestBody.SealedRequestBody requestBody = new PetPostRequestBody.ApplicationjsonRequestBody(requestBodyPayload); var request = new PetPost.PostRequestBuilder() .requestBody(requestBody) @@ -170,7 +170,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/pet/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -183,7 +183,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/pet/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -219,6 +219,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/pet/post/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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 index cbb849868e3..30369b56688 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPut.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -35,7 +35,7 @@ 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.RequestBody; +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; @@ -121,7 +121,7 @@ Pet1BoxedMap requestBodyPayload = .build(), schemaConfiguration ); -RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); +PetPutRequestBody.SealedRequestBody requestBody = new PetPutRequestBody.ApplicationjsonRequestBody(requestBodyPayload); var request = new PetPut.PutRequestBuilder() .requestBody(requestBody) @@ -166,7 +166,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/pet/put/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -179,7 +179,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/pet/put/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -215,6 +215,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/pet/put/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/anotherfakedummy/patch/RequestBody.md b/samples/client/petstore/java/docs/paths/pet/post/PetRequestBody.md similarity index 54% rename from samples/client/petstore/java/docs/paths/anotherfakedummy/patch/RequestBody.md rename to samples/client/petstore/java/docs/paths/pet/post/PetRequestBody.md index 72d0a1a3ced..e46a30957ae 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/pet/post/PetRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# PetRequestBody -public class RequestBody extends [Client](../../../components/requestbodies/Client.md) +public class PetRequestBody 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 @@ -8,10 +8,10 @@ A class (extended from the $ref class) that contains necessary nested request bo ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | +| static class | [PetRequestBody.PetRequestBody1](#petrequestbody1)
class that serializes request bodies | -## RequestBody1 -public static class RequestBody1 extends [Client1](../../../components/requestbodies/Client.md#client1)
+## PetRequestBody1 +public static class PetRequestBody1 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/fake/patch/RequestBody.md b/samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md similarity index 53% rename from samples/client/petstore/java/docs/paths/fake/patch/RequestBody.md rename to samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md index 72d0a1a3ced..e732123f8df 100644 --- a/samples/client/petstore/java/docs/paths/fake/patch/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# PetPutRequestBody -public class RequestBody extends [Client](../../../components/requestbodies/Client.md) +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 @@ -8,10 +8,10 @@ A class (extended from the $ref class) that contains necessary nested request bo ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | +| static class | [PetPutRequestBody.PetPutRequestBody1](#petputrequestbody1)
class that serializes request bodies | -## RequestBody1 -public static class RequestBody1 extends [Client1](../../../components/requestbodies/Client.md#client1)
+## 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/fakeclassnametest/patch/RequestBody.md b/samples/client/petstore/java/docs/paths/pet/put/PetRequestBody.md similarity index 54% rename from samples/client/petstore/java/docs/paths/fakeclassnametest/patch/RequestBody.md rename to samples/client/petstore/java/docs/paths/pet/put/PetRequestBody.md index 72d0a1a3ced..e46a30957ae 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/pet/put/PetRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# PetRequestBody -public class RequestBody extends [Client](../../../components/requestbodies/Client.md) +public class PetRequestBody 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 @@ -8,10 +8,10 @@ A class (extended from the $ref class) that contains necessary nested request bo ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | +| static class | [PetRequestBody.PetRequestBody1](#petrequestbody1)
class that serializes request bodies | -## RequestBody1 -public static class RequestBody1 extends [Client1](../../../components/requestbodies/Client.md#client1)
+## PetRequestBody1 +public static class PetRequestBody1 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/RequestBody.md b/samples/client/petstore/java/docs/paths/pet/put/RequestBody.md deleted file mode 100644 index ee81d9d563b..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/RequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# RequestBody - -public class RequestBody 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 | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | - -## RequestBody1 -public static class RequestBody1 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/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index c877feb1b13..79f5cfdfc9a 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -33,7 +33,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.paths.petpetid.post.RequestBody; +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.PathParameters; @@ -137,7 +137,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PathParameters.PathParametersMap](../../paths/petpetid/post/PathParameters.md#pathparametersmap) | pathParameters | -| [RequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -151,7 +151,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PathParameters.@Nullable PathParametersMap](../../paths/petpetid/post/PathParameters.md#pathparametersmap) | pathParameters | -| [RequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -170,7 +170,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) | requestBody([RequestBody.SealedRequestBody](../../paths/petpetid/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidRequestBody.md similarity index 83% rename from samples/client/petstore/java/docs/paths/petpetid/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/petpetid/post/PetpetidRequestBody.md index 672ae8e9af1..79c0e3e505c 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# PetpetidRequestBody -public class RequestBody +public class PetpetidRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | +| sealed interface | [PetpetidRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [PetpetidRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | +| static class | [PetpetidRequestBody.PetpetidRequestBody1](#petpetidrequestbody1)
class that serializes request bodies | +| sealed interface | [PetpetidRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [PetpetidRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## PetpetidRequestBody1 +public static class PetpetidRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| PetpetidRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index cf5194ab47d..c8e92dd957c 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -33,7 +33,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.paths.petpetiduploadimage.post.RequestBody; +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.PathParameters; @@ -133,7 +133,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PathParameters.PathParametersMap](../../paths/petpetiduploadimage/post/PathParameters.md#pathparametersmap) | pathParameters | -| [RequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/RequestBody.md#sealedrequestbody) | requestBody
optional | +| [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 | @@ -147,7 +147,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PathParameters.@Nullable PathParametersMap](../../paths/petpetiduploadimage/post/PathParameters.md#pathparametersmap) | pathParameters | -| [RequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -166,7 +166,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) | requestBody([RequestBody.SealedRequestBody](../../paths/petpetiduploadimage/post/RequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [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 | 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/RequestBody.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.md similarity index 80% rename from samples/client/petstore/java/docs/paths/petpetiduploadimage/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.md index d65d0664340..5724fed1068 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# PetpetiduploadimageRequestBody -public class RequestBody +public class PetpetiduploadimageRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | +| sealed interface | [PetpetiduploadimageRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [PetpetiduploadimageRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [PetpetiduploadimageRequestBody.PetpetiduploadimageRequestBody1](#petpetiduploadimagerequestbody1)
class that serializes request bodies | +| sealed interface | [PetpetiduploadimageRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [PetpetiduploadimageRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## PetpetiduploadimageRequestBody1 +public static class PetpetiduploadimageRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| PetpetiduploadimageRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md index fa180bd2a61..c0cb5e3cc97 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.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.RequestBody; +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; @@ -141,7 +141,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/storeorder/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -153,7 +153,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/storeorder/post/RequestBody.md#sealedrequestbody) | requestBody | +| [StoreorderPostRequestBody.@Nullable SealedRequestBody](../../paths/storeorder/post/StoreorderPostRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -187,6 +187,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/storeorder/post/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/RequestBody.md b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderRequestBody.md similarity index 80% rename from samples/client/petstore/java/docs/paths/storeorder/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/storeorder/post/StoreorderRequestBody.md index 98ae13f9473..d0cbdba0c70 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# StoreorderRequestBody -public class RequestBody +public class StoreorderRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [StoreorderRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [StoreorderRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [StoreorderRequestBody.StoreorderRequestBody1](#storeorderrequestbody1)
class that serializes request bodies | +| sealed interface | [StoreorderRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [StoreorderRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## StoreorderRequestBody1 +public static class StoreorderRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| StoreorderRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md index e88aa14eff3..9a6e2ceae3a 100644 --- a/samples/client/petstore/java/docs/paths/user/UserPost.md +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.user.post.RequestBody; +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; @@ -137,7 +137,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/user/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -149,7 +149,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/user/post/RequestBody.md#sealedrequestbody) | requestBody | +| [UserPostRequestBody.@Nullable SealedRequestBody](../../paths/user/post/UserPostRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -183,6 +183,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/user/post/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/RequestBody.md b/samples/client/petstore/java/docs/paths/user/post/UserRequestBody.md similarity index 82% rename from samples/client/petstore/java/docs/paths/user/post/RequestBody.md rename to samples/client/petstore/java/docs/paths/user/post/UserRequestBody.md index 5717d3014a3..9edcbc34b1d 100644 --- a/samples/client/petstore/java/docs/paths/user/post/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/user/post/UserRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# UserRequestBody -public class RequestBody +public class UserRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [UserRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [UserRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [UserRequestBody.UserRequestBody1](#userrequestbody1)
class that serializes request bodies | +| sealed interface | [UserRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [UserRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## UserRequestBody1 +public static class UserRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| UserRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md index 9a265207858..21de5f6f289 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.usercreatewitharray.post.RequestBody; +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; @@ -116,7 +116,7 @@ ApplicationjsonSchema1BoxedList requestBodyPayload = .build(), schemaConfiguration ); -RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); +UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody = new UsercreatewitharrayPostRequestBody.ApplicationjsonRequestBody(requestBodyPayload); var request = new UsercreatewitharrayPost.PostRequestBuilder() .requestBody(requestBody) @@ -159,7 +159,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/usercreatewitharray/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -171,7 +171,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/usercreatewitharray/post/RequestBody.md#sealedrequestbody) | requestBody | +| [UsercreatewitharrayPostRequestBody.@Nullable SealedRequestBody](../../paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -205,6 +205,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/usercreatewitharray/post/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/RequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/RequestBody.md deleted file mode 100644 index c3f2cf9f53e..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/RequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# RequestBody - -public class RequestBody 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 | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | - -## RequestBody1 -public static class RequestBody1 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/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/UsercreatewitharrayRequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.md new file mode 100644 index 00000000000..ddd7af54370 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.md @@ -0,0 +1,17 @@ +# UsercreatewitharrayRequestBody + +public class UsercreatewitharrayRequestBody 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 | [UsercreatewitharrayRequestBody.UsercreatewitharrayRequestBody1](#usercreatewitharrayrequestbody1)
class that serializes request bodies | + +## UsercreatewitharrayRequestBody1 +public static class UsercreatewitharrayRequestBody1 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/usercreatewithlist/UsercreatewithlistPost.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md index 806f9c6d2de..0986b26897d 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.usercreatewithlist.post.RequestBody; +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; @@ -116,7 +116,7 @@ ApplicationjsonSchema1BoxedList requestBodyPayload = .build(), schemaConfiguration ); -RequestBody.SealedRequestBody requestBody = new RequestBody.ApplicationjsonRequestBody(requestBodyPayload); +UsercreatewithlistPostRequestBody.SealedRequestBody requestBody = new UsercreatewithlistPostRequestBody.ApplicationjsonRequestBody(requestBodyPayload); var request = new UsercreatewithlistPost.PostRequestBuilder() .requestBody(requestBody) @@ -159,7 +159,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/usercreatewithlist/post/RequestBody.md#sealedrequestbody) | requestBody | +| [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 | @@ -171,7 +171,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/usercreatewithlist/post/RequestBody.md#sealedrequestbody) | requestBody | +| [UsercreatewithlistPostRequestBody.@Nullable SealedRequestBody](../../paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md#sealedrequestbody) | requestBody | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -205,6 +205,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/usercreatewithlist/post/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [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/RequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/RequestBody.md deleted file mode 100644 index 8a4cde3614a..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/RequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# RequestBody - -public class RequestBody 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 | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | - -## RequestBody1 -public static class RequestBody1 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/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/UsercreatewithlistRequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.md new file mode 100644 index 00000000000..c9986409b36 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.md @@ -0,0 +1,17 @@ +# UsercreatewithlistRequestBody + +public class UsercreatewithlistRequestBody 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 | [UsercreatewithlistRequestBody.UsercreatewithlistRequestBody1](#usercreatewithlistrequestbody1)
class that serializes request bodies | + +## UsercreatewithlistRequestBody1 +public static class UsercreatewithlistRequestBody1 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/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index 6a3be976930..3abaf474b15 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.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.RequestBody; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.userusername.put.PathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -154,7 +154,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.SealedRequestBody](../../paths/userusername/put/RequestBody.md#sealedrequestbody) | requestBody | +| [UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | | [PathParameters.PathParametersMap](../../paths/userusername/put/PathParameters.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 | @@ -167,7 +167,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RequestBody.@Nullable SealedRequestBody](../../paths/userusername/put/RequestBody.md#sealedrequestbody) | requestBody | +| [UserusernamePutRequestBody.@Nullable SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | | [PathParameters.@Nullable PathParametersMap](../../paths/userusername/put/PathParameters.md#pathparametersmap) | pathParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -217,7 +217,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/userusername/put/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [Put00RequestBuilder](#put00requestbuilder) | requestBody([UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) requestBody)
sets the property | ## PutRequestBuilder public static class PutRequestBuilder
@@ -232,7 +232,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put01RequestBuilder](#put01requestbuilder) | requestBody([RequestBody.SealedRequestBody](../../paths/userusername/put/RequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [Put01RequestBuilder](#put01requestbuilder) | requestBody([UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) requestBody)
sets the property | | [Put10RequestBuilder](#put10requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/userusername/put/PathParameters.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/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/RequestBody.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernameRequestBody.md similarity index 80% rename from samples/client/petstore/java/docs/paths/userusername/put/RequestBody.md rename to samples/client/petstore/java/docs/paths/userusername/put/UserusernameRequestBody.md index d5acae4f843..786324a5249 100644 --- a/samples/client/petstore/java/docs/paths/userusername/put/RequestBody.md +++ b/samples/client/petstore/java/docs/paths/userusername/put/UserusernameRequestBody.md @@ -1,6 +1,6 @@ -# RequestBody +# UserusernameRequestBody -public class RequestBody +public class UserusernameRequestBody A class that contains necessary nested request body classes - SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType @@ -12,11 +12,11 @@ A class that contains necessary nested request body classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [RequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [RequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [RequestBody.RequestBody1](#requestbody1)
class that serializes request bodies | -| sealed interface | [RequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [RequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| sealed interface | [UserusernameRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [UserusernameRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [UserusernameRequestBody.UserusernameRequestBody1](#userusernamerequestbody1)
class that serializes request bodies | +| sealed interface | [UserusernameRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [UserusernameRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | ## SealedMediaType public sealed interface SealedMediaType
@@ -43,15 +43,15 @@ class storing schema info for a specific contentType | [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | -## RequestBody1 -public static class RequestBody1
+## UserusernameRequestBody1 +public static class UserusernameRequestBody1
a class that serializes SealedRequestBody request bodies ### Constructor Summary | Constructor and Description | | --------------------------- | -| RequestBody1()
Creates an instance | +| UserusernameRequestBody1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | 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 907b7f4b1be..39a119cd7fc 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.RequestBody; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse patch( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new AnotherfakedummyPatchRequestBody.AnotherfakedummyPatchRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface Model123TestSpecialTagsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse model123TestSpecialTags(AnotherfakedummyPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return AnotherfakedummyPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse model123TestSpecialTags(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfig } public static class PatchRequest { - public RequestBody.SealedRequestBody requestBody; + public AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PatchRequest( - RequestBody.SealedRequestBody requestBody, + AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PatchRequest( } public static class PatchNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public AnotherfakedummyPatchRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - AnotherfakedummyPatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterServerIndex(AnotherfakedummyPatchNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - AnotherfakedummyPatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterTimeout(AnotherfakedummyPatchNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - AnotherfakedummyPatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterRequestBody(AnotherfakedummyPatchNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final AnotherfakedummyPatchNullableRequest instance; + private final PatchNullableRequest instance; - public Patch0RequestBuilder(AnotherfakedummyPatchNullableRequest instance) { + public Patch0RequestBuilder(PatchNullableRequest instance) { this.instance = instance; } - public AnotherfakedummyPatchRequest build() { + public PatchRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public AnotherfakedummyPatchRequest build() { ); } - public AnotherfakedummyPatchNullableRequest getInstance() { + public PatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterServerIndex(AnotherfakedummyPatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { return this; } - public Patch0RequestBuilder getBuilderAfterTimeout(AnotherfakedummyPatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { return this; } } public static class PatchRequestBuilder implements SetterForRequestBody { - private final AnotherfakedummyPatchNullableRequest instance; + private final PatchNullableRequest instance; public PatchRequestBuilder() { - this.instance = new AnotherfakedummyPatchNullableRequest(); + this.instance = new PatchNullableRequest(); } - public AnotherfakedummyPatchNullableRequest getInstance() { + public PatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterRequestBody(AnotherfakedummyPatchNullableRequest 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..38254a8d0e3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java @@ -0,0 +1,11 @@ +/* + 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; + +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.java similarity index 65% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.java index 00c7e68653c..c0a86b3eb69 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.java @@ -6,6 +6,6 @@ import org.openapijsonschematools.client.components.requestbodies.Client; -public class RequestBody extends Client { - public static class RequestBody1 extends Client1 {} +public class AnotherfakedummyRequestBody extends Client { + public static class AnotherfakedummyRequestBody1 extends Client1 {} } 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 f881eec0f67..2b559586226 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 @@ -74,8 +74,8 @@ public interface DeleteCommonParamOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse deleteCommonParam(CommonparamsubdirDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return CommonparamsubdirDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse deleteCommonParam(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -112,7 +112,7 @@ public static class DeleteNullableRequest { } public interface SetterForHeaderParameters { - CommonparamsubdirDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterHeaderParameters(CommonparamsubdirDeleteNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); @@ -122,7 +122,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForServerIndex { - CommonparamsubdirDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(CommonparamsubdirDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -132,7 +132,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - CommonparamsubdirDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterTimeout(CommonparamsubdirDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -142,7 +142,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - CommonparamsubdirDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(CommonparamsubdirDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -152,13 +152,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForTimeout { - private final CommonparamsubdirDeleteNullableRequest instance; + private final DeleteNullableRequest instance; - public Delete0RequestBuilder(CommonparamsubdirDeleteNullableRequest instance) { + public Delete0RequestBuilder(DeleteNullableRequest instance) { this.instance = instance; } - public CommonparamsubdirDeleteRequest build() { + public DeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -171,34 +171,34 @@ public CommonparamsubdirDeleteRequest build() { ); } - public CommonparamsubdirDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterHeaderParameters(CommonparamsubdirDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterServerIndex(CommonparamsubdirDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(CommonparamsubdirDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final CommonparamsubdirDeleteNullableRequest instance; + private final DeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new CommonparamsubdirDeleteNullableRequest(); + this.instance = new DeleteNullableRequest(); } - public CommonparamsubdirDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(CommonparamsubdirDeleteNullableRequest 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 index a4a16cd261d..019f080b768 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 @@ -75,8 +75,8 @@ public interface GetCommonParamOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getCommonParam(CommonparamsubdirGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return CommonparamsubdirGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getCommonParam(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -113,7 +113,7 @@ public static class GetNullableRequest { } public interface SetterForQueryParameters { - CommonparamsubdirGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(CommonparamsubdirGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -123,7 +123,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - CommonparamsubdirGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterServerIndex(CommonparamsubdirGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -133,7 +133,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - CommonparamsubdirGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterTimeout(CommonparamsubdirGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -143,7 +143,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - CommonparamsubdirGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterPathParameters(CommonparamsubdirGetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -153,13 +153,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Get0RequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final CommonparamsubdirGetNullableRequest instance; + private final GetNullableRequest instance; - public Get0RequestBuilder(CommonparamsubdirGetNullableRequest instance) { + public Get0RequestBuilder(GetNullableRequest instance) { this.instance = instance; } - public CommonparamsubdirGetRequest build() { + public GetRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -172,34 +172,34 @@ public CommonparamsubdirGetRequest build() { ); } - public CommonparamsubdirGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(CommonparamsubdirGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterServerIndex(CommonparamsubdirGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(CommonparamsubdirGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForPathParameters { - private final CommonparamsubdirGetNullableRequest instance; + private final GetNullableRequest instance; public GetRequestBuilder() { - this.instance = new CommonparamsubdirGetNullableRequest(); + this.instance = new GetNullableRequest(); } - public CommonparamsubdirGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterPathParameters(CommonparamsubdirGetNullableRequest 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 index 369f22386fb..39858a477b7 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 @@ -74,8 +74,8 @@ public interface PostCommonParamOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse postCommonParam(CommonparamsubdirPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return CommonparamsubdirPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse postCommonParam(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -112,7 +112,7 @@ public static class PostNullableRequest { } public interface SetterForHeaderParameters { - CommonparamsubdirPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterHeaderParameters(CommonparamsubdirPostNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); @@ -122,7 +122,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForServerIndex { - CommonparamsubdirPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(CommonparamsubdirPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -132,7 +132,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - CommonparamsubdirPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(CommonparamsubdirPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -142,7 +142,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - CommonparamsubdirPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterPathParameters(CommonparamsubdirPostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -152,13 +152,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForTimeout { - private final CommonparamsubdirPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(CommonparamsubdirPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public CommonparamsubdirPostRequest build() { + public PostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -171,34 +171,34 @@ public CommonparamsubdirPostRequest build() { ); } - public CommonparamsubdirPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterHeaderParameters(CommonparamsubdirPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterHeaderParameters(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(CommonparamsubdirPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(CommonparamsubdirPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final CommonparamsubdirPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new CommonparamsubdirPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public CommonparamsubdirPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(CommonparamsubdirPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { return new Post0RequestBuilder(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 05a5bd56a89..da15fccb392 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 @@ -86,8 +86,8 @@ public interface GroupParametersOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse groupParameters(FakeDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse groupParameters(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -128,7 +128,7 @@ public static class DeleteNullableRequest { } public interface SetterForServerIndex { - FakeDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(FakeDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -138,7 +138,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - FakeDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterSecurityIndex(FakeDeleteNullableRequest instance); default T securityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -148,7 +148,7 @@ default T securityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - FakeDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterTimeout(FakeDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -158,7 +158,7 @@ default T timeout(Duration timeout) { } public interface SetterForHeaderParameters { - FakeDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterHeaderParameters(FakeDeleteNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); @@ -168,7 +168,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForQueryParameters { - FakeDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterQueryParameters(FakeDeleteNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -178,13 +178,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Delete00RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final FakeDeleteNullableRequest instance; + private final DeleteNullableRequest instance; - public Delete00RequestBuilder(FakeDeleteNullableRequest instance) { + public Delete00RequestBuilder(DeleteNullableRequest instance) { this.instance = instance; } - public FakeDeleteRequest build() { + public DeleteRequest build() { var headerParameters = instance.headerParameters; if (headerParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -202,68 +202,68 @@ public FakeDeleteRequest build() { ); } - public FakeDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete00RequestBuilder getBuilderAfterServerIndex(FakeDeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { return this; } - public Delete00RequestBuilder getBuilderAfterSecurityIndex(FakeDeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterSecurityIndex(DeleteNullableRequest instance) { return this; } - public Delete00RequestBuilder getBuilderAfterTimeout(FakeDeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { return this; } } public static class Delete01RequestBuilder implements SetterForQueryParameters { - private final FakeDeleteNullableRequest instance; + private final DeleteNullableRequest instance; - public Delete01RequestBuilder(FakeDeleteNullableRequest instance) { + public Delete01RequestBuilder(DeleteNullableRequest instance) { this.instance = instance; } - public FakeDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete00RequestBuilder getBuilderAfterQueryParameters(FakeDeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterQueryParameters(DeleteNullableRequest instance) { return new Delete00RequestBuilder(instance); } } public static class Delete10RequestBuilder implements SetterForHeaderParameters { - private final FakeDeleteNullableRequest instance; + private final DeleteNullableRequest instance; - public Delete10RequestBuilder(FakeDeleteNullableRequest instance) { + public Delete10RequestBuilder(DeleteNullableRequest instance) { this.instance = instance; } - public FakeDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete00RequestBuilder getBuilderAfterHeaderParameters(FakeDeleteNullableRequest instance) { + public Delete00RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { return new Delete00RequestBuilder(instance); } } public static class DeleteRequestBuilder implements SetterForHeaderParameters, SetterForQueryParameters { - private final FakeDeleteNullableRequest instance; + private final DeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new FakeDeleteNullableRequest(); + this.instance = new DeleteNullableRequest(); } - public FakeDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete01RequestBuilder getBuilderAfterHeaderParameters(FakeDeleteNullableRequest instance) { + public Delete01RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { return new Delete01RequestBuilder(instance); } - public Delete10RequestBuilder getBuilderAfterQueryParameters(FakeDeleteNullableRequest 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 index 769fc86f0d5..9dbd5331a61 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fake; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fake.get.RequestBody; +import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; import org.openapijsonschematools.client.paths.fake.get.HeaderParameters; import org.openapijsonschematools.client.paths.fake.get.QueryParameters; import org.openapijsonschematools.client.RootServerInfo; @@ -40,7 +40,7 @@ public static Responses.EndpointResponse get( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakeGetRequestBody.FakeGetRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -91,8 +91,8 @@ public interface EnumParametersOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse enumParameters(FakeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse enumParameters(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -103,7 +103,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakeGetRequestBody.@Nullable SealedRequestBody requestBody; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; @@ -111,9 +111,9 @@ public static class GetRequest { } public interface SetterForRequestBody { - FakeGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterRequestBody(FakeGetRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakeGetRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -121,7 +121,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForHeaderParameters { - FakeGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterHeaderParameters(FakeGetRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); @@ -131,7 +131,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForQueryParameters { - FakeGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterQueryParameters(FakeGetRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -141,7 +141,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - FakeGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakeGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -151,7 +151,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakeGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -161,37 +161,37 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForRequestBody, SetterForHeaderParameters, SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final FakeGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakeGetRequest(); + this.instance = new GetRequest(); } - public FakeGetRequest build() { + public GetRequest build() { return instance; } - public FakeGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterRequestBody(FakeGetRequest instance) { + public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterHeaderParameters(FakeGetRequest instance) { + public GetRequestBuilder getBuilderAfterHeaderParameters(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterQueryParameters(FakeGetRequest instance) { + public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(FakeGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakeGetRequest instance) { + 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 index 94c8b0726da..f0c78b805f5 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fake.patch.RequestBody; +import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; import org.openapijsonschematools.client.paths.fake.patch.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse patch( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new FakePatchRequestBody.FakePatchRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface ClientModelOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse clientModel(FakePatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakePatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse clientModel(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfig } public static class PatchRequest { - public RequestBody.SealedRequestBody requestBody; + public FakePatchRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PatchRequest( - RequestBody.SealedRequestBody requestBody, + FakePatchRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PatchRequest( } public static class PatchNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakePatchRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - FakePatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterServerIndex(FakePatchNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakePatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterTimeout(FakePatchNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - FakePatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterRequestBody(FakePatchNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakePatchRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakePatchNullableRequest instance; + private final PatchNullableRequest instance; - public Patch0RequestBuilder(FakePatchNullableRequest instance) { + public Patch0RequestBuilder(PatchNullableRequest instance) { this.instance = instance; } - public FakePatchRequest build() { + public PatchRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public FakePatchRequest build() { ); } - public FakePatchNullableRequest getInstance() { + public PatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterServerIndex(FakePatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { return this; } - public Patch0RequestBuilder getBuilderAfterTimeout(FakePatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { return this; } } public static class PatchRequestBuilder implements SetterForRequestBody { - private final FakePatchNullableRequest instance; + private final PatchNullableRequest instance; public PatchRequestBuilder() { - this.instance = new FakePatchNullableRequest(); + this.instance = new PatchNullableRequest(); } - public FakePatchNullableRequest getInstance() { + public PatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterRequestBody(FakePatchNullableRequest 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 index acdd9162e24..3374f7435cf 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fake; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fake.post.RequestBody; +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.Responses; @@ -40,7 +40,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakePostRequestBody.FakePostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -88,8 +88,8 @@ public interface EndpointParametersOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse endpointParameters(FakePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse endpointParameters(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -100,16 +100,16 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakePostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakePostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -117,7 +117,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakePostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakePostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -127,7 +127,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - FakePostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterSecurityIndex(FakePostRequest instance); default T securityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -137,7 +137,7 @@ default T securityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - FakePostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakePostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -147,33 +147,33 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final FakePostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakePostRequest(); + this.instance = new PostRequest(); } - public FakePostRequest build() { + public PostRequest build() { return instance; } - public FakePostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakePostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakePostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterSecurityIndex(FakePostRequest instance) { + public PostRequestBuilder getBuilderAfterSecurityIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakePostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { return this; } } 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..fc306ea11bd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeRequestBody.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeRequestBody.java index 3f8f13a779a..08aba378e30 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakeRequestBody { public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakeRequestBody1 extends RequestBodySerializer { + public FakeRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) 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..0285e5cfd63 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java @@ -0,0 +1,11 @@ +/* + 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; + +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakeRequestBody.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakeRequestBody.java index cc756bafb50..0ea9e696733 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakeRequestBody.java @@ -6,6 +6,6 @@ import org.openapijsonschematools.client.components.requestbodies.Client; -public class RequestBody extends Client { - public static class RequestBody1 extends Client1 {} +public class FakeRequestBody extends Client { + public static class FakeRequestBody1 extends Client1 {} } 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..3d6d88d95e9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakeRequestBody.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakeRequestBody.java index f1df9eb31ed..c4c9108daf5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakeRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakeRequestBody { public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakeRequestBody1 extends RequestBodySerializer { + public FakeRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) 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 cec0d566367..39edc98764c 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.RequestBody; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse get( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakeadditionalpropertieswitharrayofenumsGetRequestBody.FakeadditionalpropertieswitharrayofenumsGetRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface AdditionalPropertiesWithArrayOfEnumsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse additionalPropertiesWithArrayOfEnums(FakeadditionalpropertieswitharrayofenumsGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeadditionalpropertieswitharrayofenumsGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse additionalPropertiesWithArrayOfEnums(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakeadditionalpropertieswitharrayofenumsGetRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakeadditionalpropertieswitharrayofenumsGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterRequestBody(FakeadditionalpropertieswitharrayofenumsGetRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakeadditionalpropertieswitharrayofenumsGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakeadditionalpropertieswitharrayofenumsGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeadditionalpropertieswitharrayofenumsGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakeadditionalpropertieswitharrayofenumsGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakeadditionalpropertieswitharrayofenumsGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakeadditionalpropertieswitharrayofenumsGetRequest(); + this.instance = new GetRequest(); } - public FakeadditionalpropertieswitharrayofenumsGetRequest build() { + public GetRequest build() { return instance; } - public FakeadditionalpropertieswitharrayofenumsGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterRequestBody(FakeadditionalpropertieswitharrayofenumsGetRequest instance) { + public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(FakeadditionalpropertieswitharrayofenumsGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakeadditionalpropertieswitharrayofenumsGetRequest instance) { + 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..b83e5c5b7af --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.java index b58e901cf8c..03669da7520 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakeadditionalpropertieswitharrayofenumsRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakeadditionalpropertieswitharrayofenumsRequestBody1 extends RequestBodySerializer { + public FakeadditionalpropertieswitharrayofenumsRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 bb8f7fea5be..7332d38ffee 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.RequestBody; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse put( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new FakebodywithfileschemaPutRequestBody.FakebodywithfileschemaPutRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface BodyWithFileSchemaOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse bodyWithFileSchema(FakebodywithfileschemaPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakebodywithfileschemaPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse bodyWithFileSchema(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public RequestBody.SealedRequestBody requestBody; + public FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( - RequestBody.SealedRequestBody requestBody, + FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PutRequest( } public static class PutNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakebodywithfileschemaPutRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - FakebodywithfileschemaPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterServerIndex(FakebodywithfileschemaPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakebodywithfileschemaPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterTimeout(FakebodywithfileschemaPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - FakebodywithfileschemaPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterRequestBody(FakebodywithfileschemaPutNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakebodywithfileschemaPutNullableRequest instance; + private final PutNullableRequest instance; - public Put0RequestBuilder(FakebodywithfileschemaPutNullableRequest instance) { + public Put0RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public FakebodywithfileschemaPutRequest build() { + public PutRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public FakebodywithfileschemaPutRequest build() { ); } - public FakebodywithfileschemaPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterServerIndex(FakebodywithfileschemaPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterTimeout(FakebodywithfileschemaPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { return this; } } public static class PutRequestBuilder implements SetterForRequestBody { - private final FakebodywithfileschemaPutNullableRequest instance; + private final PutNullableRequest instance; public PutRequestBuilder() { - this.instance = new FakebodywithfileschemaPutNullableRequest(); + this.instance = new PutNullableRequest(); } - public FakebodywithfileschemaPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterRequestBody(FakebodywithfileschemaPutNullableRequest 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..6a9b15e21f4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.java index a46287e74b1..1a35c3f9e9a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakebodywithfileschemaRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakebodywithfileschemaRequestBody1 extends RequestBodySerializer { + public FakebodywithfileschemaRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 205804c8c8b..d60ce8640e2 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.RequestBody; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.QueryParameters; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Parameters; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Responses; @@ -36,7 +36,7 @@ public static Responses.EndpointResponse put( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new FakebodywithqueryparamsPutRequestBody.FakebodywithqueryparamsPutRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -77,8 +77,8 @@ public interface BodyWithQueryParamsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse bodyWithQueryParams(FakebodywithqueryparamsPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakebodywithqueryparamsPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse bodyWithQueryParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -89,13 +89,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public RequestBody.SealedRequestBody requestBody; + public FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody; public QueryParameters.QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( - RequestBody.SealedRequestBody requestBody, + FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody, QueryParameters.QueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -108,14 +108,14 @@ public PutRequest( } public static class PutNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody requestBody; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - FakebodywithqueryparamsPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterServerIndex(FakebodywithqueryparamsPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -125,7 +125,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakebodywithqueryparamsPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterTimeout(FakebodywithqueryparamsPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -135,9 +135,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - FakebodywithqueryparamsPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterRequestBody(FakebodywithqueryparamsPutNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -145,7 +145,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForQueryParameters { - FakebodywithqueryparamsPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterQueryParameters(FakebodywithqueryparamsPutNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -155,13 +155,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Put00RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakebodywithqueryparamsPutNullableRequest instance; + private final PutNullableRequest instance; - public Put00RequestBuilder(FakebodywithqueryparamsPutNullableRequest instance) { + public Put00RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public FakebodywithqueryparamsPutRequest build() { + public PutRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -178,64 +178,64 @@ public FakebodywithqueryparamsPutRequest build() { ); } - public FakebodywithqueryparamsPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterServerIndex(FakebodywithqueryparamsPutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { return this; } - public Put00RequestBuilder getBuilderAfterTimeout(FakebodywithqueryparamsPutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { return this; } } public static class Put01RequestBuilder implements SetterForQueryParameters { - private final FakebodywithqueryparamsPutNullableRequest instance; + private final PutNullableRequest instance; - public Put01RequestBuilder(FakebodywithqueryparamsPutNullableRequest instance) { + public Put01RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public FakebodywithqueryparamsPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterQueryParameters(FakebodywithqueryparamsPutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { return new Put00RequestBuilder(instance); } } public static class Put10RequestBuilder implements SetterForRequestBody { - private final FakebodywithqueryparamsPutNullableRequest instance; + private final PutNullableRequest instance; - public Put10RequestBuilder(FakebodywithqueryparamsPutNullableRequest instance) { + public Put10RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public FakebodywithqueryparamsPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterRequestBody(FakebodywithqueryparamsPutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { return new Put00RequestBuilder(instance); } } public static class PutRequestBuilder implements SetterForRequestBody, SetterForQueryParameters { - private final FakebodywithqueryparamsPutNullableRequest instance; + private final PutNullableRequest instance; public PutRequestBuilder() { - this.instance = new FakebodywithqueryparamsPutNullableRequest(); + this.instance = new PutNullableRequest(); } - public FakebodywithqueryparamsPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put01RequestBuilder getBuilderAfterRequestBody(FakebodywithqueryparamsPutNullableRequest instance) { + public Put01RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { return new Put01RequestBuilder(instance); } - public Put10RequestBuilder getBuilderAfterQueryParameters(FakebodywithqueryparamsPutNullableRequest 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/FakebodywithqueryparamsPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java new file mode 100644 index 00000000000..06fe702b27b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.java index 8d9663e8ef7..46220e061e0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakebodywithqueryparamsRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakebodywithqueryparamsRequestBody1 extends RequestBodySerializer { + public FakebodywithqueryparamsRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 4787efe890f..fd43be226e9 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 @@ -68,8 +68,8 @@ public interface CaseSensitiveParamsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse caseSensitiveParams(FakecasesensitiveparamsPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakecasesensitiveparamsPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse caseSensitiveParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -102,7 +102,7 @@ public static class PutNullableRequest { } public interface SetterForServerIndex { - FakecasesensitiveparamsPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterServerIndex(FakecasesensitiveparamsPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -112,7 +112,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakecasesensitiveparamsPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterTimeout(FakecasesensitiveparamsPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - FakecasesensitiveparamsPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterQueryParameters(FakecasesensitiveparamsPutNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -132,13 +132,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakecasesensitiveparamsPutNullableRequest instance; + private final PutNullableRequest instance; - public Put0RequestBuilder(FakecasesensitiveparamsPutNullableRequest instance) { + public Put0RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public FakecasesensitiveparamsPutRequest build() { + public PutRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -150,30 +150,30 @@ public FakecasesensitiveparamsPutRequest build() { ); } - public FakecasesensitiveparamsPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterServerIndex(FakecasesensitiveparamsPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterTimeout(FakecasesensitiveparamsPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { return this; } } public static class PutRequestBuilder implements SetterForQueryParameters { - private final FakecasesensitiveparamsPutNullableRequest instance; + private final PutNullableRequest instance; public PutRequestBuilder() { - this.instance = new FakecasesensitiveparamsPutNullableRequest(); + this.instance = new PutNullableRequest(); } - public FakecasesensitiveparamsPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterQueryParameters(FakecasesensitiveparamsPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { return new Put0RequestBuilder(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 c2239b841ea..69ba4ac87e1 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 @@ -3,7 +3,7 @@ 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.RequestBody; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse patch( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new FakeclassnametestPatchRequestBody.FakeclassnametestPatchRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -84,8 +84,8 @@ public interface ClassnameOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse classname(FakeclassnametestPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeclassnametestPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse classname(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -96,13 +96,13 @@ public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfig } public static class PatchRequest { - public RequestBody.SealedRequestBody requestBody; + public FakeclassnametestPatchRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PatchRequest( - RequestBody.SealedRequestBody requestBody, + FakeclassnametestPatchRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -115,14 +115,14 @@ public PatchRequest( } public static class PatchNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakeclassnametestPatchRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - FakeclassnametestPatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterServerIndex(FakeclassnametestPatchNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -132,7 +132,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - FakeclassnametestPatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterSecurityIndex(FakeclassnametestPatchNullableRequest instance); default T securityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -142,7 +142,7 @@ default T securityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securit } public interface SetterForTimeout { - FakeclassnametestPatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterTimeout(FakeclassnametestPatchNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -152,9 +152,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - FakeclassnametestPatchNullableRequest getInstance(); + PatchNullableRequest getInstance(); T getBuilderAfterRequestBody(FakeclassnametestPatchNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakeclassnametestPatchRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -162,13 +162,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final FakeclassnametestPatchNullableRequest instance; + private final PatchNullableRequest instance; - public Patch0RequestBuilder(FakeclassnametestPatchNullableRequest instance) { + public Patch0RequestBuilder(PatchNullableRequest instance) { this.instance = instance; } - public FakeclassnametestPatchRequest build() { + public PatchRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -181,34 +181,34 @@ public FakeclassnametestPatchRequest build() { ); } - public FakeclassnametestPatchNullableRequest getInstance() { + public PatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterServerIndex(FakeclassnametestPatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { return this; } - public Patch0RequestBuilder getBuilderAfterSecurityIndex(FakeclassnametestPatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterSecurityIndex(PatchNullableRequest instance) { return this; } - public Patch0RequestBuilder getBuilderAfterTimeout(FakeclassnametestPatchNullableRequest instance) { + public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { return this; } } public static class PatchRequestBuilder implements SetterForRequestBody { - private final FakeclassnametestPatchNullableRequest instance; + private final PatchNullableRequest instance; public PatchRequestBuilder() { - this.instance = new FakeclassnametestPatchNullableRequest(); + this.instance = new PatchNullableRequest(); } - public FakeclassnametestPatchNullableRequest getInstance() { + public PatchNullableRequest getInstance() { return instance; } - public Patch0RequestBuilder getBuilderAfterRequestBody(FakeclassnametestPatchNullableRequest 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..5b8ff4f8390 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java @@ -0,0 +1,11 @@ +/* + 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; + +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.java similarity index 65% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.java index 8a4c5d01373..27fbc76bf10 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.java @@ -6,6 +6,6 @@ import org.openapijsonschematools.client.components.requestbodies.Client; -public class RequestBody extends Client { - public static class RequestBody1 extends Client1 {} +public class FakeclassnametestRequestBody extends Client { + public static class FakeclassnametestRequestBody1 extends Client1 {} } 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 bc10d44b48e..c53b64c02ca 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 @@ -67,8 +67,8 @@ public interface DeleteCoffeeOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse deleteCoffee(FakedeletecoffeeidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakedeletecoffeeidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse deleteCoffee(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -101,7 +101,7 @@ public static class DeleteNullableRequest { } public interface SetterForServerIndex { - FakedeletecoffeeidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(FakedeletecoffeeidDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -111,7 +111,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakedeletecoffeeidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterTimeout(FakedeletecoffeeidDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -121,7 +121,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - FakedeletecoffeeidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(FakedeletecoffeeidDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -131,13 +131,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakedeletecoffeeidDeleteNullableRequest instance; + private final DeleteNullableRequest instance; - public Delete0RequestBuilder(FakedeletecoffeeidDeleteNullableRequest instance) { + public Delete0RequestBuilder(DeleteNullableRequest instance) { this.instance = instance; } - public FakedeletecoffeeidDeleteRequest build() { + public DeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -149,30 +149,30 @@ public FakedeletecoffeeidDeleteRequest build() { ); } - public FakedeletecoffeeidDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterServerIndex(FakedeletecoffeeidDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(FakedeletecoffeeidDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final FakedeletecoffeeidDeleteNullableRequest instance; + private final DeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new FakedeletecoffeeidDeleteNullableRequest(); + this.instance = new DeleteNullableRequest(); } - public FakedeletecoffeeidDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(FakedeletecoffeeidDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { return new Delete0RequestBuilder(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 70eabf2902d..f7604591ecc 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 @@ -62,8 +62,8 @@ public interface FakeHealthGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse fakeHealthGet(FakehealthGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakehealthGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse fakeHealthGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,7 +79,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - FakehealthGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakehealthGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -89,7 +89,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakehealthGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakehealthGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakehealthGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakehealthGetRequest(); + this.instance = new GetRequest(); } - public FakehealthGetRequest build() { + public GetRequest build() { return instance; } - public FakehealthGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(FakehealthGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakehealthGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 499944a9824..36130340861 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.RequestBody; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse post( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new FakeinlineadditionalpropertiesPostRequestBody.FakeinlineadditionalpropertiesPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface InlineAdditionalPropertiesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse inlineAdditionalProperties(FakeinlineadditionalpropertiesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeinlineadditionalpropertiesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse inlineAdditionalProperties(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.SealedRequestBody requestBody; + public FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - RequestBody.SealedRequestBody requestBody, + FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PostRequest( } public static class PostNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakeinlineadditionalpropertiesPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - FakeinlineadditionalpropertiesPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(FakeinlineadditionalpropertiesPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeinlineadditionalpropertiesPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(FakeinlineadditionalpropertiesPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - FakeinlineadditionalpropertiesPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(FakeinlineadditionalpropertiesPostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakeinlineadditionalpropertiesPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(FakeinlineadditionalpropertiesPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public FakeinlineadditionalpropertiesPostRequest build() { + public PostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public FakeinlineadditionalpropertiesPostRequest build() { ); } - public FakeinlineadditionalpropertiesPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(FakeinlineadditionalpropertiesPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(FakeinlineadditionalpropertiesPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final FakeinlineadditionalpropertiesPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new FakeinlineadditionalpropertiesPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public FakeinlineadditionalpropertiesPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(FakeinlineadditionalpropertiesPostNullableRequest 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..6c4c153915a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.java index 85529afa41c..7adbf1f8006 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakeinlineadditionalpropertiesRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakeinlineadditionalpropertiesRequestBody1 extends RequestBodySerializer { + public FakeinlineadditionalpropertiesRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 a477d79d60e..7645276c2d9 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeinlinecomposition; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.RequestBody; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.QueryParameters; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Parameters; @@ -39,7 +39,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakeinlinecompositionPostRequestBody.FakeinlinecompositionPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -84,8 +84,8 @@ public interface InlineCompositionOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse inlineComposition(FakeinlinecompositionPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeinlinecompositionPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse inlineComposition(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -96,16 +96,16 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody requestBody; public QueryParameters.@Nullable QueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakeinlinecompositionPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakeinlinecompositionPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakeinlinecompositionPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -113,7 +113,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForQueryParameters { - FakeinlinecompositionPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterQueryParameters(FakeinlinecompositionPostRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -123,7 +123,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - FakeinlinecompositionPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakeinlinecompositionPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -133,7 +133,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeinlinecompositionPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakeinlinecompositionPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -143,33 +143,33 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final FakeinlinecompositionPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakeinlinecompositionPostRequest(); + this.instance = new PostRequest(); } - public FakeinlinecompositionPostRequest build() { + public PostRequest build() { return instance; } - public FakeinlinecompositionPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakeinlinecompositionPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterQueryParameters(FakeinlinecompositionPostRequest instance) { + public PostRequestBuilder getBuilderAfterQueryParameters(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakeinlinecompositionPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakeinlinecompositionPostRequest instance) { + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { return this; } } 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..3dd064dc81c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java @@ -0,0 +1,75 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.java index 0264be90b7b..80c47f51166 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.java @@ -15,7 +15,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakeinlinecompositionRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -38,8 +38,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakeinlinecompositionRequestBody1 extends RequestBodySerializer { + public FakeinlinecompositionRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), 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 37ca83a1972..5069b2d3c40 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakejsonformdata; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.RequestBody; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakejsonformdata.get.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse get( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakejsonformdataGetRequestBody.FakejsonformdataGetRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface JsonFormDataOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse jsonFormData(FakejsonformdataGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakejsonformdataGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse jsonFormData(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakejsonformdataGetRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakejsonformdataGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterRequestBody(FakejsonformdataGetRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakejsonformdataGetRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakejsonformdataGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakejsonformdataGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakejsonformdataGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakejsonformdataGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakejsonformdataGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakejsonformdataGetRequest(); + this.instance = new GetRequest(); } - public FakejsonformdataGetRequest build() { + public GetRequest build() { return instance; } - public FakejsonformdataGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterRequestBody(FakejsonformdataGetRequest instance) { + public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(FakejsonformdataGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakejsonformdataGetRequest instance) { + 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..e479c67b45a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataRequestBody.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataRequestBody.java index 50a121737b4..ffeb20b1d3e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakejsonformdataRequestBody { public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakejsonformdataRequestBody1 extends RequestBodySerializer { + public FakejsonformdataRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) 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 b5e807cf466..86041681375 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakejsonpatch; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.RequestBody; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse patch( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakejsonpatchPatchRequestBody.FakejsonpatchPatchRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface JsonPatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse jsonPatch(FakejsonpatchPatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakejsonpatchPatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse jsonPatch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfig } public static class PatchRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakejsonpatchPatchRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakejsonpatchPatchRequest getInstance(); + PatchRequest getInstance(); T getBuilderAfterRequestBody(FakejsonpatchPatchRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakejsonpatchPatchRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakejsonpatchPatchRequest getInstance(); + PatchRequest getInstance(); T getBuilderAfterServerIndex(FakejsonpatchPatchRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakejsonpatchPatchRequest getInstance(); + PatchRequest getInstance(); T getBuilderAfterTimeout(FakejsonpatchPatchRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PatchRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakejsonpatchPatchRequest instance; + private final PatchRequest instance; public PatchRequestBuilder() { - this.instance = new FakejsonpatchPatchRequest(); + this.instance = new PatchRequest(); } - public FakejsonpatchPatchRequest build() { + public PatchRequest build() { return instance; } - public FakejsonpatchPatchRequest getInstance() { + public PatchRequest getInstance() { return instance; } - public PatchRequestBuilder getBuilderAfterRequestBody(FakejsonpatchPatchRequest instance) { + public PatchRequestBuilder getBuilderAfterRequestBody(PatchRequest instance) { return this; } - public PatchRequestBuilder getBuilderAfterServerIndex(FakejsonpatchPatchRequest instance) { + public PatchRequestBuilder getBuilderAfterServerIndex(PatchRequest instance) { return this; } - public PatchRequestBuilder getBuilderAfterTimeout(FakejsonpatchPatchRequest instance) { + 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..081d25adba1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.java index f9b1f076f6b..61f81d07cb9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakejsonpatchRequestBody { public sealed interface SealedMediaType permits ApplicationjsonpatchjsonMediaType {} public record ApplicationjsonpatchjsonMediaType(ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakejsonpatchRequestBody1 extends RequestBodySerializer { + public FakejsonpatchRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json-patch+json", new ApplicationjsonpatchjsonMediaType()) 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 5651005799c..334445d4d20 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakejsonwithcharset; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.RequestBody; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakejsonwithcharsetPostRequestBody.FakejsonwithcharsetPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface JsonWithCharsetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse jsonWithCharset(FakejsonwithcharsetPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakejsonwithcharsetPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse jsonWithCharset(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakejsonwithcharsetPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakejsonwithcharsetPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakejsonwithcharsetPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakejsonwithcharsetPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakejsonwithcharsetPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakejsonwithcharsetPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakejsonwithcharsetPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakejsonwithcharsetPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakejsonwithcharsetPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakejsonwithcharsetPostRequest(); + this.instance = new PostRequest(); } - public FakejsonwithcharsetPostRequest build() { + public PostRequest build() { return instance; } - public FakejsonwithcharsetPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakejsonwithcharsetPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakejsonwithcharsetPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakejsonwithcharsetPostRequest instance) { + 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..f0d5ad440d1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.java index 6843dc22e74..8ef0bc0624d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakejsonwithcharsetRequestBody { public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaType {} public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakejsonwithcharsetRequestBody1 extends RequestBodySerializer { + public FakejsonwithcharsetRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new Applicationjsoncharsetutf8MediaType()) 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 5540dfcf9d6..126a20f274e 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.RequestBody; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakemultiplerequestbodycontenttypesPostRequestBody.FakemultiplerequestbodycontenttypesPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface MultipleRequestBodyContentTypesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse multipleRequestBodyContentTypes(FakemultiplerequestbodycontenttypesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakemultiplerequestbodycontenttypesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse multipleRequestBodyContentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakemultiplerequestbodycontenttypesPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakemultiplerequestbodycontenttypesPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakemultiplerequestbodycontenttypesPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakemultiplerequestbodycontenttypesPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakemultiplerequestbodycontenttypesPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakemultiplerequestbodycontenttypesPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakemultiplerequestbodycontenttypesPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakemultiplerequestbodycontenttypesPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakemultiplerequestbodycontenttypesPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakemultiplerequestbodycontenttypesPostRequest(); + this.instance = new PostRequest(); } - public FakemultiplerequestbodycontenttypesPostRequest build() { + public PostRequest build() { return instance; } - public FakemultiplerequestbodycontenttypesPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakemultiplerequestbodycontenttypesPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakemultiplerequestbodycontenttypesPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakemultiplerequestbodycontenttypesPostRequest instance) { + 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..5b9b8fc6ab8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java @@ -0,0 +1,75 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.java index 0566e226c14..83c9fba35b8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.java @@ -15,7 +15,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakemultiplerequestbodycontenttypesRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -38,8 +38,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakemultiplerequestbodycontenttypesRequestBody1 extends RequestBodySerializer { + public FakemultiplerequestbodycontenttypesRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), 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 3e7c0092cd3..14f486954a5 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 @@ -62,8 +62,8 @@ public interface MultipleResponseBodiesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse multipleResponseBodies(FakemultipleresponsebodiesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakemultipleresponsebodiesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse multipleResponseBodies(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,7 +79,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - FakemultipleresponsebodiesGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakemultipleresponsebodiesGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -89,7 +89,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakemultipleresponsebodiesGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakemultipleresponsebodiesGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakemultipleresponsebodiesGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakemultipleresponsebodiesGetRequest(); + this.instance = new GetRequest(); } - public FakemultipleresponsebodiesGetRequest build() { + public GetRequest build() { return instance; } - public FakemultipleresponsebodiesGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(FakemultipleresponsebodiesGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakemultipleresponsebodiesGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 97b1e903dad..25d1522c3de 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 @@ -75,8 +75,8 @@ public interface MultipleSecuritiesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse multipleSecurities(FakemultiplesecuritiesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakemultiplesecuritiesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse multipleSecurities(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -93,7 +93,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - FakemultiplesecuritiesGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakemultiplesecuritiesGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -103,7 +103,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - FakemultiplesecuritiesGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterSecurityIndex(FakemultiplesecuritiesGetRequest instance); default T securityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T securityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex secu } public interface SetterForTimeout { - FakemultiplesecuritiesGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakemultiplesecuritiesGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final FakemultiplesecuritiesGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakemultiplesecuritiesGetRequest(); + this.instance = new GetRequest(); } - public FakemultiplesecuritiesGetRequest build() { + public GetRequest build() { return instance; } - public FakemultiplesecuritiesGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(FakemultiplesecuritiesGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterSecurityIndex(FakemultiplesecuritiesGetRequest instance) { + public GetRequestBuilder getBuilderAfterSecurityIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakemultiplesecuritiesGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 674f7e69998..2ade575695d 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 @@ -71,8 +71,8 @@ public interface ObjectInQueryOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse objectInQuery(FakeobjinqueryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeobjinqueryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse objectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -89,7 +89,7 @@ public static class GetRequest { } public interface SetterForQueryParameters { - FakeobjinqueryGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterQueryParameters(FakeobjinqueryGetRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -99,7 +99,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - FakeobjinqueryGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakeobjinqueryGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -109,7 +109,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeobjinqueryGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakeobjinqueryGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -119,29 +119,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final FakeobjinqueryGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakeobjinqueryGetRequest(); + this.instance = new GetRequest(); } - public FakeobjinqueryGetRequest build() { + public GetRequest build() { return instance; } - public FakeobjinqueryGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterQueryParameters(FakeobjinqueryGetRequest instance) { + public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(FakeobjinqueryGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakeobjinqueryGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 781c59a0e0e..f45e97a5e1f 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.RequestBody; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostRequestBody; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.HeaderParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.QueryParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.CookieParameters; @@ -42,7 +42,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new Fakeparametercollisions1ababselfabPostRequestBody.Fakeparametercollisions1ababselfabPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -103,8 +103,8 @@ public interface ParameterCollisionsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse parameterCollisions(Fakeparametercollisions1ababselfabPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return Fakeparametercollisions1ababselfabPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse parameterCollisions(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -116,7 +116,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public PathParameters.PathParametersMap pathParameters; - public RequestBody.@Nullable SealedRequestBody requestBody; + public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; public CookieParameters.@Nullable CookieParametersMap cookieParameters; @@ -125,7 +125,7 @@ public static class PostRequest { public PostRequest( PathParameters.PathParametersMap pathParameters, - RequestBody.@Nullable SealedRequestBody requestBody, + Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody, HeaderParameters.@Nullable HeaderParametersMap headerParameters, QueryParameters.@Nullable QueryParametersMap queryParameters, CookieParameters.@Nullable CookieParametersMap cookieParameters, @@ -144,7 +144,7 @@ public PostRequest( public static class PostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; - public RequestBody.@Nullable SealedRequestBody requestBody; + public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; public HeaderParameters.@Nullable HeaderParametersMap headerParameters; public QueryParameters.@Nullable QueryParametersMap queryParameters; public CookieParameters.@Nullable CookieParametersMap cookieParameters; @@ -153,9 +153,9 @@ public static class PostNullableRequest { } public interface SetterForRequestBody { - Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(Fakeparametercollisions1ababselfabPostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -163,7 +163,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForHeaderParameters { - Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterHeaderParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); @@ -173,7 +173,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForQueryParameters { - Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterQueryParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -183,7 +183,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForCookieParameters { - Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterCookieParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T cookieParameters(CookieParameters.CookieParametersMap cookieParameters) { var instance = getInstance(); @@ -193,7 +193,7 @@ default T cookieParameters(CookieParameters.CookieParametersMap cookieParameters } public interface SetterForServerIndex { - Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -203,7 +203,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -213,7 +213,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - Fakeparametercollisions1ababselfabPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterPathParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -223,13 +223,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForRequestBody, SetterForHeaderParameters, SetterForQueryParameters, SetterForCookieParameters, SetterForServerIndex, SetterForTimeout { - private final Fakeparametercollisions1ababselfabPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(Fakeparametercollisions1ababselfabPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public Fakeparametercollisions1ababselfabPostRequest build() { + public PostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -245,46 +245,46 @@ public Fakeparametercollisions1ababselfabPostRequest build() { ); } - public Fakeparametercollisions1ababselfabPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(Fakeparametercollisions1ababselfabPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterHeaderParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterHeaderParameters(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterQueryParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterQueryParameters(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterCookieParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterCookieParameters(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(Fakeparametercollisions1ababselfabPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(Fakeparametercollisions1ababselfabPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final Fakeparametercollisions1ababselfabPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new Fakeparametercollisions1ababselfabPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public Fakeparametercollisions1ababselfabPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(Fakeparametercollisions1ababselfabPostNullableRequest 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/Fakeparametercollisions1ababselfabPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java new file mode 100644 index 00000000000..82857193702 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.java index a51c3ec8a0d..4fdbb81f1a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class Fakeparametercollisions1ababselfabRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class Fakeparametercollisions1ababselfabRequestBody1 extends RequestBodySerializer { + public Fakeparametercollisions1ababselfabRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 fe13e49f4d9..5a61cf485ca 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakepemcontenttype; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.RequestBody; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse get( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakepemcontenttypeGetRequestBody.FakepemcontenttypeGetRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface PemContentTypeOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse pemContentType(FakepemcontenttypeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakepemcontenttypeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse pemContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakepemcontenttypeGetRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakepemcontenttypeGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterRequestBody(FakepemcontenttypeGetRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakepemcontenttypeGetRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakepemcontenttypeGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakepemcontenttypeGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakepemcontenttypeGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakepemcontenttypeGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakepemcontenttypeGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakepemcontenttypeGetRequest(); + this.instance = new GetRequest(); } - public FakepemcontenttypeGetRequest build() { + public GetRequest build() { return instance; } - public FakepemcontenttypeGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterRequestBody(FakepemcontenttypeGetRequest instance) { + public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(FakepemcontenttypeGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakepemcontenttypeGetRequest instance) { + 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..d038f5837c5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.java index 1f480bb4f6c..9a283974fc1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakepemcontenttypeRequestBody { public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakepemcontenttypeRequestBody1 extends RequestBodySerializer { + public FakepemcontenttypeRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/x-pem-file", new ApplicationxpemfileMediaType()) 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 792d08a7628..51f54852a66 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.RequestBody; +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.PathParameters; @@ -42,7 +42,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakepetiduploadimagewithrequiredfilePostRequestBody.FakepetiduploadimagewithrequiredfilePostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -93,8 +93,8 @@ public interface UploadFileWithRequiredFileOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadFileWithRequiredFile(FakepetiduploadimagewithrequiredfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakepetiduploadimagewithrequiredfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadFileWithRequiredFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -106,14 +106,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public PathParameters.PathParametersMap pathParameters; - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( PathParameters.PathParametersMap pathParameters, - RequestBody.@Nullable SealedRequestBody requestBody, + FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -128,16 +128,16 @@ public PostRequest( public static class PostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakepetiduploadimagewithrequiredfilePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -145,7 +145,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -155,7 +155,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterSecurityIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); default T securityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -165,7 +165,7 @@ default T securityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.Sec } public interface SetterForTimeout { - FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -175,7 +175,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterPathParameters(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -185,13 +185,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final FakepetiduploadimagewithrequiredfilePostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public FakepetiduploadimagewithrequiredfilePostRequest build() { + public PostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -205,38 +205,38 @@ public FakepetiduploadimagewithrequiredfilePostRequest build() { ); } - public FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterSecurityIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(FakepetiduploadimagewithrequiredfilePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final FakepetiduploadimagewithrequiredfilePostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new FakepetiduploadimagewithrequiredfilePostNullableRequest(); + this.instance = new PostNullableRequest(); } - public FakepetiduploadimagewithrequiredfilePostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(FakepetiduploadimagewithrequiredfilePostNullableRequest 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/FakepetiduploadimagewithrequiredfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java new file mode 100644 index 00000000000..347b2154b24 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.java index 0788c7362cb..0ce1e9688c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakepetiduploadimagewithrequiredfileRequestBody { public sealed interface SealedMediaType permits MultipartformdataMediaType {} public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakepetiduploadimagewithrequiredfileRequestBody1 extends RequestBodySerializer { + public FakepetiduploadimagewithrequiredfileRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) 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 ee618b52667..84c4d471d68 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 @@ -68,8 +68,8 @@ public interface QueryParamWithJsonContentTypeOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse queryParamWithJsonContentType(FakequeryparamwithjsoncontenttypeGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakequeryparamwithjsoncontenttypeGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse queryParamWithJsonContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -102,7 +102,7 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterServerIndex(FakequeryparamwithjsoncontenttypeGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -112,7 +112,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterTimeout(FakequeryparamwithjsoncontenttypeGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(FakequeryparamwithjsoncontenttypeGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -132,13 +132,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakequeryparamwithjsoncontenttypeGetNullableRequest instance; + private final GetNullableRequest instance; - public Get0RequestBuilder(FakequeryparamwithjsoncontenttypeGetNullableRequest instance) { + public Get0RequestBuilder(GetNullableRequest instance) { this.instance = instance; } - public FakequeryparamwithjsoncontenttypeGetRequest build() { + public GetRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -150,30 +150,30 @@ public FakequeryparamwithjsoncontenttypeGetRequest build() { ); } - public FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(FakequeryparamwithjsoncontenttypeGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(FakequeryparamwithjsoncontenttypeGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForQueryParameters { - private final FakequeryparamwithjsoncontenttypeGetNullableRequest instance; + private final GetNullableRequest instance; public GetRequestBuilder() { - this.instance = new FakequeryparamwithjsoncontenttypeGetNullableRequest(); + this.instance = new GetNullableRequest(); } - public FakequeryparamwithjsoncontenttypeGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(FakequeryparamwithjsoncontenttypeGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { return new Get0RequestBuilder(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 cf0fbff8f1b..7c362f6c577 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 @@ -62,8 +62,8 @@ public interface RedirectionOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse redirection(FakeredirectionGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeredirectionGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse redirection(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,7 +79,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - FakeredirectionGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakeredirectionGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -89,7 +89,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeredirectionGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakeredirectionGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakeredirectionGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakeredirectionGetRequest(); + this.instance = new GetRequest(); } - public FakeredirectionGetRequest build() { + public GetRequest build() { return instance; } - public FakeredirectionGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(FakeredirectionGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakeredirectionGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 ccd206155b1..beafcb3d343 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 @@ -71,8 +71,8 @@ public interface RefObjectInQueryOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse refObjectInQuery(FakerefobjinqueryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefobjinqueryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse refObjectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -89,7 +89,7 @@ public static class GetRequest { } public interface SetterForQueryParameters { - FakerefobjinqueryGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterQueryParameters(FakerefobjinqueryGetRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -99,7 +99,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public interface SetterForServerIndex { - FakerefobjinqueryGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakerefobjinqueryGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -109,7 +109,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefobjinqueryGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakerefobjinqueryGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -119,29 +119,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final FakerefobjinqueryGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakerefobjinqueryGetRequest(); + this.instance = new GetRequest(); } - public FakerefobjinqueryGetRequest build() { + public GetRequest build() { return instance; } - public FakerefobjinqueryGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterQueryParameters(FakerefobjinqueryGetRequest instance) { + public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterServerIndex(FakerefobjinqueryGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakerefobjinqueryGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 1a4d371d1c9..35920abfa0e 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefsarraymodel; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.RequestBody; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakerefsarraymodelPostRequestBody.FakerefsarraymodelPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface ArrayModelOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse arrayModel(FakerefsarraymodelPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsarraymodelPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse arrayModel(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakerefsarraymodelPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakerefsarraymodelPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakerefsarraymodelPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakerefsarraymodelPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakerefsarraymodelPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakerefsarraymodelPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefsarraymodelPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakerefsarraymodelPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakerefsarraymodelPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakerefsarraymodelPostRequest(); + this.instance = new PostRequest(); } - public FakerefsarraymodelPostRequest build() { + public PostRequest build() { return instance; } - public FakerefsarraymodelPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakerefsarraymodelPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakerefsarraymodelPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakerefsarraymodelPostRequest instance) { + 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..fc08f67aafb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.java index cd7db4c428b..c71cf6c877f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakerefsarraymodelRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakerefsarraymodelRequestBody1 extends RequestBodySerializer { + public FakerefsarraymodelRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 b98b7de12ba..6b6ae9d074e 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefsarrayofenums; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.RequestBody; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakerefsarrayofenumsPostRequestBody.FakerefsarrayofenumsPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface ArrayOfEnumsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse arrayOfEnums(FakerefsarrayofenumsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsarrayofenumsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse arrayOfEnums(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakerefsarrayofenumsPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakerefsarrayofenumsPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakerefsarrayofenumsPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakerefsarrayofenumsPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakerefsarrayofenumsPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakerefsarrayofenumsPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefsarrayofenumsPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakerefsarrayofenumsPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakerefsarrayofenumsPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakerefsarrayofenumsPostRequest(); + this.instance = new PostRequest(); } - public FakerefsarrayofenumsPostRequest build() { + public PostRequest build() { return instance; } - public FakerefsarrayofenumsPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakerefsarrayofenumsPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakerefsarrayofenumsPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakerefsarrayofenumsPostRequest instance) { + 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..b613c14a273 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.java index b9c573e092d..e6691921f94 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakerefsarrayofenumsRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakerefsarrayofenumsRequestBody1 extends RequestBodySerializer { + public FakerefsarrayofenumsRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 c123dc5dc41..dde9e0c47f6 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefsboolean; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.RequestBody; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsboolean.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakerefsbooleanPostRequestBody.FakerefsbooleanPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface ModelBooleanOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse modelBoolean(FakerefsbooleanPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsbooleanPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse modelBoolean(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakerefsbooleanPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakerefsbooleanPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakerefsbooleanPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakerefsbooleanPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakerefsbooleanPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakerefsbooleanPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefsbooleanPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakerefsbooleanPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakerefsbooleanPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakerefsbooleanPostRequest(); + this.instance = new PostRequest(); } - public FakerefsbooleanPostRequest build() { + public PostRequest build() { return instance; } - public FakerefsbooleanPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakerefsbooleanPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakerefsbooleanPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakerefsbooleanPostRequest instance) { + 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..1b369a99210 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.java index 7d6c5aea5e6..a84db6c4a1a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakerefsbooleanRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakerefsbooleanRequestBody1 extends RequestBodySerializer { + public FakerefsbooleanRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 5b618b326cd..d0b0d05fe0b 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.RequestBody; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakerefscomposedoneofnumberwithvalidationsPostRequestBody.FakerefscomposedoneofnumberwithvalidationsPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface ComposedOneOfDifferentTypesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse composedOneOfDifferentTypes(FakerefscomposedoneofnumberwithvalidationsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefscomposedoneofnumberwithvalidationsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse composedOneOfDifferentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakerefscomposedoneofnumberwithvalidationsPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakerefscomposedoneofnumberwithvalidationsPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakerefscomposedoneofnumberwithvalidationsPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakerefscomposedoneofnumberwithvalidationsPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakerefscomposedoneofnumberwithvalidationsPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefscomposedoneofnumberwithvalidationsPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakerefscomposedoneofnumberwithvalidationsPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakerefscomposedoneofnumberwithvalidationsPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakerefscomposedoneofnumberwithvalidationsPostRequest(); + this.instance = new PostRequest(); } - public FakerefscomposedoneofnumberwithvalidationsPostRequest build() { + public PostRequest build() { return instance; } - public FakerefscomposedoneofnumberwithvalidationsPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakerefscomposedoneofnumberwithvalidationsPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakerefscomposedoneofnumberwithvalidationsPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakerefscomposedoneofnumberwithvalidationsPostRequest instance) { + 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..67f5d3bae90 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.java index 9c7d24a6e84..e77c5fd64e2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakerefscomposedoneofnumberwithvalidationsRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakerefscomposedoneofnumberwithvalidationsRequestBody1 extends RequestBodySerializer { + public FakerefscomposedoneofnumberwithvalidationsRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 94504e022a4..3676edf4ed6 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefsenum; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsenum.post.RequestBody; +import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsenum.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakerefsenumPostRequestBody.FakerefsenumPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface StringEnumOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse stringEnum(FakerefsenumPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsenumPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse stringEnum(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakerefsenumPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakerefsenumPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakerefsenumPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakerefsenumPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakerefsenumPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakerefsenumPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefsenumPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakerefsenumPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakerefsenumPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakerefsenumPostRequest(); + this.instance = new PostRequest(); } - public FakerefsenumPostRequest build() { + public PostRequest build() { return instance; } - public FakerefsenumPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakerefsenumPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakerefsenumPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakerefsenumPostRequest instance) { + 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..0cd90ba6800 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumRequestBody.java index 4166ca11c2b..43852f92eb6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakerefsenumRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakerefsenumRequestBody1 extends RequestBodySerializer { + public FakerefsenumRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 e518edca57f..90271137fcb 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.RequestBody; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; import org.openapijsonschematools.client.paths.fakerefsmammal.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse post( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new FakerefsmammalPostRequestBody.FakerefsmammalPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface MammalOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse mammal(FakerefsmammalPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsmammalPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse mammal(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.SealedRequestBody requestBody; + public FakerefsmammalPostRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - RequestBody.SealedRequestBody requestBody, + FakerefsmammalPostRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PostRequest( } public static class PostNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakerefsmammalPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - FakerefsmammalPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(FakerefsmammalPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefsmammalPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(FakerefsmammalPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - FakerefsmammalPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(FakerefsmammalPostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakerefsmammalPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakerefsmammalPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(FakerefsmammalPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public FakerefsmammalPostRequest build() { + public PostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public FakerefsmammalPostRequest build() { ); } - public FakerefsmammalPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(FakerefsmammalPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(FakerefsmammalPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final FakerefsmammalPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new FakerefsmammalPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public FakerefsmammalPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(FakerefsmammalPostNullableRequest 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..695888415fe --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalRequestBody.java index 7fba66cb6d8..ba2e424792d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakerefsmammalRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakerefsmammalRequestBody1 extends RequestBodySerializer { + public FakerefsmammalRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 82746d0b265..b405de1eff9 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefsnumber; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.RequestBody; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsnumber.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakerefsnumberPostRequestBody.FakerefsnumberPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface NumberWithValidationsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse numberWithValidations(FakerefsnumberPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsnumberPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse numberWithValidations(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakerefsnumberPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakerefsnumberPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakerefsnumberPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakerefsnumberPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakerefsnumberPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakerefsnumberPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefsnumberPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakerefsnumberPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakerefsnumberPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakerefsnumberPostRequest(); + this.instance = new PostRequest(); } - public FakerefsnumberPostRequest build() { + public PostRequest build() { return instance; } - public FakerefsnumberPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakerefsnumberPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakerefsnumberPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakerefsnumberPostRequest instance) { + 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..f4b6ef9e729 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberRequestBody.java index 8494dd01aaa..c5df05ba851 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakerefsnumberRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakerefsnumberRequestBody1 extends RequestBodySerializer { + public FakerefsnumberRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 24eed159a21..47af083703c 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.RequestBody; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakerefsobjectmodelwithrefpropsPostRequestBody.FakerefsobjectmodelwithrefpropsPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface ObjectModelWithRefPropsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse objectModelWithRefProps(FakerefsobjectmodelwithrefpropsPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsobjectmodelwithrefpropsPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse objectModelWithRefProps(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakerefsobjectmodelwithrefpropsPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakerefsobjectmodelwithrefpropsPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakerefsobjectmodelwithrefpropsPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakerefsobjectmodelwithrefpropsPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakerefsobjectmodelwithrefpropsPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakerefsobjectmodelwithrefpropsPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefsobjectmodelwithrefpropsPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakerefsobjectmodelwithrefpropsPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakerefsobjectmodelwithrefpropsPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakerefsobjectmodelwithrefpropsPostRequest(); + this.instance = new PostRequest(); } - public FakerefsobjectmodelwithrefpropsPostRequest build() { + public PostRequest build() { return instance; } - public FakerefsobjectmodelwithrefpropsPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakerefsobjectmodelwithrefpropsPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakerefsobjectmodelwithrefpropsPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakerefsobjectmodelwithrefpropsPostRequest instance) { + 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..2905d77e4fd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.java index 36aacc1eb10..b4abc73b373 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakerefsobjectmodelwithrefpropsRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakerefsobjectmodelwithrefpropsRequestBody1 extends RequestBodySerializer { + public FakerefsobjectmodelwithrefpropsRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 be9b7386abd..7ab09485352 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefsstring; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsstring.post.RequestBody; +import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsstring.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakerefsstringPostRequestBody.FakerefsstringPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface ModelStringOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse modelString(FakerefsstringPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakerefsstringPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse modelString(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakerefsstringPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakerefsstringPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakerefsstringPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakerefsstringPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakerefsstringPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakerefsstringPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakerefsstringPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakerefsstringPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakerefsstringPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakerefsstringPostRequest(); + this.instance = new PostRequest(); } - public FakerefsstringPostRequest build() { + public PostRequest build() { return instance; } - public FakerefsstringPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakerefsstringPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakerefsstringPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakerefsstringPostRequest instance) { + 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..1eff64ddf28 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringRequestBody.java index 8cbfffaff80..ac98cf7ac0f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakerefsstringRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakerefsstringRequestBody1 extends RequestBodySerializer { + public FakerefsstringRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 475cf4e43ca..fac2a1cccc0 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 @@ -62,8 +62,8 @@ public interface ResponseWithoutSchemaOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse responseWithoutSchema(FakeresponsewithoutschemaGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeresponsewithoutschemaGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse responseWithoutSchema(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,7 +79,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - FakeresponsewithoutschemaGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakeresponsewithoutschemaGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -89,7 +89,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeresponsewithoutschemaGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakeresponsewithoutschemaGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakeresponsewithoutschemaGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakeresponsewithoutschemaGetRequest(); + this.instance = new GetRequest(); } - public FakeresponsewithoutschemaGetRequest build() { + public GetRequest build() { return instance; } - public FakeresponsewithoutschemaGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(FakeresponsewithoutschemaGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakeresponsewithoutschemaGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 4f2092dccec..5e791a9be5e 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 @@ -68,8 +68,8 @@ public interface QueryParameterCollectionFormatOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse queryParameterCollectionFormat(FaketestqueryparamtersPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FaketestqueryparamtersPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse queryParameterCollectionFormat(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -102,7 +102,7 @@ public static class PutNullableRequest { } public interface SetterForServerIndex { - FaketestqueryparamtersPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterServerIndex(FaketestqueryparamtersPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -112,7 +112,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FaketestqueryparamtersPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterTimeout(FaketestqueryparamtersPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - FaketestqueryparamtersPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterQueryParameters(FaketestqueryparamtersPutNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -132,13 +132,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FaketestqueryparamtersPutNullableRequest instance; + private final PutNullableRequest instance; - public Put0RequestBuilder(FaketestqueryparamtersPutNullableRequest instance) { + public Put0RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public FaketestqueryparamtersPutRequest build() { + public PutRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -150,30 +150,30 @@ public FaketestqueryparamtersPutRequest build() { ); } - public FaketestqueryparamtersPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterServerIndex(FaketestqueryparamtersPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterTimeout(FaketestqueryparamtersPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { return this; } } public static class PutRequestBuilder implements SetterForQueryParameters { - private final FaketestqueryparamtersPutNullableRequest instance; + private final PutNullableRequest instance; public PutRequestBuilder() { - this.instance = new FaketestqueryparamtersPutNullableRequest(); + this.instance = new PutNullableRequest(); } - public FaketestqueryparamtersPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterQueryParameters(FaketestqueryparamtersPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { return new Put0RequestBuilder(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 ce5d94ced0e..cc6f9adb482 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.RequestBody; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse post( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new FakeuploaddownloadfilePostRequestBody.FakeuploaddownloadfilePostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface UploadDownloadFileOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadDownloadFile(FakeuploaddownloadfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeuploaddownloadfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadDownloadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.SealedRequestBody requestBody; + public FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - RequestBody.SealedRequestBody requestBody, + FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PostRequest( } public static class PostNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakeuploaddownloadfilePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - FakeuploaddownloadfilePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(FakeuploaddownloadfilePostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeuploaddownloadfilePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(FakeuploaddownloadfilePostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - FakeuploaddownloadfilePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(FakeuploaddownloadfilePostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakeuploaddownloadfilePostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(FakeuploaddownloadfilePostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public FakeuploaddownloadfilePostRequest build() { + public PostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public FakeuploaddownloadfilePostRequest build() { ); } - public FakeuploaddownloadfilePostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(FakeuploaddownloadfilePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(FakeuploaddownloadfilePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final FakeuploaddownloadfilePostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new FakeuploaddownloadfilePostNullableRequest(); + this.instance = new PostNullableRequest(); } - public FakeuploaddownloadfilePostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(FakeuploaddownloadfilePostNullableRequest 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..b7e3baa11fe --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.java index 480f5c0801a..8c98ea50da9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakeuploaddownloadfileRequestBody { public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType {} public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakeuploaddownloadfileRequestBody1 extends RequestBodySerializer { + public FakeuploaddownloadfileRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/octet-stream", new ApplicationoctetstreamMediaType()) 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 2787525dcce..19248dad53e 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeuploadfile; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.RequestBody; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfile.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakeuploadfilePostRequestBody.FakeuploadfilePostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface UploadFileOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadFile(FakeuploadfilePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeuploadfilePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakeuploadfilePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakeuploadfilePostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakeuploadfilePostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakeuploadfilePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakeuploadfilePostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakeuploadfilePostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeuploadfilePostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakeuploadfilePostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakeuploadfilePostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakeuploadfilePostRequest(); + this.instance = new PostRequest(); } - public FakeuploadfilePostRequest build() { + public PostRequest build() { return instance; } - public FakeuploadfilePostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakeuploadfilePostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakeuploadfilePostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakeuploadfilePostRequest instance) { + 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..29679dae97b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfileRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfileRequestBody.java index c9165873f80..9a8ff665b48 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfileRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakeuploadfileRequestBody { public sealed interface SealedMediaType permits MultipartformdataMediaType {} public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakeuploadfileRequestBody1 extends RequestBodySerializer { + public FakeuploadfileRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) 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 ed81ca94f3d..cfff6fdeaa6 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeuploadfiles; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.RequestBody; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new FakeuploadfilesPostRequestBody.FakeuploadfilesPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -75,8 +75,8 @@ public interface UploadFilesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadFiles(FakeuploadfilesPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakeuploadfilesPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadFiles(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -87,15 +87,15 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public FakeuploadfilesPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - FakeuploadfilesPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterRequestBody(FakeuploadfilesPostRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(FakeuploadfilesPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -103,7 +103,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - FakeuploadfilesPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterServerIndex(FakeuploadfilesPostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakeuploadfilesPostRequest getInstance(); + PostRequest getInstance(); T getBuilderAfterTimeout(FakeuploadfilesPostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final FakeuploadfilesPostRequest instance; + private final PostRequest instance; public PostRequestBuilder() { - this.instance = new FakeuploadfilesPostRequest(); + this.instance = new PostRequest(); } - public FakeuploadfilesPostRequest build() { + public PostRequest build() { return instance; } - public FakeuploadfilesPostRequest getInstance() { + public PostRequest getInstance() { return instance; } - public PostRequestBuilder getBuilderAfterRequestBody(FakeuploadfilesPostRequest instance) { + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterServerIndex(FakeuploadfilesPostRequest instance) { + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { return this; } - public PostRequestBuilder getBuilderAfterTimeout(FakeuploadfilesPostRequest instance) { + 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..88c61d43ac0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.java index 418dbfd9b9a..28a72f5048b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class FakeuploadfilesRequestBody { public sealed interface SealedMediaType permits MultipartformdataMediaType {} public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class FakeuploadfilesRequestBody1 extends RequestBodySerializer { + public FakeuploadfilesRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) 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 31d7095501e..f16fd59e90f 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 @@ -62,8 +62,8 @@ public interface WildCardResponsesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse wildCardResponses(FakewildcardresponsesGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FakewildcardresponsesGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse wildCardResponses(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,7 +79,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - FakewildcardresponsesGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FakewildcardresponsesGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -89,7 +89,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FakewildcardresponsesGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FakewildcardresponsesGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FakewildcardresponsesGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FakewildcardresponsesGetRequest(); + this.instance = new GetRequest(); } - public FakewildcardresponsesGetRequest build() { + public GetRequest build() { return instance; } - public FakewildcardresponsesGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(FakewildcardresponsesGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FakewildcardresponsesGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 index be60e6ed5ad..067ddc0d589 100644 --- 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 @@ -62,8 +62,8 @@ public interface FooGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse fooGet(FooGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return FooGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse fooGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,7 +79,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - FooGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(FooGetRequest instance); default T serverIndex(FooGetServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -89,7 +89,7 @@ default T serverIndex(FooGetServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - FooGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(FooGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final FooGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new FooGetRequest(); + this.instance = new GetRequest(); } - public FooGetRequest build() { + public GetRequest build() { return instance; } - public FooGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(FooGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(FooGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 7c124ef108c..d2e89fed752 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 @@ -3,7 +3,7 @@ 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.RequestBody; +import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; import org.openapijsonschematools.client.paths.pet.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -37,7 +37,7 @@ public static Responses.EndpointResponse post( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new PetPostRequestBody.PetPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -84,8 +84,8 @@ public interface AddPetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse addPet(PetPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse addPet(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -96,13 +96,13 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.SealedRequestBody requestBody; + public PetPostRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - RequestBody.SealedRequestBody requestBody, + PetPostRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetPostSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -115,14 +115,14 @@ public PostRequest( } public static class PostNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public PetPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PetPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PetPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -132,7 +132,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PetPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterSecurityIndex(PetPostNullableRequest instance); default T securityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -142,7 +142,7 @@ default T securityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - PetPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(PetPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -152,9 +152,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PetPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(PetPostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(PetPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -162,13 +162,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PetPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(PetPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public PetPostRequest build() { + public PostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -181,34 +181,34 @@ public PetPostRequest build() { ); } - public PetPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(PetPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterSecurityIndex(PetPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PetPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final PetPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PetPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public PetPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PetPostNullableRequest 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 index edcb1b99f32..7018dca5d53 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 @@ -3,7 +3,7 @@ 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.RequestBody; +import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; import org.openapijsonschematools.client.paths.pet.put.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -37,7 +37,7 @@ public static Void put( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new PetPutRequestBody.PetPutRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -84,8 +84,8 @@ public interface UpdatePetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void updatePet(PetPutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetPutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void updatePet(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -96,13 +96,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public RequestBody.SealedRequestBody requestBody; + public PetPutRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PutRequest( - RequestBody.SealedRequestBody requestBody, + PetPutRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetPutSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -115,14 +115,14 @@ public PutRequest( } public static class PutNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public PetPutRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - PetPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterServerIndex(PetPutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -132,7 +132,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PetPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterSecurityIndex(PetPutNullableRequest instance); default T securityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -142,7 +142,7 @@ default T securityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - PetPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterTimeout(PetPutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -152,9 +152,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - PetPutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterRequestBody(PetPutNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(PetPutRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -162,13 +162,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Put0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PetPutNullableRequest instance; + private final PutNullableRequest instance; - public Put0RequestBuilder(PetPutNullableRequest instance) { + public Put0RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public PetPutRequest build() { + public PutRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -181,34 +181,34 @@ public PetPutRequest build() { ); } - public PetPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterServerIndex(PetPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterSecurityIndex(PetPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterSecurityIndex(PutNullableRequest instance) { return this; } - public Put0RequestBuilder getBuilderAfterTimeout(PetPutNullableRequest instance) { + public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { return this; } } public static class PutRequestBuilder implements SetterForRequestBody { - private final PetPutNullableRequest instance; + private final PutNullableRequest instance; public PutRequestBuilder() { - this.instance = new PetPutNullableRequest(); + this.instance = new PutNullableRequest(); } - public PetPutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put0RequestBuilder getBuilderAfterRequestBody(PetPutNullableRequest 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..d31fde38cb3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java @@ -0,0 +1,11 @@ +/* + 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; + +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetRequestBody.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetRequestBody.java index 16a546e1201..e223f9e5443 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetRequestBody.java @@ -6,6 +6,6 @@ import org.openapijsonschematools.client.components.requestbodies.Pet; -public class RequestBody extends Pet { - public static class RequestBody1 extends Pet1 {} +public class PetRequestBody extends Pet { + public static class PetRequestBody1 extends Pet1 {} } 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..05a8bf7faa0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java @@ -0,0 +1,11 @@ +/* + 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; + +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetRequestBody.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetRequestBody.java index 83f188dd916..68f82ab7fae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetRequestBody.java @@ -6,6 +6,6 @@ import org.openapijsonschematools.client.components.requestbodies.Pet; -public class RequestBody extends Pet { - public static class RequestBody1 extends Pet1 {} +public class PetRequestBody extends Pet { + public static class PetRequestBody1 extends Pet1 {} } 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 08328d17de4..c28dabe3320 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 @@ -81,8 +81,8 @@ public interface FindPetsByStatusOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse findPetsByStatus(PetfindbystatusGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetfindbystatusGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse findPetsByStatus(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -119,7 +119,7 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - PetfindbystatusGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterServerIndex(PetfindbystatusGetNullableRequest instance); default T serverIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -129,7 +129,7 @@ default T serverIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PetfindbystatusGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterSecurityIndex(PetfindbystatusGetNullableRequest instance); default T securityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -139,7 +139,7 @@ default T securityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityInd } public interface SetterForTimeout { - PetfindbystatusGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterTimeout(PetfindbystatusGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -149,7 +149,7 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - PetfindbystatusGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(PetfindbystatusGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -159,13 +159,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PetfindbystatusGetNullableRequest instance; + private final GetNullableRequest instance; - public Get0RequestBuilder(PetfindbystatusGetNullableRequest instance) { + public Get0RequestBuilder(GetNullableRequest instance) { this.instance = instance; } - public PetfindbystatusGetRequest build() { + public GetRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -178,34 +178,34 @@ public PetfindbystatusGetRequest build() { ); } - public PetfindbystatusGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(PetfindbystatusGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterSecurityIndex(PetfindbystatusGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(PetfindbystatusGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForQueryParameters { - private final PetfindbystatusGetNullableRequest instance; + private final GetNullableRequest instance; public GetRequestBuilder() { - this.instance = new PetfindbystatusGetNullableRequest(); + this.instance = new GetNullableRequest(); } - public PetfindbystatusGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(PetfindbystatusGetNullableRequest 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/PetfindbytagsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java index f0dcd084c1c..5990aa4c759 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 @@ -81,8 +81,8 @@ public interface FindPetsByTagsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse findPetsByTags(PetfindbytagsGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetfindbytagsGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse findPetsByTags(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -119,7 +119,7 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - PetfindbytagsGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterServerIndex(PetfindbytagsGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -129,7 +129,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PetfindbytagsGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterSecurityIndex(PetfindbytagsGetNullableRequest instance); default T securityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -139,7 +139,7 @@ default T securityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex } public interface SetterForTimeout { - PetfindbytagsGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterTimeout(PetfindbytagsGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -149,7 +149,7 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - PetfindbytagsGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(PetfindbytagsGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -159,13 +159,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PetfindbytagsGetNullableRequest instance; + private final GetNullableRequest instance; - public Get0RequestBuilder(PetfindbytagsGetNullableRequest instance) { + public Get0RequestBuilder(GetNullableRequest instance) { this.instance = instance; } - public PetfindbytagsGetRequest build() { + public GetRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -178,34 +178,34 @@ public PetfindbytagsGetRequest build() { ); } - public PetfindbytagsGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(PetfindbytagsGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterSecurityIndex(PetfindbytagsGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(PetfindbytagsGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForQueryParameters { - private final PetfindbytagsGetNullableRequest instance; + private final GetNullableRequest instance; public GetRequestBuilder() { - this.instance = new PetfindbytagsGetNullableRequest(); + this.instance = new GetNullableRequest(); } - public PetfindbytagsGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(PetfindbytagsGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { return new Get0RequestBuilder(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 4b5193db9f6..6708d3d2dad 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 @@ -87,8 +87,8 @@ public interface DeletePetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void deletePet(PetpetidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetpetidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void deletePet(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -129,7 +129,7 @@ public static class DeleteNullableRequest { } public interface SetterForHeaderParameters { - PetpetidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterHeaderParameters(PetpetidDeleteNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); @@ -139,7 +139,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters } public interface SetterForServerIndex { - PetpetidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(PetpetidDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -149,7 +149,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PetpetidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterSecurityIndex(PetpetidDeleteNullableRequest instance); default T securityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -159,7 +159,7 @@ default T securityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) } public interface SetterForTimeout { - PetpetidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterTimeout(PetpetidDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -169,7 +169,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - PetpetidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(PetpetidDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -179,13 +179,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PetpetidDeleteNullableRequest instance; + private final DeleteNullableRequest instance; - public Delete0RequestBuilder(PetpetidDeleteNullableRequest instance) { + public Delete0RequestBuilder(DeleteNullableRequest instance) { this.instance = instance; } - public PetpetidDeleteRequest build() { + public DeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -199,38 +199,38 @@ public PetpetidDeleteRequest build() { ); } - public PetpetidDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterHeaderParameters(PetpetidDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterServerIndex(PetpetidDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterSecurityIndex(PetpetidDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterSecurityIndex(DeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(PetpetidDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final PetpetidDeleteNullableRequest instance; + private final DeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new PetpetidDeleteNullableRequest(); + this.instance = new DeleteNullableRequest(); } - public PetpetidDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(PetpetidDeleteNullableRequest 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 index 52070a5d3b6..e38c535b3a8 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 @@ -80,8 +80,8 @@ public interface GetPetByIdOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getPetById(PetpetidGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetpetidGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getPetById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -118,7 +118,7 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - PetpetidGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterServerIndex(PetpetidGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -128,7 +128,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PetpetidGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterSecurityIndex(PetpetidGetNullableRequest instance); default T securityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -138,7 +138,7 @@ default T securityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - PetpetidGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterTimeout(PetpetidGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -148,7 +148,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - PetpetidGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterPathParameters(PetpetidGetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -158,13 +158,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PetpetidGetNullableRequest instance; + private final GetNullableRequest instance; - public Get0RequestBuilder(PetpetidGetNullableRequest instance) { + public Get0RequestBuilder(GetNullableRequest instance) { this.instance = instance; } - public PetpetidGetRequest build() { + public GetRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -177,34 +177,34 @@ public PetpetidGetRequest build() { ); } - public PetpetidGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(PetpetidGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterSecurityIndex(PetpetidGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(PetpetidGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForPathParameters { - private final PetpetidGetNullableRequest instance; + private final GetNullableRequest instance; public GetRequestBuilder() { - this.instance = new PetpetidGetNullableRequest(); + this.instance = new GetNullableRequest(); } - public PetpetidGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterPathParameters(PetpetidGetNullableRequest 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 index 90275ba13a5..4dbacd6c991 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.petpetid; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.petpetid.post.RequestBody; +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.PathParameters; @@ -42,7 +42,7 @@ public static Void post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new PetpetidPostRequestBody.PetpetidPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -93,8 +93,8 @@ public interface UpdatePetWithFormOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void updatePetWithForm(PetpetidPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetpetidPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void updatePetWithForm(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -106,14 +106,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public PathParameters.PathParametersMap pathParameters; - public RequestBody.@Nullable SealedRequestBody requestBody; + public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( PathParameters.PathParametersMap pathParameters, - RequestBody.@Nullable SealedRequestBody requestBody, + PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -128,16 +128,16 @@ public PostRequest( public static class PostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; - public RequestBody.@Nullable SealedRequestBody requestBody; + public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PetpetidPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(PetpetidPostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(PetpetidPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -145,7 +145,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PetpetidPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PetpetidPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -155,7 +155,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PetpetidPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterSecurityIndex(PetpetidPostNullableRequest instance); default T securityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -165,7 +165,7 @@ default T securityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { } public interface SetterForTimeout { - PetpetidPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(PetpetidPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -175,7 +175,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - PetpetidPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PetpetidPostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -185,13 +185,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PetpetidPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(PetpetidPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public PetpetidPostRequest build() { + public PostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -205,38 +205,38 @@ public PetpetidPostRequest build() { ); } - public PetpetidPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PetpetidPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(PetpetidPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterSecurityIndex(PetpetidPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PetpetidPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final PetpetidPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PetpetidPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public PetpetidPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(PetpetidPostNullableRequest 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/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..5a90f83cf0b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidRequestBody.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidRequestBody.java index 00ba6ed79f2..7ed89d8e201 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class PetpetidRequestBody { public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class PetpetidRequestBody1 extends RequestBodySerializer { + public PetpetidRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) 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 866b701c8fd..b15c5abe6fc 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.petpetiduploadimage; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.RequestBody; +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.PathParameters; @@ -42,7 +42,7 @@ public static Responses.EndpointResponse post( @Nullable SerializedRequestBody serializedRequestBody; HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); if (request.requestBody != null) { - serializedRequestBody = new RequestBody.RequestBody1().serialize( + serializedRequestBody = new PetpetiduploadimagePostRequestBody.PetpetiduploadimagePostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -93,8 +93,8 @@ public interface UploadImageOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadImage(PetpetiduploadimagePostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PetpetiduploadimagePostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse uploadImage(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -106,14 +106,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public PathParameters.PathParametersMap pathParameters; - public RequestBody.@Nullable SealedRequestBody requestBody; + public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( PathParameters.PathParametersMap pathParameters, - RequestBody.@Nullable SealedRequestBody requestBody, + PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -128,16 +128,16 @@ public PostRequest( public static class PostNullableRequest { public PathParameters.@Nullable PathParametersMap pathParameters; - public RequestBody.@Nullable SealedRequestBody requestBody; + public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } public interface SetterForRequestBody { - PetpetiduploadimagePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(PetpetiduploadimagePostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(PetpetiduploadimagePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -145,7 +145,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForServerIndex { - PetpetiduploadimagePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PetpetiduploadimagePostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -155,7 +155,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - PetpetiduploadimagePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterSecurityIndex(PetpetiduploadimagePostNullableRequest instance); default T securityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -165,7 +165,7 @@ default T securityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securi } public interface SetterForTimeout { - PetpetiduploadimagePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(PetpetiduploadimagePostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -175,7 +175,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - PetpetiduploadimagePostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PetpetiduploadimagePostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -185,13 +185,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PetpetiduploadimagePostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(PetpetiduploadimagePostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public PetpetiduploadimagePostRequest build() { + public PostRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -205,38 +205,38 @@ public PetpetiduploadimagePostRequest build() { ); } - public PetpetiduploadimagePostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(PetpetiduploadimagePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterServerIndex(PetpetiduploadimagePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterSecurityIndex(PetpetiduploadimagePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(PetpetiduploadimagePostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForPathParameters { - private final PetpetiduploadimagePostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new PetpetiduploadimagePostNullableRequest(); + this.instance = new PostNullableRequest(); } - public PetpetiduploadimagePostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterPathParameters(PetpetiduploadimagePostNullableRequest 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/PetpetiduploadimagePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java new file mode 100644 index 00000000000..eec826e462c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.java index 81fe04dc837..6f618cd1ce3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class PetpetiduploadimageRequestBody { public sealed interface SealedMediaType permits MultipartformdataMediaType {} public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class PetpetiduploadimageRequestBody1 extends RequestBodySerializer { + public PetpetiduploadimageRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) 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 fefb1971976..3fe3d662d98 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 @@ -62,8 +62,8 @@ public interface SlashRouteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse slashRoute(SolidusGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return SolidusGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse slashRoute(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,7 +79,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - SolidusGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(SolidusGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -89,7 +89,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - SolidusGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(SolidusGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final SolidusGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new SolidusGetRequest(); + this.instance = new GetRequest(); } - public SolidusGetRequest build() { + public GetRequest build() { return instance; } - public SolidusGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(SolidusGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(SolidusGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 93ab6d8c1a8..8968d46614c 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 @@ -75,8 +75,8 @@ public interface GetInventoryOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getInventory(StoreinventoryGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return StoreinventoryGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getInventory(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -93,7 +93,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - StoreinventoryGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(StoreinventoryGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -103,7 +103,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForSecurityIndex { - StoreinventoryGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterSecurityIndex(StoreinventoryGetRequest instance); default T securityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); @@ -113,7 +113,7 @@ default T securityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityInde } public interface SetterForTimeout { - StoreinventoryGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(StoreinventoryGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -123,29 +123,29 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final StoreinventoryGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new StoreinventoryGetRequest(); + this.instance = new GetRequest(); } - public StoreinventoryGetRequest build() { + public GetRequest build() { return instance; } - public StoreinventoryGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(StoreinventoryGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterSecurityIndex(StoreinventoryGetRequest instance) { + public GetRequestBuilder getBuilderAfterSecurityIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(StoreinventoryGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 f7674a82f01..7de8d4082d9 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.storeorder.post.RequestBody; +import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; import org.openapijsonschematools.client.paths.storeorder.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse post( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new StoreorderPostRequestBody.StoreorderPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface PlaceOrderOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse placeOrder(StoreorderPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return StoreorderPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse placeOrder(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.SealedRequestBody requestBody; + public StoreorderPostRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - RequestBody.SealedRequestBody requestBody, + StoreorderPostRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PostRequest( } public static class PostNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public StoreorderPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - StoreorderPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(StoreorderPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - StoreorderPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(StoreorderPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - StoreorderPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(StoreorderPostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(StoreorderPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final StoreorderPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(StoreorderPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public StoreorderPostRequest build() { + public PostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public StoreorderPostRequest build() { ); } - public StoreorderPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(StoreorderPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(StoreorderPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final StoreorderPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new StoreorderPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public StoreorderPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(StoreorderPostNullableRequest 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..0c0a1dbc175 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderRequestBody.java index 917836e859f..0e43fbedfe0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class StoreorderRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class StoreorderRequestBody1 extends RequestBodySerializer { + public StoreorderRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 44dc15a59a0..6090c11e560 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 @@ -67,8 +67,8 @@ public interface DeleteOrderOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void deleteOrder(StoreorderorderidDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return StoreorderorderidDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void deleteOrder(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -101,7 +101,7 @@ public static class DeleteNullableRequest { } public interface SetterForServerIndex { - StoreorderorderidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(StoreorderorderidDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -111,7 +111,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - StoreorderorderidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterTimeout(StoreorderorderidDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -121,7 +121,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - StoreorderorderidDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(StoreorderorderidDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -131,13 +131,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final StoreorderorderidDeleteNullableRequest instance; + private final DeleteNullableRequest instance; - public Delete0RequestBuilder(StoreorderorderidDeleteNullableRequest instance) { + public Delete0RequestBuilder(DeleteNullableRequest instance) { this.instance = instance; } - public StoreorderorderidDeleteRequest build() { + public DeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -149,30 +149,30 @@ public StoreorderorderidDeleteRequest build() { ); } - public StoreorderorderidDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterServerIndex(StoreorderorderidDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(StoreorderorderidDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final StoreorderorderidDeleteNullableRequest instance; + private final DeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new StoreorderorderidDeleteNullableRequest(); + this.instance = new DeleteNullableRequest(); } - public StoreorderorderidDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(StoreorderorderidDeleteNullableRequest 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 index 1fa2afd17db..d7df9332612 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 @@ -67,8 +67,8 @@ public interface GetOrderByIdOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getOrderById(StoreorderorderidGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return StoreorderorderidGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getOrderById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -101,7 +101,7 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - StoreorderorderidGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterServerIndex(StoreorderorderidGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -111,7 +111,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - StoreorderorderidGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterTimeout(StoreorderorderidGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -121,7 +121,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - StoreorderorderidGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterPathParameters(StoreorderorderidGetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -131,13 +131,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final StoreorderorderidGetNullableRequest instance; + private final GetNullableRequest instance; - public Get0RequestBuilder(StoreorderorderidGetNullableRequest instance) { + public Get0RequestBuilder(GetNullableRequest instance) { this.instance = instance; } - public StoreorderorderidGetRequest build() { + public GetRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -149,30 +149,30 @@ public StoreorderorderidGetRequest build() { ); } - public StoreorderorderidGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(StoreorderorderidGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(StoreorderorderidGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForPathParameters { - private final StoreorderorderidGetNullableRequest instance; + private final GetNullableRequest instance; public GetRequestBuilder() { - this.instance = new StoreorderorderidGetNullableRequest(); + this.instance = new GetNullableRequest(); } - public StoreorderorderidGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterPathParameters(StoreorderorderidGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { return new Get0RequestBuilder(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 01dddaa6834..f1bde88dd73 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.user.post.RequestBody; +import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; import org.openapijsonschematools.client.paths.user.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse post( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new UserPostRequestBody.UserPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface CreateUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse createUser(UserPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse createUser(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.SealedRequestBody requestBody; + public UserPostRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - RequestBody.SealedRequestBody requestBody, + UserPostRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PostRequest( } public static class PostNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public UserPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - UserPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(UserPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - UserPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(UserPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - UserPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(UserPostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(UserPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final UserPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(UserPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public UserPostRequest build() { + public PostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public UserPostRequest build() { ); } - public UserPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(UserPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(UserPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final UserPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new UserPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public UserPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(UserPostNullableRequest 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..ba6a1c6372e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserRequestBody.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserRequestBody.java index 52a467ba8dd..630cb19d35b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class UserRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class UserRequestBody1 extends RequestBodySerializer { + public UserRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 ea6491e0041..88500949ac1 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.usercreatewitharray.post.RequestBody; +import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; import org.openapijsonschematools.client.paths.usercreatewitharray.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse post( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new UsercreatewitharrayPostRequestBody.UsercreatewitharrayPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface CreateUsersWithArrayInputOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse createUsersWithArrayInput(UsercreatewitharrayPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UsercreatewitharrayPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse createUsersWithArrayInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.SealedRequestBody requestBody; + public UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - RequestBody.SealedRequestBody requestBody, + UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PostRequest( } public static class PostNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public UsercreatewitharrayPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - UsercreatewitharrayPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(UsercreatewitharrayPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - UsercreatewitharrayPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(UsercreatewitharrayPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - UsercreatewitharrayPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(UsercreatewitharrayPostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final UsercreatewitharrayPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(UsercreatewitharrayPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public UsercreatewitharrayPostRequest build() { + public PostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public UsercreatewitharrayPostRequest build() { ); } - public UsercreatewitharrayPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(UsercreatewitharrayPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(UsercreatewitharrayPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final UsercreatewitharrayPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new UsercreatewitharrayPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public UsercreatewitharrayPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(UsercreatewitharrayPostNullableRequest 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..b662a0bbb6c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java @@ -0,0 +1,11 @@ +/* + 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; + +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.java similarity index 64% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.java index 8d2d3a4bc61..29ca1f01132 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.java @@ -6,6 +6,6 @@ import org.openapijsonschematools.client.components.requestbodies.UserArray; -public class RequestBody extends UserArray { - public static class RequestBody1 extends UserArray1 {} +public class UsercreatewitharrayRequestBody extends UserArray { + public static class UsercreatewitharrayRequestBody1 extends UserArray1 {} } 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 2257bbe6ad0..7979e65de23 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.usercreatewithlist.post.RequestBody; +import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; import org.openapijsonschematools.client.paths.usercreatewithlist.post.Responses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -34,7 +34,7 @@ public static Responses.EndpointResponse post( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new UsercreatewithlistPostRequestBody.UsercreatewithlistPostRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -71,8 +71,8 @@ public interface CreateUsersWithListInputOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse createUsersWithListInput(UsercreatewithlistPostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UsercreatewithlistPostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse createUsersWithListInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -83,12 +83,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public RequestBody.SealedRequestBody requestBody; + public UsercreatewithlistPostRequestBody.SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - RequestBody.SealedRequestBody requestBody, + UsercreatewithlistPostRequestBody.SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -99,13 +99,13 @@ public PostRequest( } public static class PostNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public UsercreatewithlistPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - UsercreatewithlistPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterServerIndex(UsercreatewithlistPostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -115,7 +115,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - UsercreatewithlistPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterTimeout(UsercreatewithlistPostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -125,9 +125,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - UsercreatewithlistPostNullableRequest getInstance(); + PostNullableRequest getInstance(); T getBuilderAfterRequestBody(UsercreatewithlistPostNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(UsercreatewithlistPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -135,13 +135,13 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final UsercreatewithlistPostNullableRequest instance; + private final PostNullableRequest instance; - public Post0RequestBuilder(UsercreatewithlistPostNullableRequest instance) { + public Post0RequestBuilder(PostNullableRequest instance) { this.instance = instance; } - public UsercreatewithlistPostRequest build() { + public PostRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -153,30 +153,30 @@ public UsercreatewithlistPostRequest build() { ); } - public UsercreatewithlistPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterServerIndex(UsercreatewithlistPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { return this; } - public Post0RequestBuilder getBuilderAfterTimeout(UsercreatewithlistPostNullableRequest instance) { + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { return this; } } public static class PostRequestBuilder implements SetterForRequestBody { - private final UsercreatewithlistPostNullableRequest instance; + private final PostNullableRequest instance; public PostRequestBuilder() { - this.instance = new UsercreatewithlistPostNullableRequest(); + this.instance = new PostNullableRequest(); } - public UsercreatewithlistPostNullableRequest getInstance() { + public PostNullableRequest getInstance() { return instance; } - public Post0RequestBuilder getBuilderAfterRequestBody(UsercreatewithlistPostNullableRequest 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..29018a348a5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java @@ -0,0 +1,11 @@ +/* + 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; + +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.java similarity index 63% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.java index 2bfea109c73..a96775bd4ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.java @@ -6,6 +6,6 @@ import org.openapijsonschematools.client.components.requestbodies.RefUserArray; -public class RequestBody extends RefUserArray { - public static class RequestBody1 extends RefUserArray1 {} +public class UsercreatewithlistRequestBody extends RefUserArray { + public static class UsercreatewithlistRequestBody1 extends RefUserArray1 {} } 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 baf1c9aadf4..eb210c9dc4b 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 @@ -68,8 +68,8 @@ public interface LoginUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse loginUser(UserloginGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserloginGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse loginUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -102,7 +102,7 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - UserloginGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterServerIndex(UserloginGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -112,7 +112,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - UserloginGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterTimeout(UserloginGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { } public interface SetterForQueryParameters { - UserloginGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(UserloginGetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); @@ -132,13 +132,13 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final UserloginGetNullableRequest instance; + private final GetNullableRequest instance; - public Get0RequestBuilder(UserloginGetNullableRequest instance) { + public Get0RequestBuilder(GetNullableRequest instance) { this.instance = instance; } - public UserloginGetRequest build() { + public GetRequest build() { var queryParameters = instance.queryParameters; if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -150,30 +150,30 @@ public UserloginGetRequest build() { ); } - public UserloginGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(UserloginGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(UserloginGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForQueryParameters { - private final UserloginGetNullableRequest instance; + private final GetNullableRequest instance; public GetRequestBuilder() { - this.instance = new UserloginGetNullableRequest(); + this.instance = new GetNullableRequest(); } - public UserloginGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterQueryParameters(UserloginGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { return new Get0RequestBuilder(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 ad39437a8fb..27953be4a6e 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 @@ -62,8 +62,8 @@ public interface LogoutUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse logoutUser(UserlogoutGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserlogoutGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse logoutUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -79,7 +79,7 @@ public static class GetRequest { } public interface SetterForServerIndex { - UserlogoutGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterServerIndex(UserlogoutGetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -89,7 +89,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - UserlogoutGetRequest getInstance(); + GetRequest getInstance(); T getBuilderAfterTimeout(UserlogoutGetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -99,25 +99,25 @@ default T timeout(Duration timeout) { } public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final UserlogoutGetRequest instance; + private final GetRequest instance; public GetRequestBuilder() { - this.instance = new UserlogoutGetRequest(); + this.instance = new GetRequest(); } - public UserlogoutGetRequest build() { + public GetRequest build() { return instance; } - public UserlogoutGetRequest getInstance() { + public GetRequest getInstance() { return instance; } - public GetRequestBuilder getBuilderAfterServerIndex(UserlogoutGetRequest instance) { + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { return this; } - public GetRequestBuilder getBuilderAfterTimeout(UserlogoutGetRequest instance) { + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { return this; } } 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 36a6fb6b3db..5d9e754bcde 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 @@ -67,8 +67,8 @@ public interface DeleteUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse deleteUser(UserusernameDeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserusernameDeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse deleteUser(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -101,7 +101,7 @@ public static class DeleteNullableRequest { } public interface SetterForServerIndex { - UserusernameDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(UserusernameDeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -111,7 +111,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - UserusernameDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterTimeout(UserusernameDeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -121,7 +121,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - UserusernameDeleteNullableRequest getInstance(); + DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(UserusernameDeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -131,13 +131,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final UserusernameDeleteNullableRequest instance; + private final DeleteNullableRequest instance; - public Delete0RequestBuilder(UserusernameDeleteNullableRequest instance) { + public Delete0RequestBuilder(DeleteNullableRequest instance) { this.instance = instance; } - public UserusernameDeleteRequest build() { + public DeleteRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -149,30 +149,30 @@ public UserusernameDeleteRequest build() { ); } - public UserusernameDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterServerIndex(UserusernameDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { return this; } - public Delete0RequestBuilder getBuilderAfterTimeout(UserusernameDeleteNullableRequest instance) { + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { return this; } } public static class DeleteRequestBuilder implements SetterForPathParameters { - private final UserusernameDeleteNullableRequest instance; + private final DeleteNullableRequest instance; public DeleteRequestBuilder() { - this.instance = new UserusernameDeleteNullableRequest(); + this.instance = new DeleteNullableRequest(); } - public UserusernameDeleteNullableRequest getInstance() { + public DeleteNullableRequest getInstance() { return instance; } - public Delete0RequestBuilder getBuilderAfterPathParameters(UserusernameDeleteNullableRequest 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 index fa15d510fad..64902b54ded 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 @@ -67,8 +67,8 @@ public interface GetUserByNameOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getUserByName(UserusernameGetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserusernameGetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Responses.EndpointResponse getUserByName(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -101,7 +101,7 @@ public static class GetNullableRequest { } public interface SetterForServerIndex { - UserusernameGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterServerIndex(UserusernameGetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -111,7 +111,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - UserusernameGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterTimeout(UserusernameGetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -121,7 +121,7 @@ default T timeout(Duration timeout) { } public interface SetterForPathParameters { - UserusernameGetNullableRequest getInstance(); + GetNullableRequest getInstance(); T getBuilderAfterPathParameters(UserusernameGetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -131,13 +131,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final UserusernameGetNullableRequest instance; + private final GetNullableRequest instance; - public Get0RequestBuilder(UserusernameGetNullableRequest instance) { + public Get0RequestBuilder(GetNullableRequest instance) { this.instance = instance; } - public UserusernameGetRequest build() { + public GetRequest build() { var pathParameters = instance.pathParameters; if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -149,30 +149,30 @@ public UserusernameGetRequest build() { ); } - public UserusernameGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterServerIndex(UserusernameGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { return this; } - public Get0RequestBuilder getBuilderAfterTimeout(UserusernameGetNullableRequest instance) { + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { return this; } } public static class GetRequestBuilder implements SetterForPathParameters { - private final UserusernameGetNullableRequest instance; + private final GetNullableRequest instance; public GetRequestBuilder() { - this.instance = new UserusernameGetNullableRequest(); + this.instance = new GetNullableRequest(); } - public UserusernameGetNullableRequest getInstance() { + public GetNullableRequest getInstance() { return instance; } - public Get0RequestBuilder getBuilderAfterPathParameters(UserusernameGetNullableRequest 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 index 251a594a4f7..e7d937bb994 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.userusername.put.RequestBody; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; import org.openapijsonschematools.client.paths.userusername.put.PathParameters; import org.openapijsonschematools.client.paths.userusername.put.Parameters; import org.openapijsonschematools.client.paths.userusername.put.Responses; @@ -36,7 +36,7 @@ public static Void put( ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { Map> headers = apiConfiguration.getDefaultHeaders(); - SerializedRequestBody serializedRequestBody = new RequestBody.RequestBody1().serialize( + SerializedRequestBody serializedRequestBody = new UserusernamePutRequestBody.UserusernamePutRequestBody1().serialize( request.requestBody ); var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); @@ -76,8 +76,8 @@ public interface UpdateUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Void updateUser(UserusernamePutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return UserusernamePutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default Void updateUser(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -88,13 +88,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public RequestBody.SealedRequestBody requestBody; + public UserusernamePutRequestBody.SealedRequestBody requestBody; public PathParameters.PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( - RequestBody.SealedRequestBody requestBody, + UserusernamePutRequestBody.SealedRequestBody requestBody, PathParameters.PathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout @@ -107,14 +107,14 @@ public PutRequest( } public static class PutNullableRequest { - public RequestBody.@Nullable SealedRequestBody requestBody; + public UserusernamePutRequestBody.@Nullable SealedRequestBody requestBody; public PathParameters.@Nullable PathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { - UserusernamePutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterServerIndex(UserusernamePutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); @@ -124,7 +124,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { } public interface SetterForTimeout { - UserusernamePutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterTimeout(UserusernamePutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); @@ -134,9 +134,9 @@ default T timeout(Duration timeout) { } public interface SetterForRequestBody { - UserusernamePutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterRequestBody(UserusernamePutNullableRequest instance); - default T requestBody(RequestBody.SealedRequestBody requestBody) { + default T requestBody(UserusernamePutRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; return getBuilderAfterRequestBody(instance); @@ -144,7 +144,7 @@ default T requestBody(RequestBody.SealedRequestBody requestBody) { } public interface SetterForPathParameters { - UserusernamePutNullableRequest getInstance(); + PutNullableRequest getInstance(); T getBuilderAfterPathParameters(UserusernamePutNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); @@ -154,13 +154,13 @@ default T pathParameters(PathParameters.PathParametersMap pathParameters) { } public static class Put00RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final UserusernamePutNullableRequest instance; + private final PutNullableRequest instance; - public Put00RequestBuilder(UserusernamePutNullableRequest instance) { + public Put00RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public UserusernamePutRequest build() { + public PutRequest build() { var requestBody = instance.requestBody; if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); @@ -177,64 +177,64 @@ public UserusernamePutRequest build() { ); } - public UserusernamePutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterServerIndex(UserusernamePutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { return this; } - public Put00RequestBuilder getBuilderAfterTimeout(UserusernamePutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { return this; } } public static class Put01RequestBuilder implements SetterForPathParameters { - private final UserusernamePutNullableRequest instance; + private final PutNullableRequest instance; - public Put01RequestBuilder(UserusernamePutNullableRequest instance) { + public Put01RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public UserusernamePutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterPathParameters(UserusernamePutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterPathParameters(PutNullableRequest instance) { return new Put00RequestBuilder(instance); } } public static class Put10RequestBuilder implements SetterForRequestBody { - private final UserusernamePutNullableRequest instance; + private final PutNullableRequest instance; - public Put10RequestBuilder(UserusernamePutNullableRequest instance) { + public Put10RequestBuilder(PutNullableRequest instance) { this.instance = instance; } - public UserusernamePutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put00RequestBuilder getBuilderAfterRequestBody(UserusernamePutNullableRequest instance) { + public Put00RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { return new Put00RequestBuilder(instance); } } public static class PutRequestBuilder implements SetterForRequestBody, SetterForPathParameters { - private final UserusernamePutNullableRequest instance; + private final PutNullableRequest instance; public PutRequestBuilder() { - this.instance = new UserusernamePutNullableRequest(); + this.instance = new PutNullableRequest(); } - public UserusernamePutNullableRequest getInstance() { + public PutNullableRequest getInstance() { return instance; } - public Put01RequestBuilder getBuilderAfterRequestBody(UserusernamePutNullableRequest instance) { + public Put01RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { return new Put01RequestBuilder(instance); } - public Put10RequestBuilder getBuilderAfterPathParameters(UserusernamePutNullableRequest 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/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..f342c7ef9aa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java @@ -0,0 +1,53 @@ +/* + 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; +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/RequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernameRequestBody.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernameRequestBody.java index 5efb70e1d9b..ec78f48963b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/RequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernameRequestBody.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; import java.util.Map; -public class RequestBody { +public class UserusernameRequestBody { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -27,8 +27,8 @@ public Void encoding() { } } - public static class RequestBody1 extends RequestBodySerializer { - public RequestBody1() { + public static class UserusernameRequestBody1 extends RequestBodySerializer { + public UserusernameRequestBody1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 8c6e8703a74..2f546258c10 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -1104,7 +1104,8 @@ public String toRequestBodyFilename(String componentName, String jsonPath) { } if (pathPieces.length == 5) { // #/paths/somePath/verb/requestBody - return toModelName(componentName, null); + String pathClassName = getPathClassNamePrefix(jsonPath); + return pathClassName + "RequestBody"; } return toModuleFilename(componentName, null); } @@ -2581,12 +2582,19 @@ protected List> getOperationBuilders(String jsonPath, CodegenReque return builders; } + private String getPathClassNamePrefix(String jsonPath) { + // #/paths/somePath/get -> SomepathGet + String[] pathPieces = jsonPath.split("/"); + String pathJsonPath = "#/paths/"+pathPieces[2]; + String pathClassName = toPathFilename(ModelUtils.decodeSlashes(pathPieces[2]), pathJsonPath); + return pathClassName + StringUtils.capitalize(pathPieces[3]); + } + @Override public String toOperationFilename(String name, String jsonPath) { - int lastSlash = jsonPath.lastIndexOf("/"); String[] pathPieces = jsonPath.split("/"); - String pathJsonPath = jsonPath.substring(0, lastSlash); - String pathClassName = toPathFilename(ModelUtils.decodeSlashes(pathPieces[pathPieces.length-2]), pathJsonPath); + String pathJsonPath = "#/paths/"+pathPieces[2]; + String pathClassName = toPathFilename(ModelUtils.decodeSlashes(pathPieces[2]), pathJsonPath); String operationFileName = pathClassName + StringUtils.capitalize(name); return operationFileName; } @@ -2598,8 +2606,13 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St return getSchemaPascalCaseName(lastJsonPathFragment, jsonPath, true); case PATH: return camelize(toPathFilename(lastJsonPathFragment, jsonPath)); - case MISC: case REQUEST_BODY: + if (jsonPath.startsWith("#/paths")) { + String prefix = getPathClassNamePrefix(jsonPath); + return prefix + "RequestBody"; + } + return toModelName(lastJsonPathFragment, jsonPath); + case MISC: case HEADER: case SECURITY_SCHEME: return toModelName(lastJsonPathFragment, jsonPath); @@ -2634,13 +2647,13 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St return pathKey.pascalCase + "Server"+ pathPieces[4]; } } else if (jsonPath.startsWith("#/paths") && pathPieces.length >= 5 && pathPieces[4].equals("servers")) { - CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); + String prefix = getPathClassNamePrefix(jsonPath); if (pathPieces.length == 5) { // #/paths/somePath/get/servers - return pathKey.pascalCase + StringUtils.capitalize(pathPieces[3]) + "ServerInfo"; + return prefix + "ServerInfo"; } else { // #/paths/somePath/get/servers/0 - return pathKey.pascalCase + StringUtils.capitalize(pathPieces[3]) + "Server" + pathPieces[5]; + return prefix + "Server" + pathPieces[5]; } } } @@ -3189,12 +3202,12 @@ public String toSecurityFilename(String basename, String jsonPath) { return "SecurityRequirementObject"+pathPieces[pathPieces.length-1]; } else if (pathPieces.length == 5) { // #/paths/somePath/verb/security - CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); - return pathKey.pascalCase + StringUtils.capitalize(pathPieces[3]) + "SecurityInfo"; + String prefix = getPathClassNamePrefix(jsonPath); + return prefix + "SecurityInfo"; } else if (pathPieces.length == 6) { // #/paths/somePath/verb/security/0 - CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); - return pathKey.pascalCase + StringUtils.capitalize(pathPieces[3]) + "SecurityRequirementObject"+pathPieces[pathPieces.length-1]; + String prefix = getPathClassNamePrefix(jsonPath); + return prefix + "SecurityRequirementObject"+pathPieces[pathPieces.length-1]; } return null; } diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs index 031213c1e73..082ffedd34c 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs @@ -206,8 +206,8 @@ public class {{jsonPathPiece.pascalCase}} { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default {{#if nonErrorResponses }}{{#with responses}}{{jsonPathPiece.pascalCase}}.EndpointResponse{{/with}}{{else}}Void{{/if}} {{operationId.camelCase}}({{jsonPathPiece.pascalCase}}Request request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return {{jsonPathPiece.pascalCase}}Provider.{{jsonPathPiece.camelCase}}(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + default {{#if nonErrorResponses }}{{#with responses}}{{jsonPathPiece.pascalCase}}.EndpointResponse{{/with}}{{else}}Void{{/if}} {{operationId.camelCase}}({{method.pascalCase}}Request request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return {{method.pascalCase}}Provider.{{jsonPathPiece.camelCase}}(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } {{/neq}} @@ -311,7 +311,7 @@ public class {{jsonPathPiece.pascalCase}} { {{#each keyToBuilder}} public interface SetterFor{{@key.pascalCase}} { - {{../../jsonPathPiece.pascalCase}}{{#gt ../../builders.size 1}}Nullable{{/gt}}Request getInstance(); + {{../../method.pascalCase}}{{#gt ../../builders.size 1}}Nullable{{/gt}}Request getInstance(); T getBuilderAfter{{@key.pascalCase}}({{../../jsonPathPiece.pascalCase}}{{#gt ../../builders.size 1}}Nullable{{/gt}}Request instance); default T {{@key.camelCase}}({{#with property}}{{#if containerJsonPathPiece}}{{containerJsonPathPiece.pascalCase}}.{{else}}{{#if this.jsonPathPiece}}{{jsonPathPiece.pascalCase}}.{{/if}}{{/if}}{{operationInputClassName.pascalCase}}{{/with}} {{@key.camelCase}}) { var instance = getInstance(); @@ -325,20 +325,20 @@ public class {{jsonPathPiece.pascalCase}} { {{#each builders}} public static class {{className.pascalCase}}{{#if keyToBuilder}} implements {{/if}}{{#each keyToBuilder}}SetterFor{{@key.pascalCase}}<{{builder.className.pascalCase}}>{{#unless @last}}, {{/unless}}{{/each}} { - private final {{../jsonPathPiece.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request instance; + private final {{../method.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request instance; {{#if @last }} public {{className.pascalCase}}() { - this.instance = new {{../jsonPathPiece.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request(); + this.instance = new {{../method.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request(); } {{else}} - public {{className.pascalCase}}({{../jsonPathPiece.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request instance) { + public {{className.pascalCase}}({{../method.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request instance) { this.instance = instance; } {{/if}} {{#if @first}} - public {{../jsonPathPiece.pascalCase}}Request build() { + public {{../method.pascalCase}}Request build() { {{#gt ../builders.size 1}} {{#each builders}} {{#if @last}} @@ -366,13 +366,13 @@ public class {{jsonPathPiece.pascalCase}} { {{/if}} {{#if keyToBuilder}} - public {{../jsonPathPiece.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request getInstance() { + public {{../method.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request getInstance() { return instance; } {{/if}} {{#each keyToBuilder}} - public {{builder.className.pascalCase}} getBuilderAfter{{@key.pascalCase}}({{../jsonPathPiece.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request instance) { + public {{builder.className.pascalCase}} getBuilderAfter{{@key.pascalCase}}({{../method.pascalCase}}{{#gt ../builders.size 1}}Nullable{{/gt}}Request instance) { {{#eq builder ../this}} {{! property in final builder }} return this; From da02ebfd0c0ce16b8a5671c9a7d65894318a3b41 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 10 Apr 2024 13:54:57 -0700 Subject: [PATCH 11/21] Fixes typos in operation template --- .../anotherfakedummy/AnotherfakedummyPatch.md | 4 +- .../patch/AnotherfakedummyRequestBody.md | 17 --- .../CommonparamsubdirDelete.md | 4 +- .../commonparamsubdir/CommonparamsubdirGet.md | 4 +- .../CommonparamsubdirPost.md | 4 +- .../java/docs/paths/fake/FakeDelete.md | 4 +- .../petstore/java/docs/paths/fake/FakeGet.md | 4 +- .../java/docs/paths/fake/FakePatch.md | 4 +- .../petstore/java/docs/paths/fake/FakePost.md | 4 +- .../docs/paths/fake/get/FakeRequestBody.md | 90 ------------ .../docs/paths/fake/patch/FakeRequestBody.md | 17 --- .../docs/paths/fake/post/FakeRequestBody.md | 90 ------------ ...additionalpropertieswitharrayofenumsGet.md | 4 +- ...alpropertieswitharrayofenumsRequestBody.md | 90 ------------ .../FakebodywithfileschemaPut.md | 4 +- .../put/FakebodywithfileschemaRequestBody.md | 90 ------------ .../FakebodywithqueryparamsPut.md | 4 +- .../put/FakebodywithqueryparamsRequestBody.md | 90 ------------ .../FakecasesensitiveparamsPut.md | 4 +- .../FakeclassnametestPatch.md | 4 +- .../patch/FakeclassnametestRequestBody.md | 17 --- .../FakedeletecoffeeidDelete.md | 4 +- .../docs/paths/fakehealth/FakehealthGet.md | 4 +- .../FakeinlineadditionalpropertiesPost.md | 4 +- ...keinlineadditionalpropertiesRequestBody.md | 90 ------------ .../FakeinlinecompositionPost.md | 4 +- .../post/FakeinlinecompositionRequestBody.md | 128 ------------------ .../fakejsonformdata/FakejsonformdataGet.md | 4 +- .../get/FakejsonformdataRequestBody.md | 90 ------------ .../paths/fakejsonpatch/FakejsonpatchPatch.md | 4 +- .../patch/FakejsonpatchRequestBody.md | 90 ------------ .../FakejsonwithcharsetPost.md | 4 +- .../post/FakejsonwithcharsetRequestBody.md | 90 ------------ ...FakemultiplerequestbodycontenttypesPost.md | 4 +- ...tiplerequestbodycontenttypesRequestBody.md | 128 ------------------ .../FakemultipleresponsebodiesGet.md | 4 +- .../FakemultiplesecuritiesGet.md | 4 +- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 4 +- .../Fakeparametercollisions1ababselfabPost.md | 4 +- ...rametercollisions1ababselfabRequestBody.md | 90 ------------ .../FakepemcontenttypeGet.md | 4 +- .../get/FakepemcontenttypeRequestBody.md | 90 ------------ ...akepetiduploadimagewithrequiredfilePost.md | 4 +- ...duploadimagewithrequiredfileRequestBody.md | 90 ------------ .../FakequeryparamwithjsoncontenttypeGet.md | 4 +- .../fakeredirection/FakeredirectionGet.md | 4 +- .../fakerefobjinquery/FakerefobjinqueryGet.md | 4 +- .../FakerefsarraymodelPost.md | 4 +- .../post/FakerefsarraymodelRequestBody.md | 90 ------------ .../FakerefsarrayofenumsPost.md | 4 +- .../post/FakerefsarrayofenumsRequestBody.md | 90 ------------ .../fakerefsboolean/FakerefsbooleanPost.md | 4 +- .../post/FakerefsbooleanRequestBody.md | 90 ------------ ...scomposedoneofnumberwithvalidationsPost.md | 4 +- ...edoneofnumberwithvalidationsRequestBody.md | 90 ------------ .../paths/fakerefsenum/FakerefsenumPost.md | 4 +- .../post/FakerefsenumRequestBody.md | 90 ------------ .../fakerefsmammal/FakerefsmammalPost.md | 4 +- .../post/FakerefsmammalRequestBody.md | 90 ------------ .../fakerefsnumber/FakerefsnumberPost.md | 4 +- .../post/FakerefsnumberRequestBody.md | 90 ------------ .../FakerefsobjectmodelwithrefpropsPost.md | 4 +- ...erefsobjectmodelwithrefpropsRequestBody.md | 90 ------------ .../fakerefsstring/FakerefsstringPost.md | 4 +- .../post/FakerefsstringRequestBody.md | 90 ------------ .../FakeresponsewithoutschemaGet.md | 4 +- .../FaketestqueryparamtersPut.md | 4 +- .../FakeuploaddownloadfilePost.md | 4 +- .../post/FakeuploaddownloadfileRequestBody.md | 90 ------------ .../fakeuploadfile/FakeuploadfilePost.md | 4 +- .../post/FakeuploadfileRequestBody.md | 90 ------------ .../fakeuploadfiles/FakeuploadfilesPost.md | 4 +- .../post/FakeuploadfilesRequestBody.md | 90 ------------ .../FakewildcardresponsesGet.md | 4 +- .../petstore/java/docs/paths/foo/FooGet.md | 4 +- .../petstore/java/docs/paths/pet/PetPost.md | 4 +- .../petstore/java/docs/paths/pet/PetPut.md | 4 +- .../docs/paths/pet/post/PetRequestBody.md | 17 --- .../java/docs/paths/pet/put/PetRequestBody.md | 17 --- .../petfindbystatus/PetfindbystatusGet.md | 4 +- .../paths/petfindbytags/PetfindbytagsGet.md | 4 +- .../docs/paths/petpetid/PetpetidDelete.md | 4 +- .../java/docs/paths/petpetid/PetpetidGet.md | 4 +- .../java/docs/paths/petpetid/PetpetidPost.md | 4 +- .../petpetid/post/PetpetidRequestBody.md | 90 ------------ .../PetpetiduploadimagePost.md | 4 +- .../post/PetpetiduploadimageRequestBody.md | 90 ------------ .../java/docs/paths/solidus/SolidusGet.md | 4 +- .../paths/storeinventory/StoreinventoryGet.md | 4 +- .../docs/paths/storeorder/StoreorderPost.md | 4 +- .../storeorder/post/StoreorderRequestBody.md | 90 ------------ .../StoreorderorderidDelete.md | 4 +- .../storeorderorderid/StoreorderorderidGet.md | 4 +- .../petstore/java/docs/paths/user/UserPost.md | 4 +- .../docs/paths/user/post/UserRequestBody.md | 90 ------------ .../UsercreatewitharrayPost.md | 4 +- .../post/UsercreatewitharrayRequestBody.md | 17 --- .../UsercreatewithlistPost.md | 4 +- .../post/UsercreatewithlistRequestBody.md | 17 --- .../java/docs/paths/userlogin/UserloginGet.md | 4 +- .../docs/paths/userlogout/UserlogoutGet.md | 4 +- .../paths/userusername/UserusernameDelete.md | 4 +- .../paths/userusername/UserusernameGet.md | 4 +- .../paths/userusername/UserusernamePut.md | 4 +- .../put/UserusernameRequestBody.md | 90 ------------ .../AnotherfakedummyPatch.java | 10 +- .../patch/AnotherfakedummyRequestBody.java | 11 -- .../CommonparamsubdirDelete.java | 12 +- .../CommonparamsubdirGet.java | 12 +- .../CommonparamsubdirPost.java | 12 +- .../client/paths/fake/FakeDelete.java | 14 +- .../client/paths/fake/FakeGet.java | 12 +- .../client/paths/fake/FakePatch.java | 10 +- .../client/paths/fake/FakePost.java | 10 +- .../paths/fake/get/FakeRequestBody.java | 53 -------- .../paths/fake/patch/FakeRequestBody.java | 11 -- .../paths/fake/post/FakeRequestBody.java | 53 -------- ...ditionalpropertieswitharrayofenumsGet.java | 8 +- ...propertieswitharrayofenumsRequestBody.java | 53 -------- .../FakebodywithfileschemaPut.java | 10 +- .../FakebodywithfileschemaRequestBody.java | 53 -------- .../FakebodywithqueryparamsPut.java | 12 +- .../FakebodywithqueryparamsRequestBody.java | 53 -------- .../FakecasesensitiveparamsPut.java | 10 +- .../FakeclassnametestPatch.java | 12 +- .../patch/FakeclassnametestRequestBody.java | 11 -- .../FakedeletecoffeeidDelete.java | 10 +- .../paths/fakehealth/FakehealthGet.java | 6 +- .../FakeinlineadditionalpropertiesPost.java | 10 +- ...inlineadditionalpropertiesRequestBody.java | 53 -------- .../FakeinlinecompositionPost.java | 10 +- .../FakeinlinecompositionRequestBody.java | 75 ---------- .../fakejsonformdata/FakejsonformdataGet.java | 8 +- .../get/FakejsonformdataRequestBody.java | 53 -------- .../fakejsonpatch/FakejsonpatchPatch.java | 8 +- .../patch/FakejsonpatchRequestBody.java | 53 -------- .../FakejsonwithcharsetPost.java | 8 +- .../post/FakejsonwithcharsetRequestBody.java | 53 -------- ...kemultiplerequestbodycontenttypesPost.java | 8 +- ...plerequestbodycontenttypesRequestBody.java | 75 ---------- .../FakemultipleresponsebodiesGet.java | 6 +- .../FakemultiplesecuritiesGet.java | 8 +- .../fakeobjinquery/FakeobjinqueryGet.java | 8 +- ...akeparametercollisions1ababselfabPost.java | 18 +-- ...metercollisions1ababselfabRequestBody.java | 53 -------- .../FakepemcontenttypeGet.java | 8 +- .../get/FakepemcontenttypeRequestBody.java | 53 -------- ...epetiduploadimagewithrequiredfilePost.java | 14 +- ...ploadimagewithrequiredfileRequestBody.java | 53 -------- .../FakequeryparamwithjsoncontenttypeGet.java | 10 +- .../fakeredirection/FakeredirectionGet.java | 6 +- .../FakerefobjinqueryGet.java | 8 +- .../FakerefsarraymodelPost.java | 8 +- .../post/FakerefsarraymodelRequestBody.java | 53 -------- .../FakerefsarrayofenumsPost.java | 8 +- .../post/FakerefsarrayofenumsRequestBody.java | 53 -------- .../fakerefsboolean/FakerefsbooleanPost.java | 8 +- .../post/FakerefsbooleanRequestBody.java | 53 -------- ...omposedoneofnumberwithvalidationsPost.java | 8 +- ...oneofnumberwithvalidationsRequestBody.java | 53 -------- .../paths/fakerefsenum/FakerefsenumPost.java | 8 +- .../post/FakerefsenumRequestBody.java | 53 -------- .../fakerefsmammal/FakerefsmammalPost.java | 10 +- .../post/FakerefsmammalRequestBody.java | 53 -------- .../fakerefsnumber/FakerefsnumberPost.java | 8 +- .../post/FakerefsnumberRequestBody.java | 53 -------- .../FakerefsobjectmodelwithrefpropsPost.java | 8 +- ...efsobjectmodelwithrefpropsRequestBody.java | 53 -------- .../fakerefsstring/FakerefsstringPost.java | 8 +- .../post/FakerefsstringRequestBody.java | 53 -------- .../FakeresponsewithoutschemaGet.java | 6 +- .../FaketestqueryparamtersPut.java | 10 +- .../FakeuploaddownloadfilePost.java | 10 +- .../FakeuploaddownloadfileRequestBody.java | 53 -------- .../fakeuploadfile/FakeuploadfilePost.java | 8 +- .../post/FakeuploadfileRequestBody.java | 53 -------- .../fakeuploadfiles/FakeuploadfilesPost.java | 8 +- .../post/FakeuploadfilesRequestBody.java | 53 -------- .../FakewildcardresponsesGet.java | 6 +- .../client/paths/foo/FooGet.java | 6 +- .../client/paths/pet/PetPost.java | 12 +- .../client/paths/pet/PetPut.java | 12 +- .../client/paths/pet/post/PetRequestBody.java | 11 -- .../client/paths/pet/put/PetRequestBody.java | 11 -- .../petfindbystatus/PetfindbystatusGet.java | 12 +- .../paths/petfindbytags/PetfindbytagsGet.java | 12 +- .../client/paths/petpetid/PetpetidDelete.java | 14 +- .../client/paths/petpetid/PetpetidGet.java | 12 +- .../client/paths/petpetid/PetpetidPost.java | 14 +- .../petpetid/post/PetpetidRequestBody.java | 53 -------- .../PetpetiduploadimagePost.java | 14 +- .../post/PetpetiduploadimageRequestBody.java | 53 -------- .../client/paths/solidus/SolidusGet.java | 6 +- .../storeinventory/StoreinventoryGet.java | 8 +- .../paths/storeorder/StoreorderPost.java | 10 +- .../post/StoreorderRequestBody.java | 53 -------- .../StoreorderorderidDelete.java | 10 +- .../StoreorderorderidGet.java | 10 +- .../client/paths/user/UserPost.java | 10 +- .../paths/user/post/UserRequestBody.java | 53 -------- .../UsercreatewitharrayPost.java | 10 +- .../post/UsercreatewitharrayRequestBody.java | 11 -- .../UsercreatewithlistPost.java | 10 +- .../post/UsercreatewithlistRequestBody.java | 11 -- .../client/paths/userlogin/UserloginGet.java | 10 +- .../paths/userlogout/UserlogoutGet.java | 6 +- .../userusername/UserusernameDelete.java | 10 +- .../paths/userusername/UserusernameGet.java | 10 +- .../paths/userusername/UserusernamePut.java | 12 +- .../put/UserusernameRequestBody.java | 53 -------- .../packagename/paths/path/verb/Operation.hbs | 6 +- .../paths/path/verb/_FinalRequestClassDoc.hbs | 4 +- 212 files changed, 464 insertions(+), 5213 deletions(-) delete mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/patch/FakeRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/FakeRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfileRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/PetRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/PetRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/StoreorderRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/user/post/UserRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/UserusernameRequestBody.md delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakeRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakeRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfileRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernameRequestBody.java diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md index 37129dec265..80c10625a60 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -115,8 +115,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/anotherfakedummy/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | -## AnotherfakedummyPatchRequest -public static class AnotherfakedummyPatchRequest
+## PatchRequest +public static class PatchRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.md deleted file mode 100644 index cbe277ec997..00000000000 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# AnotherfakedummyRequestBody - -public class AnotherfakedummyRequestBody 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 | [AnotherfakedummyRequestBody.AnotherfakedummyRequestBody1](#anotherfakedummyrequestbody1)
class that serializes request bodies | - -## AnotherfakedummyRequestBody1 -public static class AnotherfakedummyRequestBody1 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/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index 802ae2f75a7..a1d18273f35 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -113,8 +113,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/commonparamsubdir/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | -## CommonparamsubdirDeleteRequest -public static class CommonparamsubdirDeleteRequest
+## DeleteRequest +public static class DeleteRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index f07c2786d26..9d3f45fa70a 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -113,8 +113,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/commonparamsubdir/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## CommonparamsubdirGetRequest -public static class CommonparamsubdirGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index f81ef30d4ea..4dc15110aea 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -113,8 +113,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/commonparamsubdir/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## CommonparamsubdirPostRequest -public static class CommonparamsubdirPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md index 43a6bce06ef..a9a5f2a1f49 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -146,8 +146,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fake/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | -## FakeDeleteRequest -public static class FakeDeleteRequest
+## DeleteRequest +public static class DeleteRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index d66cfa8c1ed..b881e2e05ad 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -105,8 +105,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fake/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakeGetRequest -public static class FakeGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md index f5f004c0072..67c048599de 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePatch.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -115,8 +115,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fake/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | -## FakePatchRequest -public static class FakePatchRequest
+## PatchRequest +public static class PatchRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fake/FakePost.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md index 3e5649d442b..648649a7c47 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePost.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -115,8 +115,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fake/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakePostRequest -public static class FakePostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeRequestBody.md b/samples/client/petstore/java/docs/paths/fake/get/FakeRequestBody.md deleted file mode 100644 index 2efd04c1445..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeRequestBody - -public class FakeRequestBody - -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 | [FakeRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeRequestBody.FakeRequestBody1](#fakerequestbody1)
class that serializes request bodies | -| sealed interface | [FakeRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeRequestBody.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 | - -## FakeRequestBody1 -public static class FakeRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeRequestBody1()
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/patch/FakeRequestBody.md b/samples/client/petstore/java/docs/paths/fake/patch/FakeRequestBody.md deleted file mode 100644 index f3d7ab059b2..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/patch/FakeRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakeRequestBody - -public class FakeRequestBody 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 | [FakeRequestBody.FakeRequestBody1](#fakerequestbody1)
class that serializes request bodies | - -## FakeRequestBody1 -public static class FakeRequestBody1 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/post/FakeRequestBody.md b/samples/client/petstore/java/docs/paths/fake/post/FakeRequestBody.md deleted file mode 100644 index 9bb57a78621..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/FakeRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeRequestBody - -public class FakeRequestBody - -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 | [FakeRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeRequestBody.FakeRequestBody1](#fakerequestbody1)
class that serializes request bodies | -| sealed interface | [FakeRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeRequestBody.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 | - -## FakeRequestBody1 -public static class FakeRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeRequestBody1()
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/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md index d1acaa2c84c..75ca1a7088f 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakeadditionalpropertieswitharrayofenumsGetRequest -public static class FakeadditionalpropertieswitharrayofenumsGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.md deleted file mode 100644 index bcc3e1754fb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeadditionalpropertieswitharrayofenumsRequestBody - -public class FakeadditionalpropertieswitharrayofenumsRequestBody - -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 | [FakeadditionalpropertieswitharrayofenumsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeadditionalpropertieswitharrayofenumsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeadditionalpropertieswitharrayofenumsRequestBody.FakeadditionalpropertieswitharrayofenumsRequestBody1](#fakeadditionalpropertieswitharrayofenumsrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeadditionalpropertieswitharrayofenumsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeadditionalpropertieswitharrayofenumsRequestBody.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 | - -## FakeadditionalpropertieswitharrayofenumsRequestBody1 -public static class FakeadditionalpropertieswitharrayofenumsRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeadditionalpropertieswitharrayofenumsRequestBody1()
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/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md index 96ade871352..e2e3adbd736 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -115,8 +115,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakebodywithfileschema/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | -## FakebodywithfileschemaPutRequest -public static class FakebodywithfileschemaPutRequest
+## PutRequest +public static class PutRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.md deleted file mode 100644 index b2dd7cef252..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakebodywithfileschemaRequestBody - -public class FakebodywithfileschemaRequestBody - -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 | [FakebodywithfileschemaRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakebodywithfileschemaRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakebodywithfileschemaRequestBody.FakebodywithfileschemaRequestBody1](#fakebodywithfileschemarequestbody1)
class that serializes request bodies | -| sealed interface | [FakebodywithfileschemaRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakebodywithfileschemaRequestBody.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 | - -## FakebodywithfileschemaRequestBody1 -public static class FakebodywithfileschemaRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakebodywithfileschemaRequestBody1()
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/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index df1650d701a..ee404c18f5f 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -143,8 +143,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakebodywithqueryparams/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | -## FakebodywithqueryparamsPutRequest -public static class FakebodywithqueryparamsPutRequest
+## PutRequest +public static class PutRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.md deleted file mode 100644 index 91962ab16ec..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakebodywithqueryparamsRequestBody - -public class FakebodywithqueryparamsRequestBody - -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 | [FakebodywithqueryparamsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakebodywithqueryparamsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakebodywithqueryparamsRequestBody.FakebodywithqueryparamsRequestBody1](#fakebodywithqueryparamsrequestbody1)
class that serializes request bodies | -| sealed interface | [FakebodywithqueryparamsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakebodywithqueryparamsRequestBody.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 | - -## FakebodywithqueryparamsRequestBody1 -public static class FakebodywithqueryparamsRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakebodywithqueryparamsRequestBody1()
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/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index bb64c0e4d96..92717f12db8 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -116,8 +116,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakecasesensitiveparams/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | -## FakecasesensitiveparamsPutRequest -public static class FakecasesensitiveparamsPutRequest
+## PutRequest +public static class PutRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md index fe2c46954fb..78345f6cde5 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -127,8 +127,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeclassnametest/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | -## FakeclassnametestPatchRequest -public static class FakeclassnametestPatchRequest
+## PatchRequest +public static class PatchRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.md deleted file mode 100644 index 230fddee212..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakeclassnametestRequestBody - -public class FakeclassnametestRequestBody 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 | [FakeclassnametestRequestBody.FakeclassnametestRequestBody1](#fakeclassnametestrequestbody1)
class that serializes request bodies | - -## FakeclassnametestRequestBody1 -public static class FakeclassnametestRequestBody1 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/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index 5a04fb158c5..0479d3e1573 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -116,8 +116,8 @@ if (response instanceof Responses.EndpointCode200Response castResponse) { | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | -## FakedeletecoffeeidDeleteRequest -public static class FakedeletecoffeeidDeleteRequest
+## DeleteRequest +public static class DeleteRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md index 2451184c39c..ec1067bfbb9 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md @@ -99,8 +99,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakehealth/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakehealthGetRequest -public static class FakehealthGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md index 5844d7dfc91..be27f12bef8 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -113,8 +113,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakeinlineadditionalpropertiesPostRequest -public static class FakeinlineadditionalpropertiesPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.md deleted file mode 100644 index 5bec0201da8..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeinlineadditionalpropertiesRequestBody - -public class FakeinlineadditionalpropertiesRequestBody - -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 | [FakeinlineadditionalpropertiesRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeinlineadditionalpropertiesRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeinlineadditionalpropertiesRequestBody.FakeinlineadditionalpropertiesRequestBody1](#fakeinlineadditionalpropertiesrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeinlineadditionalpropertiesRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeinlineadditionalpropertiesRequestBody.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 | - -## FakeinlineadditionalpropertiesRequestBody1 -public static class FakeinlineadditionalpropertiesRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeinlineadditionalpropertiesRequestBody1()
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/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index c82f491a0f7..23092e1a1b2 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -106,8 +106,8 @@ if (castResponse.body instanceof Code200Response.ApplicationjsonResponseBody des | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeinlinecomposition/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakeinlinecompositionPostRequest -public static class FakeinlinecompositionPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.md deleted file mode 100644 index fec86858e6d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.md +++ /dev/null @@ -1,128 +0,0 @@ -# FakeinlinecompositionRequestBody - -public class FakeinlinecompositionRequestBody - -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 | [FakeinlinecompositionRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeinlinecompositionRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| record | [FakeinlinecompositionRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeinlinecompositionRequestBody.FakeinlinecompositionRequestBody1](#fakeinlinecompositionrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeinlinecompositionRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeinlinecompositionRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | -| record | [FakeinlinecompositionRequestBody.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 | - -## FakeinlinecompositionRequestBody1 -public static class FakeinlinecompositionRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeinlinecompositionRequestBody1()
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/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md index 62214a68b33..847becdd305 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -99,8 +99,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakejsonformdata/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakejsonformdataGetRequest -public static class FakejsonformdataGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataRequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataRequestBody.md deleted file mode 100644 index 048f6956f10..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakejsonformdataRequestBody - -public class FakejsonformdataRequestBody - -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 | [FakejsonformdataRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakejsonformdataRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakejsonformdataRequestBody.FakejsonformdataRequestBody1](#fakejsonformdatarequestbody1)
class that serializes request bodies | -| sealed interface | [FakejsonformdataRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakejsonformdataRequestBody.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 | - -## FakejsonformdataRequestBody1 -public static class FakejsonformdataRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakejsonformdataRequestBody1()
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/fakejsonpatch/FakejsonpatchPatch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md index 26993afbe44..b31ed49cf7a 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -99,8 +99,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakejsonpatch/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | -## FakejsonpatchPatchRequest -public static class FakejsonpatchPatchRequest
+## PatchRequest +public static class PatchRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.md deleted file mode 100644 index 0e403867f40..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakejsonpatchRequestBody - -public class FakejsonpatchRequestBody - -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 | [FakejsonpatchRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakejsonpatchRequestBody.ApplicationjsonpatchjsonMediaType](#applicationjsonpatchjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakejsonpatchRequestBody.FakejsonpatchRequestBody1](#fakejsonpatchrequestbody1)
class that serializes request bodies | -| sealed interface | [FakejsonpatchRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakejsonpatchRequestBody.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 | - -## FakejsonpatchRequestBody1 -public static class FakejsonpatchRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakejsonpatchRequestBody1()
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/fakejsonwithcharset/FakejsonwithcharsetPost.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md index 9632e6b3d0e..0e790fc5924 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -101,8 +101,8 @@ Code200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (Code2 | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakejsonwithcharset/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakejsonwithcharsetPostRequest -public static class FakejsonwithcharsetPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.md deleted file mode 100644 index f9f1f2343dd..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakejsonwithcharsetRequestBody - -public class FakejsonwithcharsetRequestBody - -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 | [FakejsonwithcharsetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakejsonwithcharsetRequestBody.Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakejsonwithcharsetRequestBody.FakejsonwithcharsetRequestBody1](#fakejsonwithcharsetrequestbody1)
class that serializes request bodies | -| sealed interface | [FakejsonwithcharsetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakejsonwithcharsetRequestBody.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 | - -## FakejsonwithcharsetRequestBody1 -public static class FakejsonwithcharsetRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakejsonwithcharsetRequestBody1()
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/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md index d3fab9cf013..4e632de1bbb 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakemultiplerequestbodycontenttypesPostRequest -public static class FakemultiplerequestbodycontenttypesPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.md deleted file mode 100644 index 86d18acd9c4..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.md +++ /dev/null @@ -1,128 +0,0 @@ -# FakemultiplerequestbodycontenttypesRequestBody - -public class FakemultiplerequestbodycontenttypesRequestBody - -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 | [FakemultiplerequestbodycontenttypesRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakemultiplerequestbodycontenttypesRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| record | [FakemultiplerequestbodycontenttypesRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakemultiplerequestbodycontenttypesRequestBody.FakemultiplerequestbodycontenttypesRequestBody1](#fakemultiplerequestbodycontenttypesrequestbody1)
class that serializes request bodies | -| sealed interface | [FakemultiplerequestbodycontenttypesRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakemultiplerequestbodycontenttypesRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | -| record | [FakemultiplerequestbodycontenttypesRequestBody.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 | - -## FakemultiplerequestbodycontenttypesRequestBody1 -public static class FakemultiplerequestbodycontenttypesRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultiplerequestbodycontenttypesRequestBody1()
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/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md index 0600bc21664..5ef5d388039 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md @@ -105,8 +105,8 @@ Code202Response.ApplicationjsonResponseBody deserializedBody = (Code202Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakemultipleresponsebodiesGetRequest -public static class FakemultipleresponsebodiesGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md index af1e01dc829..dad2e827249 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md @@ -116,8 +116,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakemultiplesecurities/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakemultiplesecuritiesGetRequest -public static class FakemultiplesecuritiesGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index 0db31cddf6b..9515eca73c0 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -98,8 +98,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeobjinquery/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakeobjinqueryGetRequest -public static class FakeobjinqueryGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index 8451889d702..e7165c97a7d 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -126,8 +126,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## Fakeparametercollisions1ababselfabPostRequest -public static class Fakeparametercollisions1ababselfabPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.md deleted file mode 100644 index 67cde2196e9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# Fakeparametercollisions1ababselfabRequestBody - -public class Fakeparametercollisions1ababselfabRequestBody - -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 | [Fakeparametercollisions1ababselfabRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Fakeparametercollisions1ababselfabRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [Fakeparametercollisions1ababselfabRequestBody.Fakeparametercollisions1ababselfabRequestBody1](#fakeparametercollisions1ababselfabrequestbody1)
class that serializes request bodies | -| sealed interface | [Fakeparametercollisions1ababselfabRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [Fakeparametercollisions1ababselfabRequestBody.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 | - -## Fakeparametercollisions1ababselfabRequestBody1 -public static class Fakeparametercollisions1ababselfabRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Fakeparametercollisions1ababselfabRequestBody1()
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/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md index 6c189334e96..31b714134cb 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -101,8 +101,8 @@ Code200Response.ApplicationxpemfileResponseBody deserializedBody = (Code200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakepemcontenttype/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakepemcontenttypeGetRequest -public static class FakepemcontenttypeGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.md deleted file mode 100644 index a5da390278d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakepemcontenttypeRequestBody - -public class FakepemcontenttypeRequestBody - -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 | [FakepemcontenttypeRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakepemcontenttypeRequestBody.ApplicationxpemfileMediaType](#applicationxpemfilemediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakepemcontenttypeRequestBody.FakepemcontenttypeRequestBody1](#fakepemcontenttyperequestbody1)
class that serializes request bodies | -| sealed interface | [FakepemcontenttypeRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakepemcontenttypeRequestBody.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 | - -## FakepemcontenttypeRequestBody1 -public static class FakepemcontenttypeRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakepemcontenttypeRequestBody1()
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/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index 033f1a01f34..e3686226f11 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -124,8 +124,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakepetiduploadimagewithrequiredfilePostRequest -public static class FakepetiduploadimagewithrequiredfilePostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.md deleted file mode 100644 index d8284f19ea5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakepetiduploadimagewithrequiredfileRequestBody - -public class FakepetiduploadimagewithrequiredfileRequestBody - -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 | [FakepetiduploadimagewithrequiredfileRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakepetiduploadimagewithrequiredfileRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakepetiduploadimagewithrequiredfileRequestBody.FakepetiduploadimagewithrequiredfileRequestBody1](#fakepetiduploadimagewithrequiredfilerequestbody1)
class that serializes request bodies | -| sealed interface | [FakepetiduploadimagewithrequiredfileRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakepetiduploadimagewithrequiredfileRequestBody.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 | - -## FakepetiduploadimagewithrequiredfileRequestBody1 -public static class FakepetiduploadimagewithrequiredfileRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakepetiduploadimagewithrequiredfileRequestBody1()
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/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index 8bf85dd5a86..468935927bd 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -112,8 +112,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakequeryparamwithjsoncontenttypeGetRequest -public static class FakequeryparamwithjsoncontenttypeGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md index bf12ed134e7..759256a1b4c 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md @@ -101,8 +101,8 @@ if (response instanceof Responses.EndpointCode3XXResponse castResponse) { | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeredirection/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakeredirectionGetRequest -public static class FakeredirectionGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index 9b6313acc83..298af1c3510 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -98,8 +98,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefobjinquery/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakerefobjinqueryGetRequest -public static class FakerefobjinqueryGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md index 6134c4761ce..e541a5a867e 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefsarraymodel/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakerefsarraymodelPostRequest -public static class FakerefsarraymodelPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.md deleted file mode 100644 index 4ce477b86d3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsarraymodelRequestBody - -public class FakerefsarraymodelRequestBody - -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 | [FakerefsarraymodelRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsarraymodelRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsarraymodelRequestBody.FakerefsarraymodelRequestBody1](#fakerefsarraymodelrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsarraymodelRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsarraymodelRequestBody.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 | - -## FakerefsarraymodelRequestBody1 -public static class FakerefsarraymodelRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsarraymodelRequestBody1()
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/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md index b854dc2dcbb..ea02166a47f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefsarrayofenums/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakerefsarrayofenumsPostRequest -public static class FakerefsarrayofenumsPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.md deleted file mode 100644 index 5874f9c7c3a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsarrayofenumsRequestBody - -public class FakerefsarrayofenumsRequestBody - -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 | [FakerefsarrayofenumsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsarrayofenumsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsarrayofenumsRequestBody.FakerefsarrayofenumsRequestBody1](#fakerefsarrayofenumsrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsarrayofenumsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsarrayofenumsRequestBody.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 | - -## FakerefsarrayofenumsRequestBody1 -public static class FakerefsarrayofenumsRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsarrayofenumsRequestBody1()
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/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md index 205939a3c71..64eb4baeed2 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefsboolean/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakerefsbooleanPostRequest -public static class FakerefsbooleanPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.md deleted file mode 100644 index 05703322082..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsbooleanRequestBody - -public class FakerefsbooleanRequestBody - -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 | [FakerefsbooleanRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsbooleanRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsbooleanRequestBody.FakerefsbooleanRequestBody1](#fakerefsbooleanrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsbooleanRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsbooleanRequestBody.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 | - -## FakerefsbooleanRequestBody1 -public static class FakerefsbooleanRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsbooleanRequestBody1()
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/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md index eddc7a3a103..43d270a9613 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakerefscomposedoneofnumberwithvalidationsPostRequest -public static class FakerefscomposedoneofnumberwithvalidationsPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.md deleted file mode 100644 index 8de89548a65..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefscomposedoneofnumberwithvalidationsRequestBody - -public class FakerefscomposedoneofnumberwithvalidationsRequestBody - -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 | [FakerefscomposedoneofnumberwithvalidationsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefscomposedoneofnumberwithvalidationsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefscomposedoneofnumberwithvalidationsRequestBody.FakerefscomposedoneofnumberwithvalidationsRequestBody1](#fakerefscomposedoneofnumberwithvalidationsrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefscomposedoneofnumberwithvalidationsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefscomposedoneofnumberwithvalidationsRequestBody.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 | - -## FakerefscomposedoneofnumberwithvalidationsRequestBody1 -public static class FakerefscomposedoneofnumberwithvalidationsRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefscomposedoneofnumberwithvalidationsRequestBody1()
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/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md index ac17104faa9..3df4c93840d 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefsenum/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakerefsenumPostRequest -public static class FakerefsenumPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumRequestBody.md deleted file mode 100644 index f67e0f96c99..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsenumRequestBody - -public class FakerefsenumRequestBody - -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 | [FakerefsenumRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsenumRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsenumRequestBody.FakerefsenumRequestBody1](#fakerefsenumrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsenumRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsenumRequestBody.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 | - -## FakerefsenumRequestBody1 -public static class FakerefsenumRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsenumRequestBody1()
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/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md index 50bca2f7eee..fe0f1e20a80 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -106,8 +106,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefsmammal/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakerefsmammalPostRequest -public static class FakerefsmammalPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalRequestBody.md deleted file mode 100644 index ef9dc6c29d6..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsmammalRequestBody - -public class FakerefsmammalRequestBody - -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 | [FakerefsmammalRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsmammalRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsmammalRequestBody.FakerefsmammalRequestBody1](#fakerefsmammalrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsmammalRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsmammalRequestBody.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 | - -## FakerefsmammalRequestBody1 -public static class FakerefsmammalRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsmammalRequestBody1()
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/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md index 54134b0e81d..df4b6d46a5e 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefsnumber/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakerefsnumberPostRequest -public static class FakerefsnumberPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberRequestBody.md deleted file mode 100644 index 7dd1341854c..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsnumberRequestBody - -public class FakerefsnumberRequestBody - -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 | [FakerefsnumberRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsnumberRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsnumberRequestBody.FakerefsnumberRequestBody1](#fakerefsnumberrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsnumberRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsnumberRequestBody.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 | - -## FakerefsnumberRequestBody1 -public static class FakerefsnumberRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsnumberRequestBody1()
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/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md index 2886cf90a0f..140949f4c14 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakerefsobjectmodelwithrefpropsPostRequest -public static class FakerefsobjectmodelwithrefpropsPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.md deleted file mode 100644 index e935782a129..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsobjectmodelwithrefpropsRequestBody - -public class FakerefsobjectmodelwithrefpropsRequestBody - -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 | [FakerefsobjectmodelwithrefpropsRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsobjectmodelwithrefpropsRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsobjectmodelwithrefpropsRequestBody.FakerefsobjectmodelwithrefpropsRequestBody1](#fakerefsobjectmodelwithrefpropsrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsobjectmodelwithrefpropsRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsobjectmodelwithrefpropsRequestBody.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 | - -## FakerefsobjectmodelwithrefpropsRequestBody1 -public static class FakerefsobjectmodelwithrefpropsRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsobjectmodelwithrefpropsRequestBody1()
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/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md index 1342a20e824..747467d4ec6 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakerefsstring/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakerefsstringPostRequest -public static class FakerefsstringPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringRequestBody.md deleted file mode 100644 index 570c93c3fc8..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsstringRequestBody - -public class FakerefsstringRequestBody - -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 | [FakerefsstringRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsstringRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsstringRequestBody.FakerefsstringRequestBody1](#fakerefsstringrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsstringRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsstringRequestBody.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 | - -## FakerefsstringRequestBody1 -public static class FakerefsstringRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsstringRequestBody1()
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/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md index 246170986f2..7a9b72a44b6 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md @@ -97,8 +97,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakeresponsewithoutschemaGetRequest -public static class FakeresponsewithoutschemaGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index 42f9291f0ef..cd76c1b2d8a 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -137,8 +137,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/faketestqueryparamters/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | -## FaketestqueryparamtersPutRequest -public static class FaketestqueryparamtersPutRequest
+## PutRequest +public static class PutRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md index d192dc6b9aa..a4b6df99c93 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -111,8 +111,8 @@ Code200Response.ApplicationoctetstreamResponseBody deserializedBody = (Code200Re | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakeuploaddownloadfilePostRequest -public static class FakeuploaddownloadfilePostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.md deleted file mode 100644 index 04b786c09d2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeuploaddownloadfileRequestBody - -public class FakeuploaddownloadfileRequestBody - -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 | [FakeuploaddownloadfileRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeuploaddownloadfileRequestBody.ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeuploaddownloadfileRequestBody.FakeuploaddownloadfileRequestBody1](#fakeuploaddownloadfilerequestbody1)
class that serializes request bodies | -| sealed interface | [FakeuploaddownloadfileRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeuploaddownloadfileRequestBody.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 | - -## FakeuploaddownloadfileRequestBody1 -public static class FakeuploaddownloadfileRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeuploaddownloadfileRequestBody1()
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/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md index 67f38a53275..c46c2a672af 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeuploadfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakeuploadfilePostRequest -public static class FakeuploadfilePostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfileRequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfileRequestBody.md deleted file mode 100644 index 21d1efbe648..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfileRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeuploadfileRequestBody - -public class FakeuploadfileRequestBody - -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 | [FakeuploadfileRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeuploadfileRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeuploadfileRequestBody.FakeuploadfileRequestBody1](#fakeuploadfilerequestbody1)
class that serializes request bodies | -| sealed interface | [FakeuploadfileRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeuploadfileRequestBody.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 | - -## FakeuploadfileRequestBody1 -public static class FakeuploadfileRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeuploadfileRequestBody1()
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/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md index 8b57fad5bd5..36e36eecc80 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -101,8 +101,8 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakeuploadfiles/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## FakeuploadfilesPostRequest -public static class FakeuploadfilesPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.md deleted file mode 100644 index 962e0419f7b..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeuploadfilesRequestBody - -public class FakeuploadfilesRequestBody - -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 | [FakeuploadfilesRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeuploadfilesRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeuploadfilesRequestBody.FakeuploadfilesRequestBody1](#fakeuploadfilesrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeuploadfilesRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeuploadfilesRequestBody.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 | - -## FakeuploadfilesRequestBody1 -public static class FakeuploadfilesRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeuploadfilesRequestBody1()
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/fakewildcardresponses/FakewildcardresponsesGet.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md index fadd064495b..5a7b9a0c8fc 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md @@ -118,8 +118,8 @@ Code3XXResponse.ApplicationjsonResponseBody deserializedBody = (Code3XXResponse. | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/fakewildcardresponses/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FakewildcardresponsesGetRequest -public static class FakewildcardresponsesGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/foo/FooGet.md b/samples/client/petstore/java/docs/paths/foo/FooGet.md index 7ab9eee5ebd..99437f7d5c1 100644 --- a/samples/client/petstore/java/docs/paths/foo/FooGet.md +++ b/samples/client/petstore/java/docs/paths/foo/FooGet.md @@ -98,8 +98,8 @@ CodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (CodedefaultR | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/foo/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## FooGetRequest -public static class FooGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md index f3d5048f255..70ddd11d1cf 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPost.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -162,8 +162,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/pet/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## PetPostRequest -public static class PetPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/pet/PetPut.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md index 30369b56688..9add2df781d 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPut.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -158,8 +158,8 @@ try { | ----------------- | ---------------------- | | Void | put([PutRequest](#putrequest) request) | -## PetPutRequest -public static class PetPutRequest
+## PutRequest +public static class PutRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/pet/post/PetRequestBody.md b/samples/client/petstore/java/docs/paths/pet/post/PetRequestBody.md deleted file mode 100644 index e46a30957ae..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/PetRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# PetRequestBody - -public class PetRequestBody 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 | [PetRequestBody.PetRequestBody1](#petrequestbody1)
class that serializes request bodies | - -## PetRequestBody1 -public static class PetRequestBody1 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/PetRequestBody.md b/samples/client/petstore/java/docs/paths/pet/put/PetRequestBody.md deleted file mode 100644 index e46a30957ae..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/PetRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# PetRequestBody - -public class PetRequestBody 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 | [PetRequestBody.PetRequestBody1](#petrequestbody1)
class that serializes request bodies | - -## PetRequestBody1 -public static class PetRequestBody1 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/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index aba451f4516..02213464eb2 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -133,8 +133,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/petfindbystatus/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## PetfindbystatusGetRequest -public static class PetfindbystatusGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index fc1ba283a37..81b4b49bfa7 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -130,8 +130,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/petfindbytags/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## PetfindbytagsGetRequest -public static class PetfindbytagsGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index b4a731d66ad..232802f3f85 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -128,8 +128,8 @@ try { | ----------------- | ---------------------- | | Void | delete([DeleteRequest](#deleterequest) request) | -## PetpetidDeleteRequest -public static class PetpetidDeleteRequest
+## DeleteRequest +public static class DeleteRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index 73838d074a6..65e8ce0fcc5 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -135,8 +135,8 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/petpetid/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## PetpetidGetRequest -public static class PetpetidGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index 79f5cfdfc9a..d80c87877e0 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -128,8 +128,8 @@ try { | ----------------- | ---------------------- | | Void | post([PostRequest](#postrequest) request) | -## PetpetidPostRequest -public static class PetpetidPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidRequestBody.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidRequestBody.md deleted file mode 100644 index 79c0e3e505c..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# PetpetidRequestBody - -public class PetpetidRequestBody - -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 | [PetpetidRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [PetpetidRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [PetpetidRequestBody.PetpetidRequestBody1](#petpetidrequestbody1)
class that serializes request bodies | -| sealed interface | [PetpetidRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [PetpetidRequestBody.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 | - -## PetpetidRequestBody1 -public static class PetpetidRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidRequestBody1()
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/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index c8e92dd957c..22aee9579dd 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -124,8 +124,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/petpetiduploadimage/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## PetpetiduploadimagePostRequest -public static class PetpetiduploadimagePostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.md deleted file mode 100644 index 5724fed1068..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# PetpetiduploadimageRequestBody - -public class PetpetiduploadimageRequestBody - -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 | [PetpetiduploadimageRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [PetpetiduploadimageRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [PetpetiduploadimageRequestBody.PetpetiduploadimageRequestBody1](#petpetiduploadimagerequestbody1)
class that serializes request bodies | -| sealed interface | [PetpetiduploadimageRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [PetpetiduploadimageRequestBody.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 | - -## PetpetiduploadimageRequestBody1 -public static class PetpetiduploadimageRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetiduploadimageRequestBody1()
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/solidus/SolidusGet.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md index 183de237eb9..0b80673a76c 100644 --- a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md +++ b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md @@ -97,8 +97,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/solidus/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## SolidusGetRequest -public static class SolidusGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md index a84690ceb00..3c2a3bfdfe1 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md @@ -111,8 +111,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/storeinventory/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## StoreinventoryGetRequest -public static class StoreinventoryGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md index c0cb5e3cc97..d14e9ffb759 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md +++ b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md @@ -133,8 +133,8 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/storeorder/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## StoreorderPostRequest -public static class StoreorderPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderRequestBody.md b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderRequestBody.md deleted file mode 100644 index d0cbdba0c70..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# StoreorderRequestBody - -public class StoreorderRequestBody - -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 | [StoreorderRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [StoreorderRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [StoreorderRequestBody.StoreorderRequestBody1](#storeorderrequestbody1)
class that serializes request bodies | -| sealed interface | [StoreorderRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [StoreorderRequestBody.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 | - -## StoreorderRequestBody1 -public static class StoreorderRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderRequestBody1()
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/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index 3b3da38e07f..8b0385677a4 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -115,8 +115,8 @@ try { | ----------------- | ---------------------- | | Void | delete([DeleteRequest](#deleterequest) request) | -## StoreorderorderidDeleteRequest -public static class StoreorderorderidDeleteRequest
+## DeleteRequest +public static class DeleteRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index f72a4c8115d..3cc0c17c48a 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -123,8 +123,8 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/storeorderorderid/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## StoreorderorderidGetRequest -public static class StoreorderorderidGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md index 9a6e2ceae3a..7ff2b47741d 100644 --- a/samples/client/petstore/java/docs/paths/user/UserPost.md +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -129,8 +129,8 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/user/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## UserPostRequest -public static class UserPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/user/post/UserRequestBody.md b/samples/client/petstore/java/docs/paths/user/post/UserRequestBody.md deleted file mode 100644 index 9edcbc34b1d..00000000000 --- a/samples/client/petstore/java/docs/paths/user/post/UserRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# UserRequestBody - -public class UserRequestBody - -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 | [UserRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [UserRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [UserRequestBody.UserRequestBody1](#userrequestbody1)
class that serializes request bodies | -| sealed interface | [UserRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [UserRequestBody.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 | - -## UserRequestBody1 -public static class UserRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserRequestBody1()
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/usercreatewitharray/UsercreatewitharrayPost.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md index 21de5f6f289..7c4acb6e418 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -151,8 +151,8 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/usercreatewitharray/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## UsercreatewitharrayPostRequest -public static class UsercreatewitharrayPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.md deleted file mode 100644 index ddd7af54370..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# UsercreatewitharrayRequestBody - -public class UsercreatewitharrayRequestBody 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 | [UsercreatewitharrayRequestBody.UsercreatewitharrayRequestBody1](#usercreatewitharrayrequestbody1)
class that serializes request bodies | - -## UsercreatewitharrayRequestBody1 -public static class UsercreatewitharrayRequestBody1 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/usercreatewithlist/UsercreatewithlistPost.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md index 0986b26897d..f0d19578ed8 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -151,8 +151,8 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/usercreatewithlist/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | -## UsercreatewithlistPostRequest -public static class UsercreatewithlistPostRequest
+## PostRequest +public static class PostRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.md deleted file mode 100644 index c9986409b36..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# UsercreatewithlistRequestBody - -public class UsercreatewithlistRequestBody 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 | [UsercreatewithlistRequestBody.UsercreatewithlistRequestBody1](#usercreatewithlistrequestbody1)
class that serializes request bodies | - -## UsercreatewithlistRequestBody1 -public static class UsercreatewithlistRequestBody1 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/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index cc9f4ceb4bf..3f2ebb390d9 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -125,8 +125,8 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/userlogin/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## UserloginGetRequest -public static class UserloginGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md index 13ac605ef88..79e377d49ab 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md +++ b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md @@ -97,8 +97,8 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/userlogout/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## UserlogoutGetRequest -public static class UserlogoutGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index 3909e35d93e..0cfe590d673 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -116,8 +116,8 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/userusername/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | -## UserusernameDeleteRequest -public static class UserusernameDeleteRequest
+## DeleteRequest +public static class DeleteRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index fb1fc5c324d..7a9eb3a773d 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -123,8 +123,8 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese | ----------------- | ---------------------- | | [Responses.EndpointResponse](../../paths/userusername/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | -## UserusernameGetRequest -public static class UserusernameGetRequest
+## GetRequest +public static class GetRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index 3abaf474b15..f27f4af7e1b 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -146,8 +146,8 @@ try { | ----------------- | ---------------------- | | Void | put([PutRequest](#putrequest) request) | -## UserusernamePutRequest -public static class UserusernamePutRequest
+## PutRequest +public static class PutRequest
a class that stores the final request inputs diff --git a/samples/client/petstore/java/docs/paths/userusername/put/UserusernameRequestBody.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernameRequestBody.md deleted file mode 100644 index 786324a5249..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/UserusernameRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# UserusernameRequestBody - -public class UserusernameRequestBody - -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 | [UserusernameRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [UserusernameRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [UserusernameRequestBody.UserusernameRequestBody1](#userusernamerequestbody1)
class that serializes request bodies | -| sealed interface | [UserusernameRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [UserusernameRequestBody.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 | - -## UserusernameRequestBody1 -public static class UserusernameRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernameRequestBody1()
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/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 39a119cd7fc..6fac33a0689 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse model123TestSpecialTags(PatchRequest request) } } - public static class Patch extends ApiClient implements AnotherfakedummyPatchOperation { + public static class Patch extends ApiClient implements PatchOperation { public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PatchNullableRequest { public interface SetterForServerIndex { PatchNullableRequest getInstance(); - T getBuilderAfterServerIndex(AnotherfakedummyPatchNullableRequest instance); + T getBuilderAfterServerIndex(PatchNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PatchNullableRequest getInstance(); - T getBuilderAfterTimeout(AnotherfakedummyPatchNullableRequest instance); + T getBuilderAfterTimeout(PatchNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PatchNullableRequest getInstance(); - T getBuilderAfterRequestBody(AnotherfakedummyPatchNullableRequest instance); + T getBuilderAfterRequestBody(PatchNullableRequest instance); default T requestBody(AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PatchRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new AnotherfakedummyPatchRequest( + return new PatchRequest( requestBody, instance.serverIndex, instance.timeout diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.java deleted file mode 100644 index c0a86b3eb69..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyRequestBody.java +++ /dev/null @@ -1,11 +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; - -public class AnotherfakedummyRequestBody extends Client { - public static class AnotherfakedummyRequestBody1 extends Client1 {} -} 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 2b559586226..628956b236a 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 @@ -79,7 +79,7 @@ default Responses.EndpointResponse deleteCommonParam(DeleteRequest request) thro } } - public static class Delete extends ApiClient implements CommonparamsubdirDeleteOperation { + public static class Delete extends ApiClient implements DeleteOperation { public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -113,7 +113,7 @@ public static class DeleteNullableRequest { public interface SetterForHeaderParameters { DeleteNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(CommonparamsubdirDeleteNullableRequest instance); + T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -123,7 +123,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters public interface SetterForServerIndex { DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(CommonparamsubdirDeleteNullableRequest instance); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -133,7 +133,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(CommonparamsubdirDeleteNullableRequest instance); + T getBuilderAfterTimeout(DeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -143,7 +143,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(CommonparamsubdirDeleteNullableRequest instance); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -163,7 +163,7 @@ public DeleteRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new CommonparamsubdirDeleteRequest( + return new DeleteRequest( pathParameters, instance.headerParameters, instance.serverIndex, 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 019f080b768..90204fdba08 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse getCommonParam(GetRequest request) throws IOE } } - public static class Get extends ApiClient implements CommonparamsubdirGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -114,7 +114,7 @@ public static class GetNullableRequest { public interface SetterForQueryParameters { GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(CommonparamsubdirGetNullableRequest instance); + T getBuilderAfterQueryParameters(GetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -124,7 +124,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { public interface SetterForServerIndex { GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(CommonparamsubdirGetNullableRequest instance); + T getBuilderAfterServerIndex(GetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -134,7 +134,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetNullableRequest getInstance(); - T getBuilderAfterTimeout(CommonparamsubdirGetNullableRequest instance); + T getBuilderAfterTimeout(GetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -144,7 +144,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(CommonparamsubdirGetNullableRequest instance); + T getBuilderAfterPathParameters(GetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -164,7 +164,7 @@ public GetRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new CommonparamsubdirGetRequest( + return new GetRequest( pathParameters, instance.queryParameters, instance.serverIndex, 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 39858a477b7..8664a895055 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 @@ -79,7 +79,7 @@ default Responses.EndpointResponse postCommonParam(PostRequest request) throws I } } - public static class Post extends ApiClient implements CommonparamsubdirPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -113,7 +113,7 @@ public static class PostNullableRequest { public interface SetterForHeaderParameters { PostNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(CommonparamsubdirPostNullableRequest instance); + T getBuilderAfterHeaderParameters(PostNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -123,7 +123,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(CommonparamsubdirPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -133,7 +133,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(CommonparamsubdirPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -143,7 +143,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(CommonparamsubdirPostNullableRequest instance); + T getBuilderAfterPathParameters(PostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -163,7 +163,7 @@ public PostRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new CommonparamsubdirPostRequest( + return new PostRequest( pathParameters, instance.headerParameters, instance.serverIndex, 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 da15fccb392..19cfc7bffe7 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 @@ -91,7 +91,7 @@ default Responses.EndpointResponse groupParameters(DeleteRequest request) throws } } - public static class Delete extends ApiClient implements FakeDeleteOperation { + public static class Delete extends ApiClient implements DeleteOperation { public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -129,7 +129,7 @@ public static class DeleteNullableRequest { public interface SetterForServerIndex { DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakeDeleteNullableRequest instance); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -139,7 +139,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { DeleteNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(FakeDeleteNullableRequest instance); + T getBuilderAfterSecurityIndex(DeleteNullableRequest instance); default T securityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -149,7 +149,7 @@ default T securityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { public interface SetterForTimeout { DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(FakeDeleteNullableRequest instance); + T getBuilderAfterTimeout(DeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -159,7 +159,7 @@ default T timeout(Duration timeout) { public interface SetterForHeaderParameters { DeleteNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(FakeDeleteNullableRequest instance); + T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -169,7 +169,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters public interface SetterForQueryParameters { DeleteNullableRequest getInstance(); - T getBuilderAfterQueryParameters(FakeDeleteNullableRequest instance); + T getBuilderAfterQueryParameters(DeleteNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -193,7 +193,7 @@ public DeleteRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakeDeleteRequest( + return new DeleteRequest( headerParameters, queryParameters, instance.serverIndex, 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 9dbd5331a61..22f5c494bca 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 @@ -96,7 +96,7 @@ default Responses.EndpointResponse enumParameters(GetRequest request) throws IOE } } - public static class Get extends ApiClient implements FakeGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -112,7 +112,7 @@ public static class GetRequest { public interface SetterForRequestBody { GetRequest getInstance(); - T getBuilderAfterRequestBody(FakeGetRequest instance); + T getBuilderAfterRequestBody(GetRequest instance); default T requestBody(FakeGetRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -122,7 +122,7 @@ default T requestBody(FakeGetRequestBody.SealedRequestBody requestBody) { public interface SetterForHeaderParameters { GetRequest getInstance(); - T getBuilderAfterHeaderParameters(FakeGetRequest instance); + T getBuilderAfterHeaderParameters(GetRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -132,7 +132,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters public interface SetterForQueryParameters { GetRequest getInstance(); - T getBuilderAfterQueryParameters(FakeGetRequest instance); + T getBuilderAfterQueryParameters(GetRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -142,7 +142,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakeGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -152,7 +152,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakeGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 f0c78b805f5..f94ccf45a70 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse clientModel(PatchRequest request) throws IOEx } } - public static class Patch extends ApiClient implements FakePatchOperation { + public static class Patch extends ApiClient implements PatchOperation { public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PatchNullableRequest { public interface SetterForServerIndex { PatchNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakePatchNullableRequest instance); + T getBuilderAfterServerIndex(PatchNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PatchNullableRequest getInstance(); - T getBuilderAfterTimeout(FakePatchNullableRequest instance); + T getBuilderAfterTimeout(PatchNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PatchNullableRequest getInstance(); - T getBuilderAfterRequestBody(FakePatchNullableRequest instance); + T getBuilderAfterRequestBody(PatchNullableRequest instance); default T requestBody(FakePatchRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PatchRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakePatchRequest( + return new PatchRequest( requestBody, instance.serverIndex, instance.timeout 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 3374f7435cf..db7d60d079a 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 @@ -93,7 +93,7 @@ default Responses.EndpointResponse endpointParameters(PostRequest request) throw } } - public static class Post extends ApiClient implements FakePostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -108,7 +108,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakePostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -118,7 +118,7 @@ default T requestBody(FakePostRequestBody.SealedRequestBody requestBody) { public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakePostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -128,7 +128,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { PostRequest getInstance(); - T getBuilderAfterSecurityIndex(FakePostRequest instance); + T getBuilderAfterSecurityIndex(PostRequest instance); default T securityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -138,7 +138,7 @@ default T securityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakePostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeRequestBody.java deleted file mode 100644 index 08aba378e30..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakeRequestBody { - 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 FakeRequestBody1 extends RequestBodySerializer { - public FakeRequestBody1() { - 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/patch/FakeRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakeRequestBody.java deleted file mode 100644 index 0ea9e696733..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakeRequestBody.java +++ /dev/null @@ -1,11 +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; - -public class FakeRequestBody extends Client { - public static class FakeRequestBody1 extends Client1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakeRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakeRequestBody.java deleted file mode 100644 index c4c9108daf5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakeRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakeRequestBody { - 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 FakeRequestBody1 extends RequestBodySerializer { - public FakeRequestBody1() { - 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/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java index 39edc98764c..371efc6065e 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse additionalPropertiesWithArrayOfEnums(GetReque } } - public static class Get extends ApiClient implements FakeadditionalpropertieswitharrayofenumsGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class GetRequest { public interface SetterForRequestBody { GetRequest getInstance(); - T getBuilderAfterRequestBody(FakeadditionalpropertieswitharrayofenumsGetRequest instance); + T getBuilderAfterRequestBody(GetRequest instance); default T requestBody(FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakeadditionalpropertieswitharrayofenumsGetRequestBody.Sea public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakeadditionalpropertieswitharrayofenumsGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakeadditionalpropertieswitharrayofenumsGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.java deleted file mode 100644 index 03669da7520..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakeadditionalpropertieswitharrayofenumsRequestBody { - 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 FakeadditionalpropertieswitharrayofenumsRequestBody1 extends RequestBodySerializer { - public FakeadditionalpropertieswitharrayofenumsRequestBody1() { - 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/fakebodywithfileschema/FakebodywithfileschemaPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java index 7332d38ffee..228853cdda1 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse bodyWithFileSchema(PutRequest request) throws } } - public static class Put extends ApiClient implements FakebodywithfileschemaPutOperation { + public static class Put extends ApiClient implements PutOperation { public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PutNullableRequest { public interface SetterForServerIndex { PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakebodywithfileschemaPutNullableRequest instance); + T getBuilderAfterServerIndex(PutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PutNullableRequest getInstance(); - T getBuilderAfterTimeout(FakebodywithfileschemaPutNullableRequest instance); + T getBuilderAfterTimeout(PutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(FakebodywithfileschemaPutNullableRequest instance); + T getBuilderAfterRequestBody(PutNullableRequest instance); default T requestBody(FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PutRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakebodywithfileschemaPutRequest( + return new PutRequest( requestBody, instance.serverIndex, instance.timeout diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.java deleted file mode 100644 index 1a35c3f9e9a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakebodywithfileschemaRequestBody { - 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 FakebodywithfileschemaRequestBody1 extends RequestBodySerializer { - public FakebodywithfileschemaRequestBody1() { - 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/fakebodywithqueryparams/FakebodywithqueryparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java index d60ce8640e2..47438acbd27 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 @@ -82,7 +82,7 @@ default Responses.EndpointResponse bodyWithQueryParams(PutRequest request) throw } } - public static class Put extends ApiClient implements FakebodywithqueryparamsPutOperation { + public static class Put extends ApiClient implements PutOperation { public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -116,7 +116,7 @@ public static class PutNullableRequest { public interface SetterForServerIndex { PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakebodywithqueryparamsPutNullableRequest instance); + T getBuilderAfterServerIndex(PutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -126,7 +126,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PutNullableRequest getInstance(); - T getBuilderAfterTimeout(FakebodywithqueryparamsPutNullableRequest instance); + T getBuilderAfterTimeout(PutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -136,7 +136,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(FakebodywithqueryparamsPutNullableRequest instance); + T getBuilderAfterRequestBody(PutNullableRequest instance); default T requestBody(FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ default T requestBody(FakebodywithqueryparamsPutRequestBody.SealedRequestBody re public interface SetterForQueryParameters { PutNullableRequest getInstance(); - T getBuilderAfterQueryParameters(FakebodywithqueryparamsPutNullableRequest instance); + T getBuilderAfterQueryParameters(PutNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -170,7 +170,7 @@ public PutRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakebodywithqueryparamsPutRequest( + return new PutRequest( requestBody, queryParameters, instance.serverIndex, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.java deleted file mode 100644 index 46220e061e0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakebodywithqueryparamsRequestBody { - 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 FakebodywithqueryparamsRequestBody1 extends RequestBodySerializer { - public FakebodywithqueryparamsRequestBody1() { - 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/fakecasesensitiveparams/FakecasesensitiveparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java index fd43be226e9..f9f6d846fc0 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 @@ -73,7 +73,7 @@ default Responses.EndpointResponse caseSensitiveParams(PutRequest request) throw } } - public static class Put extends ApiClient implements FakecasesensitiveparamsPutOperation { + public static class Put extends ApiClient implements PutOperation { public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -103,7 +103,7 @@ public static class PutNullableRequest { public interface SetterForServerIndex { PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakecasesensitiveparamsPutNullableRequest instance); + T getBuilderAfterServerIndex(PutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PutNullableRequest getInstance(); - T getBuilderAfterTimeout(FakecasesensitiveparamsPutNullableRequest instance); + T getBuilderAfterTimeout(PutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { PutNullableRequest getInstance(); - T getBuilderAfterQueryParameters(FakecasesensitiveparamsPutNullableRequest instance); + T getBuilderAfterQueryParameters(PutNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -143,7 +143,7 @@ public PutRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakecasesensitiveparamsPutRequest( + return new PutRequest( queryParameters, instance.serverIndex, instance.timeout 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 69ba4ac87e1..12f4487101b 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 @@ -89,7 +89,7 @@ default Responses.EndpointResponse classname(PatchRequest request) throws IOExce } } - public static class Patch extends ApiClient implements FakeclassnametestPatchOperation { + public static class Patch extends ApiClient implements PatchOperation { public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -123,7 +123,7 @@ public static class PatchNullableRequest { public interface SetterForServerIndex { PatchNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakeclassnametestPatchNullableRequest instance); + T getBuilderAfterServerIndex(PatchNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -133,7 +133,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { PatchNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(FakeclassnametestPatchNullableRequest instance); + T getBuilderAfterSecurityIndex(PatchNullableRequest instance); default T securityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -143,7 +143,7 @@ default T securityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securit public interface SetterForTimeout { PatchNullableRequest getInstance(); - T getBuilderAfterTimeout(FakeclassnametestPatchNullableRequest instance); + T getBuilderAfterTimeout(PatchNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -153,7 +153,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PatchNullableRequest getInstance(); - T getBuilderAfterRequestBody(FakeclassnametestPatchNullableRequest instance); + T getBuilderAfterRequestBody(PatchNullableRequest instance); default T requestBody(FakeclassnametestPatchRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -173,7 +173,7 @@ public PatchRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakeclassnametestPatchRequest( + return new PatchRequest( requestBody, instance.serverIndex, instance.securityIndex, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.java deleted file mode 100644 index 27fbc76bf10..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestRequestBody.java +++ /dev/null @@ -1,11 +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; - -public class FakeclassnametestRequestBody extends Client { - public static class FakeclassnametestRequestBody1 extends Client1 {} -} 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 c53b64c02ca..032a418d196 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 @@ -72,7 +72,7 @@ default Responses.EndpointResponse deleteCoffee(DeleteRequest request) throws IO } } - public static class Delete extends ApiClient implements FakedeletecoffeeidDeleteOperation { + public static class Delete extends ApiClient implements DeleteOperation { public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -102,7 +102,7 @@ public static class DeleteNullableRequest { public interface SetterForServerIndex { DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakedeletecoffeeidDeleteNullableRequest instance); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -112,7 +112,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(FakedeletecoffeeidDeleteNullableRequest instance); + T getBuilderAfterTimeout(DeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(FakedeletecoffeeidDeleteNullableRequest instance); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -142,7 +142,7 @@ public DeleteRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakedeletecoffeeidDeleteRequest( + return new DeleteRequest( pathParameters, instance.serverIndex, instance.timeout 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 f7604591ecc..9623e42dcee 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 @@ -67,7 +67,7 @@ default Responses.EndpointResponse fakeHealthGet(GetRequest request) throws IOEx } } - public static class Get extends ApiClient implements FakehealthGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -80,7 +80,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakehealthGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -90,7 +90,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakehealthGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 36130340861..28468b74e80 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse inlineAdditionalProperties(PostRequest reques } } - public static class Post extends ApiClient implements FakeinlineadditionalpropertiesPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PostNullableRequest { public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakeinlineadditionalpropertiesPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(FakeinlineadditionalpropertiesPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(FakeinlineadditionalpropertiesPostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PostRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakeinlineadditionalpropertiesPostRequest( + return new PostRequest( requestBody, instance.serverIndex, instance.timeout diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.java deleted file mode 100644 index 7adbf1f8006..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakeinlineadditionalpropertiesRequestBody { - 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 FakeinlineadditionalpropertiesRequestBody1 extends RequestBodySerializer { - public FakeinlineadditionalpropertiesRequestBody1() { - 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/fakeinlinecomposition/FakeinlinecompositionPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java index 7645276c2d9..22863cb15ff 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 @@ -89,7 +89,7 @@ default Responses.EndpointResponse inlineComposition(PostRequest request) throws } } - public static class Post extends ApiClient implements FakeinlinecompositionPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -104,7 +104,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakeinlinecompositionPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakeinlinecompositionPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -114,7 +114,7 @@ default T requestBody(FakeinlinecompositionPostRequestBody.SealedRequestBody req public interface SetterForQueryParameters { PostRequest getInstance(); - T getBuilderAfterQueryParameters(FakeinlinecompositionPostRequest instance); + T getBuilderAfterQueryParameters(PostRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -124,7 +124,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakeinlinecompositionPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -134,7 +134,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakeinlinecompositionPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.java deleted file mode 100644 index 80c47f51166..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionRequestBody.java +++ /dev/null @@ -1,75 +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; -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 FakeinlinecompositionRequestBody { - 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 FakeinlinecompositionRequestBody1 extends RequestBodySerializer { - public FakeinlinecompositionRequestBody1() { - 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/fakejsonformdata/FakejsonformdataGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java index 5069b2d3c40..2e6b830672c 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse jsonFormData(GetRequest request) throws IOExc } } - public static class Get extends ApiClient implements FakejsonformdataGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class GetRequest { public interface SetterForRequestBody { GetRequest getInstance(); - T getBuilderAfterRequestBody(FakejsonformdataGetRequest instance); + T getBuilderAfterRequestBody(GetRequest instance); default T requestBody(FakejsonformdataGetRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakejsonformdataGetRequestBody.SealedRequestBody requestBo public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakejsonformdataGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakejsonformdataGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataRequestBody.java deleted file mode 100644 index ffeb20b1d3e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakejsonformdataRequestBody { - 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 FakejsonformdataRequestBody1 extends RequestBodySerializer { - public FakejsonformdataRequestBody1() { - 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/fakejsonpatch/FakejsonpatchPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java index 86041681375..9b5b85fa38a 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse jsonPatch(PatchRequest request) throws IOExce } } - public static class Patch extends ApiClient implements FakejsonpatchPatchOperation { + public static class Patch extends ApiClient implements PatchOperation { public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PatchRequest { public interface SetterForRequestBody { PatchRequest getInstance(); - T getBuilderAfterRequestBody(FakejsonpatchPatchRequest instance); + T getBuilderAfterRequestBody(PatchRequest instance); default T requestBody(FakejsonpatchPatchRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakejsonpatchPatchRequestBody.SealedRequestBody requestBod public interface SetterForServerIndex { PatchRequest getInstance(); - T getBuilderAfterServerIndex(FakejsonpatchPatchRequest instance); + T getBuilderAfterServerIndex(PatchRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PatchRequest getInstance(); - T getBuilderAfterTimeout(FakejsonpatchPatchRequest instance); + T getBuilderAfterTimeout(PatchRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.java deleted file mode 100644 index 61f81d07cb9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakejsonpatchRequestBody { - 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 FakejsonpatchRequestBody1 extends RequestBodySerializer { - public FakejsonpatchRequestBody1() { - 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/fakejsonwithcharset/FakejsonwithcharsetPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java index 334445d4d20..aacd7636845 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse jsonWithCharset(PostRequest request) throws I } } - public static class Post extends ApiClient implements FakejsonwithcharsetPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakejsonwithcharsetPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakejsonwithcharsetPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakejsonwithcharsetPostRequestBody.SealedRequestBody reque public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakejsonwithcharsetPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakejsonwithcharsetPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.java deleted file mode 100644 index 8ef0bc0624d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakejsonwithcharsetRequestBody { - 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 FakejsonwithcharsetRequestBody1 extends RequestBodySerializer { - public FakejsonwithcharsetRequestBody1() { - 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/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java index 126a20f274e..aeb067533d4 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse multipleRequestBodyContentTypes(PostRequest r } } - public static class Post extends ApiClient implements FakemultiplerequestbodycontenttypesPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakemultiplerequestbodycontenttypesPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakemultiplerequestbodycontenttypesPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakemultiplerequestbodycontenttypesPostRequestBody.SealedR public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakemultiplerequestbodycontenttypesPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakemultiplerequestbodycontenttypesPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.java deleted file mode 100644 index 83c9fba35b8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesRequestBody.java +++ /dev/null @@ -1,75 +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; -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 FakemultiplerequestbodycontenttypesRequestBody { - 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 FakemultiplerequestbodycontenttypesRequestBody1 extends RequestBodySerializer { - public FakemultiplerequestbodycontenttypesRequestBody1() { - 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/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java index 14f486954a5..81eb4d02de9 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 @@ -67,7 +67,7 @@ default Responses.EndpointResponse multipleResponseBodies(GetRequest request) th } } - public static class Get extends ApiClient implements FakemultipleresponsebodiesGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -80,7 +80,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakemultipleresponsebodiesGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -90,7 +90,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakemultipleresponsebodiesGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 25d1522c3de..a1b6265d597 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse multipleSecurities(GetRequest request) throws } } - public static class Get extends ApiClient implements FakemultiplesecuritiesGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakemultiplesecuritiesGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -104,7 +104,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { GetRequest getInstance(); - T getBuilderAfterSecurityIndex(FakemultiplesecuritiesGetRequest instance); + T getBuilderAfterSecurityIndex(GetRequest instance); default T securityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -114,7 +114,7 @@ default T securityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex secu public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakemultiplesecuritiesGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 2ade575695d..921f4f8177d 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse objectInQuery(GetRequest request) throws IOEx } } - public static class Get extends ApiClient implements FakeobjinqueryGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -90,7 +90,7 @@ public static class GetRequest { public interface SetterForQueryParameters { GetRequest getInstance(); - T getBuilderAfterQueryParameters(FakeobjinqueryGetRequest instance); + T getBuilderAfterQueryParameters(GetRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -100,7 +100,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakeobjinqueryGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -110,7 +110,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakeobjinqueryGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 f45e97a5e1f..763bca01138 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 @@ -108,7 +108,7 @@ default Responses.EndpointResponse parameterCollisions(PostRequest request) thro } } - public static class Post extends ApiClient implements Fakeparametercollisions1ababselfabPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -154,7 +154,7 @@ public static class PostNullableRequest { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(Fakeparametercollisions1ababselfabPostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -164,7 +164,7 @@ default T requestBody(Fakeparametercollisions1ababselfabPostRequestBody.SealedRe public interface SetterForHeaderParameters { PostNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); + T getBuilderAfterHeaderParameters(PostNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -174,7 +174,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters public interface SetterForQueryParameters { PostNullableRequest getInstance(); - T getBuilderAfterQueryParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); + T getBuilderAfterQueryParameters(PostNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -184,7 +184,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { public interface SetterForCookieParameters { PostNullableRequest getInstance(); - T getBuilderAfterCookieParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); + T getBuilderAfterCookieParameters(PostNullableRequest instance); default T cookieParameters(CookieParameters.CookieParametersMap cookieParameters) { var instance = getInstance(); instance.cookieParameters = cookieParameters; @@ -194,7 +194,7 @@ default T cookieParameters(CookieParameters.CookieParametersMap cookieParameters public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(Fakeparametercollisions1ababselfabPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -204,7 +204,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(Fakeparametercollisions1ababselfabPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -214,7 +214,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(Fakeparametercollisions1ababselfabPostNullableRequest instance); + T getBuilderAfterPathParameters(PostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -234,7 +234,7 @@ public PostRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new Fakeparametercollisions1ababselfabPostRequest( + return new PostRequest( pathParameters, instance.requestBody, instance.headerParameters, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.java deleted file mode 100644 index 4fdbb81f1a3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabRequestBody.java +++ /dev/null @@ -1,53 +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; -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 Fakeparametercollisions1ababselfabRequestBody { - 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 Fakeparametercollisions1ababselfabRequestBody1 extends RequestBodySerializer { - public Fakeparametercollisions1ababselfabRequestBody1() { - 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/fakepemcontenttype/FakepemcontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java index 5a61cf485ca..195e13ca9be 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse pemContentType(GetRequest request) throws IOE } } - public static class Get extends ApiClient implements FakepemcontenttypeGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class GetRequest { public interface SetterForRequestBody { GetRequest getInstance(); - T getBuilderAfterRequestBody(FakepemcontenttypeGetRequest instance); + T getBuilderAfterRequestBody(GetRequest instance); default T requestBody(FakepemcontenttypeGetRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakepemcontenttypeGetRequestBody.SealedRequestBody request public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakepemcontenttypeGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakepemcontenttypeGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.java deleted file mode 100644 index 9a283974fc1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakepemcontenttypeRequestBody { - 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 FakepemcontenttypeRequestBody1 extends RequestBodySerializer { - public FakepemcontenttypeRequestBody1() { - 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/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java index 51f54852a66..b227daaa4bf 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 @@ -98,7 +98,7 @@ default Responses.EndpointResponse uploadFileWithRequiredFile(PostRequest reques } } - public static class Post extends ApiClient implements FakepetiduploadimagewithrequiredfilePostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -136,7 +136,7 @@ public static class PostNullableRequest { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(FakepetiduploadimagewithrequiredfilePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ default T requestBody(FakepetiduploadimagewithrequiredfilePostRequestBody.Sealed public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -156,7 +156,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); + T getBuilderAfterSecurityIndex(PostNullableRequest instance); default T securityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -166,7 +166,7 @@ default T securityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.Sec public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -176,7 +176,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(FakepetiduploadimagewithrequiredfilePostNullableRequest instance); + T getBuilderAfterPathParameters(PostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -196,7 +196,7 @@ public PostRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakepetiduploadimagewithrequiredfilePostRequest( + return new PostRequest( pathParameters, instance.requestBody, instance.serverIndex, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.java deleted file mode 100644 index 0ce1e9688c3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfileRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakepetiduploadimagewithrequiredfileRequestBody { - 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 FakepetiduploadimagewithrequiredfileRequestBody1 extends RequestBodySerializer { - public FakepetiduploadimagewithrequiredfileRequestBody1() { - 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/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java index 84c4d471d68..414cd89d670 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 @@ -73,7 +73,7 @@ default Responses.EndpointResponse queryParamWithJsonContentType(GetRequest requ } } - public static class Get extends ApiClient implements FakequeryparamwithjsoncontenttypeGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -103,7 +103,7 @@ public static class GetNullableRequest { public interface SetterForServerIndex { GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakequeryparamwithjsoncontenttypeGetNullableRequest instance); + T getBuilderAfterServerIndex(GetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetNullableRequest getInstance(); - T getBuilderAfterTimeout(FakequeryparamwithjsoncontenttypeGetNullableRequest instance); + T getBuilderAfterTimeout(GetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(FakequeryparamwithjsoncontenttypeGetNullableRequest instance); + T getBuilderAfterQueryParameters(GetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -143,7 +143,7 @@ public GetRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakequeryparamwithjsoncontenttypeGetRequest( + return new GetRequest( queryParameters, instance.serverIndex, instance.timeout 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 7c362f6c577..354dea5bed2 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 @@ -67,7 +67,7 @@ default Responses.EndpointResponse redirection(GetRequest request) throws IOExce } } - public static class Get extends ApiClient implements FakeredirectionGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -80,7 +80,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakeredirectionGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -90,7 +90,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakeredirectionGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 beafcb3d343..5434dd89327 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse refObjectInQuery(GetRequest request) throws I } } - public static class Get extends ApiClient implements FakerefobjinqueryGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -90,7 +90,7 @@ public static class GetRequest { public interface SetterForQueryParameters { GetRequest getInstance(); - T getBuilderAfterQueryParameters(FakerefobjinqueryGetRequest instance); + T getBuilderAfterQueryParameters(GetRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -100,7 +100,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakerefobjinqueryGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -110,7 +110,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakerefobjinqueryGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 35920abfa0e..416917b406e 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse arrayModel(PostRequest request) throws IOExce } } - public static class Post extends ApiClient implements FakerefsarraymodelPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakerefsarraymodelPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakerefsarraymodelPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakerefsarraymodelPostRequestBody.SealedRequestBody reques public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakerefsarraymodelPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakerefsarraymodelPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.java deleted file mode 100644 index c71cf6c877f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakerefsarraymodelRequestBody { - 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 FakerefsarraymodelRequestBody1 extends RequestBodySerializer { - public FakerefsarraymodelRequestBody1() { - 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/fakerefsarrayofenums/FakerefsarrayofenumsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java index 6b6ae9d074e..3958565aedd 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse arrayOfEnums(PostRequest request) throws IOEx } } - public static class Post extends ApiClient implements FakerefsarrayofenumsPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakerefsarrayofenumsPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakerefsarrayofenumsPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakerefsarrayofenumsPostRequestBody.SealedRequestBody requ public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakerefsarrayofenumsPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakerefsarrayofenumsPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.java deleted file mode 100644 index e6691921f94..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakerefsarrayofenumsRequestBody { - 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 FakerefsarrayofenumsRequestBody1 extends RequestBodySerializer { - public FakerefsarrayofenumsRequestBody1() { - 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/fakerefsboolean/FakerefsbooleanPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java index dde9e0c47f6..05f6af36cda 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse modelBoolean(PostRequest request) throws IOEx } } - public static class Post extends ApiClient implements FakerefsbooleanPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakerefsbooleanPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakerefsbooleanPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakerefsbooleanPostRequestBody.SealedRequestBody requestBo public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakerefsbooleanPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakerefsbooleanPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.java deleted file mode 100644 index a84db6c4a1a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakerefsbooleanRequestBody { - 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 FakerefsbooleanRequestBody1 extends RequestBodySerializer { - public FakerefsbooleanRequestBody1() { - 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/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java index d0b0d05fe0b..9788d5e1521 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse composedOneOfDifferentTypes(PostRequest reque } } - public static class Post extends ApiClient implements FakerefscomposedoneofnumberwithvalidationsPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakerefscomposedoneofnumberwithvalidationsPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakerefscomposedoneofnumberwithvalidationsPostRequestBody. public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakerefscomposedoneofnumberwithvalidationsPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakerefscomposedoneofnumberwithvalidationsPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.java deleted file mode 100644 index e77c5fd64e2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakerefscomposedoneofnumberwithvalidationsRequestBody { - 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 FakerefscomposedoneofnumberwithvalidationsRequestBody1 extends RequestBodySerializer { - public FakerefscomposedoneofnumberwithvalidationsRequestBody1() { - 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/fakerefsenum/FakerefsenumPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java index 3676edf4ed6..60b2f91704f 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse stringEnum(PostRequest request) throws IOExce } } - public static class Post extends ApiClient implements FakerefsenumPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakerefsenumPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakerefsenumPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakerefsenumPostRequestBody.SealedRequestBody requestBody) public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakerefsenumPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakerefsenumPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumRequestBody.java deleted file mode 100644 index 43852f92eb6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakerefsenumRequestBody { - 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 FakerefsenumRequestBody1 extends RequestBodySerializer { - public FakerefsenumRequestBody1() { - 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/fakerefsmammal/FakerefsmammalPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java index 90271137fcb..8b0b99361b5 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse mammal(PostRequest request) throws IOExceptio } } - public static class Post extends ApiClient implements FakerefsmammalPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PostNullableRequest { public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakerefsmammalPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(FakerefsmammalPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(FakerefsmammalPostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(FakerefsmammalPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PostRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakerefsmammalPostRequest( + return new PostRequest( requestBody, instance.serverIndex, instance.timeout diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalRequestBody.java deleted file mode 100644 index ba2e424792d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakerefsmammalRequestBody { - 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 FakerefsmammalRequestBody1 extends RequestBodySerializer { - public FakerefsmammalRequestBody1() { - 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/fakerefsnumber/FakerefsnumberPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java index b405de1eff9..3ceb87fee4b 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse numberWithValidations(PostRequest request) th } } - public static class Post extends ApiClient implements FakerefsnumberPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakerefsnumberPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakerefsnumberPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakerefsnumberPostRequestBody.SealedRequestBody requestBod public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakerefsnumberPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakerefsnumberPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberRequestBody.java deleted file mode 100644 index c5df05ba851..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakerefsnumberRequestBody { - 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 FakerefsnumberRequestBody1 extends RequestBodySerializer { - public FakerefsnumberRequestBody1() { - 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/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java index 47af083703c..2002368e4b7 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse objectModelWithRefProps(PostRequest request) } } - public static class Post extends ApiClient implements FakerefsobjectmodelwithrefpropsPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakerefsobjectmodelwithrefpropsPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakerefsobjectmodelwithrefpropsPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakerefsobjectmodelwithrefpropsPostRequestBody.SealedReque public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakerefsobjectmodelwithrefpropsPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakerefsobjectmodelwithrefpropsPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.java deleted file mode 100644 index b4abc73b373..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakerefsobjectmodelwithrefpropsRequestBody { - 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 FakerefsobjectmodelwithrefpropsRequestBody1 extends RequestBodySerializer { - public FakerefsobjectmodelwithrefpropsRequestBody1() { - 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/fakerefsstring/FakerefsstringPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java index 7ab09485352..247f7af301c 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse modelString(PostRequest request) throws IOExc } } - public static class Post extends ApiClient implements FakerefsstringPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakerefsstringPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakerefsstringPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakerefsstringPostRequestBody.SealedRequestBody requestBod public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakerefsstringPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakerefsstringPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringRequestBody.java deleted file mode 100644 index ac98cf7ac0f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakerefsstringRequestBody { - 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 FakerefsstringRequestBody1 extends RequestBodySerializer { - public FakerefsstringRequestBody1() { - 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/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java index fac2a1cccc0..7eb20d8061c 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 @@ -67,7 +67,7 @@ default Responses.EndpointResponse responseWithoutSchema(GetRequest request) thr } } - public static class Get extends ApiClient implements FakeresponsewithoutschemaGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -80,7 +80,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakeresponsewithoutschemaGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -90,7 +90,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakeresponsewithoutschemaGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 5e791a9be5e..b8d981cda57 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 @@ -73,7 +73,7 @@ default Responses.EndpointResponse queryParameterCollectionFormat(PutRequest req } } - public static class Put extends ApiClient implements FaketestqueryparamtersPutOperation { + public static class Put extends ApiClient implements PutOperation { public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -103,7 +103,7 @@ public static class PutNullableRequest { public interface SetterForServerIndex { PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(FaketestqueryparamtersPutNullableRequest instance); + T getBuilderAfterServerIndex(PutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PutNullableRequest getInstance(); - T getBuilderAfterTimeout(FaketestqueryparamtersPutNullableRequest instance); + T getBuilderAfterTimeout(PutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { PutNullableRequest getInstance(); - T getBuilderAfterQueryParameters(FaketestqueryparamtersPutNullableRequest instance); + T getBuilderAfterQueryParameters(PutNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -143,7 +143,7 @@ public PutRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FaketestqueryparamtersPutRequest( + return new PutRequest( queryParameters, instance.serverIndex, instance.timeout 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 cc6f9adb482..c5149d3221e 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse uploadDownloadFile(PostRequest request) throw } } - public static class Post extends ApiClient implements FakeuploaddownloadfilePostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PostNullableRequest { public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(FakeuploaddownloadfilePostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(FakeuploaddownloadfilePostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(FakeuploaddownloadfilePostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PostRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new FakeuploaddownloadfilePostRequest( + return new PostRequest( requestBody, instance.serverIndex, instance.timeout diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.java deleted file mode 100644 index 8c98ea50da9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfileRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakeuploaddownloadfileRequestBody { - 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 FakeuploaddownloadfileRequestBody1 extends RequestBodySerializer { - public FakeuploaddownloadfileRequestBody1() { - 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/fakeuploadfile/FakeuploadfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java index 19248dad53e..08f38ddc0f6 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse uploadFile(PostRequest request) throws IOExce } } - public static class Post extends ApiClient implements FakeuploadfilePostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakeuploadfilePostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakeuploadfilePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakeuploadfilePostRequestBody.SealedRequestBody requestBod public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakeuploadfilePostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakeuploadfilePostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfileRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfileRequestBody.java deleted file mode 100644 index 9a8ff665b48..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfileRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakeuploadfileRequestBody { - 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 FakeuploadfileRequestBody1 extends RequestBodySerializer { - public FakeuploadfileRequestBody1() { - 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/FakeuploadfilesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java index cfff6fdeaa6..e0534c7274e 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse uploadFiles(PostRequest request) throws IOExc } } - public static class Post extends ApiClient implements FakeuploadfilesPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class PostRequest { public interface SetterForRequestBody { PostRequest getInstance(); - T getBuilderAfterRequestBody(FakeuploadfilesPostRequest instance); + T getBuilderAfterRequestBody(PostRequest instance); default T requestBody(FakeuploadfilesPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -104,7 +104,7 @@ default T requestBody(FakeuploadfilesPostRequestBody.SealedRequestBody requestBo public interface SetterForServerIndex { PostRequest getInstance(); - T getBuilderAfterServerIndex(FakeuploadfilesPostRequest instance); + T getBuilderAfterServerIndex(PostRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -114,7 +114,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostRequest getInstance(); - T getBuilderAfterTimeout(FakeuploadfilesPostRequest instance); + T getBuilderAfterTimeout(PostRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.java deleted file mode 100644 index 28a72f5048b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesRequestBody.java +++ /dev/null @@ -1,53 +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; -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 FakeuploadfilesRequestBody { - 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 FakeuploadfilesRequestBody1 extends RequestBodySerializer { - public FakeuploadfilesRequestBody1() { - 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/fakewildcardresponses/FakewildcardresponsesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java index f16fd59e90f..efb480b102e 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 @@ -67,7 +67,7 @@ default Responses.EndpointResponse wildCardResponses(GetRequest request) throws } } - public static class Get extends ApiClient implements FakewildcardresponsesGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -80,7 +80,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FakewildcardresponsesGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -90,7 +90,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FakewildcardresponsesGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 index 067ddc0d589..dfe0fbe7c58 100644 --- 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 @@ -67,7 +67,7 @@ default Responses.EndpointResponse fooGet(GetRequest request) throws IOException } } - public static class Get extends ApiClient implements FooGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -80,7 +80,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(FooGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(FooGetServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -90,7 +90,7 @@ default T serverIndex(FooGetServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(FooGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 d2e89fed752..0e520939899 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 @@ -89,7 +89,7 @@ default Responses.EndpointResponse addPet(PostRequest request) throws IOExceptio } } - public static class Post extends ApiClient implements PetPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -123,7 +123,7 @@ public static class PostNullableRequest { public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PetPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -133,7 +133,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PetPostNullableRequest instance); + T getBuilderAfterSecurityIndex(PostNullableRequest instance); default T securityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -143,7 +143,7 @@ default T securityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PetPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -153,7 +153,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PetPostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(PetPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -173,7 +173,7 @@ public PostRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PetPostRequest( + return new PostRequest( requestBody, instance.serverIndex, instance.securityIndex, 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 7018dca5d53..81f1c2a8413 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 @@ -89,7 +89,7 @@ default Void updatePet(PutRequest request) throws IOException, InterruptedExcept } } - public static class Put extends ApiClient implements PetPutOperation { + public static class Put extends ApiClient implements PutOperation { public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -123,7 +123,7 @@ public static class PutNullableRequest { public interface SetterForServerIndex { PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PetPutNullableRequest instance); + T getBuilderAfterServerIndex(PutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -133,7 +133,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { PutNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PetPutNullableRequest instance); + T getBuilderAfterSecurityIndex(PutNullableRequest instance); default T securityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -143,7 +143,7 @@ default T securityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { public interface SetterForTimeout { PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PetPutNullableRequest instance); + T getBuilderAfterTimeout(PutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -153,7 +153,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(PetPutNullableRequest instance); + T getBuilderAfterRequestBody(PutNullableRequest instance); default T requestBody(PetPutRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -173,7 +173,7 @@ public PutRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PetPutRequest( + return new PutRequest( requestBody, instance.serverIndex, instance.securityIndex, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetRequestBody.java deleted file mode 100644 index e223f9e5443..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetRequestBody.java +++ /dev/null @@ -1,11 +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; - -public class PetRequestBody extends Pet { - public static class PetRequestBody1 extends Pet1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetRequestBody.java deleted file mode 100644 index 68f82ab7fae..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetRequestBody.java +++ /dev/null @@ -1,11 +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; - -public class PetRequestBody extends Pet { - public static class PetRequestBody1 extends Pet1 {} -} 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 c28dabe3320..e0b092651e7 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 @@ -86,7 +86,7 @@ default Responses.EndpointResponse findPetsByStatus(GetRequest request) throws I } } - public static class Get extends ApiClient implements PetfindbystatusGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -120,7 +120,7 @@ public static class GetNullableRequest { public interface SetterForServerIndex { GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(PetfindbystatusGetNullableRequest instance); + T getBuilderAfterServerIndex(GetNullableRequest instance); default T serverIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -130,7 +130,7 @@ default T serverIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { GetNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PetfindbystatusGetNullableRequest instance); + T getBuilderAfterSecurityIndex(GetNullableRequest instance); default T securityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -140,7 +140,7 @@ default T securityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityInd public interface SetterForTimeout { GetNullableRequest getInstance(); - T getBuilderAfterTimeout(PetfindbystatusGetNullableRequest instance); + T getBuilderAfterTimeout(GetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -150,7 +150,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PetfindbystatusGetNullableRequest instance); + T getBuilderAfterQueryParameters(GetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -170,7 +170,7 @@ public GetRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PetfindbystatusGetRequest( + return new GetRequest( queryParameters, instance.serverIndex, instance.securityIndex, 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 5990aa4c759..ff8c9fab572 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 @@ -86,7 +86,7 @@ default Responses.EndpointResponse findPetsByTags(GetRequest request) throws IOE } } - public static class Get extends ApiClient implements PetfindbytagsGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -120,7 +120,7 @@ public static class GetNullableRequest { public interface SetterForServerIndex { GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(PetfindbytagsGetNullableRequest instance); + T getBuilderAfterServerIndex(GetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -130,7 +130,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { GetNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PetfindbytagsGetNullableRequest instance); + T getBuilderAfterSecurityIndex(GetNullableRequest instance); default T securityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -140,7 +140,7 @@ default T securityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex public interface SetterForTimeout { GetNullableRequest getInstance(); - T getBuilderAfterTimeout(PetfindbytagsGetNullableRequest instance); + T getBuilderAfterTimeout(GetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -150,7 +150,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PetfindbytagsGetNullableRequest instance); + T getBuilderAfterQueryParameters(GetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -170,7 +170,7 @@ public GetRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PetfindbytagsGetRequest( + return new GetRequest( queryParameters, instance.serverIndex, instance.securityIndex, 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 6708d3d2dad..1873dc9d56e 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 @@ -92,7 +92,7 @@ default Void deletePet(DeleteRequest request) throws IOException, InterruptedExc } } - public static class Delete extends ApiClient implements PetpetidDeleteOperation { + public static class Delete extends ApiClient implements DeleteOperation { public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -130,7 +130,7 @@ public static class DeleteNullableRequest { public interface SetterForHeaderParameters { DeleteNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(PetpetidDeleteNullableRequest instance); + T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; @@ -140,7 +140,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters public interface SetterForServerIndex { DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(PetpetidDeleteNullableRequest instance); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -150,7 +150,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { DeleteNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PetpetidDeleteNullableRequest instance); + T getBuilderAfterSecurityIndex(DeleteNullableRequest instance); default T securityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -160,7 +160,7 @@ default T securityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) public interface SetterForTimeout { DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(PetpetidDeleteNullableRequest instance); + T getBuilderAfterTimeout(DeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -170,7 +170,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(PetpetidDeleteNullableRequest instance); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -190,7 +190,7 @@ public DeleteRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PetpetidDeleteRequest( + return new DeleteRequest( pathParameters, instance.headerParameters, instance.serverIndex, 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 e38c535b3a8..7bb0917492e 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 @@ -85,7 +85,7 @@ default Responses.EndpointResponse getPetById(GetRequest request) throws IOExcep } } - public static class Get extends ApiClient implements PetpetidGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -119,7 +119,7 @@ public static class GetNullableRequest { public interface SetterForServerIndex { GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(PetpetidGetNullableRequest instance); + T getBuilderAfterServerIndex(GetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -129,7 +129,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { GetNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PetpetidGetNullableRequest instance); + T getBuilderAfterSecurityIndex(GetNullableRequest instance); default T securityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -139,7 +139,7 @@ default T securityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { public interface SetterForTimeout { GetNullableRequest getInstance(); - T getBuilderAfterTimeout(PetpetidGetNullableRequest instance); + T getBuilderAfterTimeout(GetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -149,7 +149,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(PetpetidGetNullableRequest instance); + T getBuilderAfterPathParameters(GetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -169,7 +169,7 @@ public GetRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PetpetidGetRequest( + return new GetRequest( pathParameters, instance.serverIndex, instance.securityIndex, 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 4dbacd6c991..933a1bfa54e 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 @@ -98,7 +98,7 @@ default Void updatePetWithForm(PostRequest request) throws IOException, Interrup } } - public static class Post extends ApiClient implements PetpetidPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -136,7 +136,7 @@ public static class PostNullableRequest { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PetpetidPostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(PetpetidPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ default T requestBody(PetpetidPostRequestBody.SealedRequestBody requestBody) { public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PetpetidPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -156,7 +156,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PetpetidPostNullableRequest instance); + T getBuilderAfterSecurityIndex(PostNullableRequest instance); default T securityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -166,7 +166,7 @@ default T securityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PetpetidPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -176,7 +176,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PetpetidPostNullableRequest instance); + T getBuilderAfterPathParameters(PostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -196,7 +196,7 @@ public PostRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PetpetidPostRequest( + return new PostRequest( pathParameters, instance.requestBody, instance.serverIndex, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidRequestBody.java deleted file mode 100644 index 7ed89d8e201..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidRequestBody.java +++ /dev/null @@ -1,53 +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; -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 PetpetidRequestBody { - 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 PetpetidRequestBody1 extends RequestBodySerializer { - public PetpetidRequestBody1() { - 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/petpetiduploadimage/PetpetiduploadimagePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java index b15c5abe6fc..898517c21d7 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 @@ -98,7 +98,7 @@ default Responses.EndpointResponse uploadImage(PostRequest request) throws IOExc } } - public static class Post extends ApiClient implements PetpetiduploadimagePostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -136,7 +136,7 @@ public static class PostNullableRequest { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PetpetiduploadimagePostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(PetpetiduploadimagePostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ default T requestBody(PetpetiduploadimagePostRequestBody.SealedRequestBody reque public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PetpetiduploadimagePostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -156,7 +156,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PetpetiduploadimagePostNullableRequest instance); + T getBuilderAfterSecurityIndex(PostNullableRequest instance); default T securityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -166,7 +166,7 @@ default T securityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securi public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PetpetiduploadimagePostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -176,7 +176,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PetpetiduploadimagePostNullableRequest instance); + T getBuilderAfterPathParameters(PostNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -196,7 +196,7 @@ public PostRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new PetpetiduploadimagePostRequest( + return new PostRequest( pathParameters, instance.requestBody, instance.serverIndex, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.java deleted file mode 100644 index 6f618cd1ce3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimageRequestBody.java +++ /dev/null @@ -1,53 +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; -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 PetpetiduploadimageRequestBody { - 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 PetpetiduploadimageRequestBody1 extends RequestBodySerializer { - public PetpetiduploadimageRequestBody1() { - 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/solidus/SolidusGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java index 3fe3d662d98..3d5509c8613 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 @@ -67,7 +67,7 @@ default Responses.EndpointResponse slashRoute(GetRequest request) throws IOExcep } } - public static class Get extends ApiClient implements SolidusGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -80,7 +80,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(SolidusGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -90,7 +90,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(SolidusGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 8968d46614c..9376fbc394f 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 @@ -80,7 +80,7 @@ default Responses.EndpointResponse getInventory(GetRequest request) throws IOExc } } - public static class Get extends ApiClient implements StoreinventoryGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -94,7 +94,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(StoreinventoryGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -104,7 +104,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForSecurityIndex { GetRequest getInstance(); - T getBuilderAfterSecurityIndex(StoreinventoryGetRequest instance); + T getBuilderAfterSecurityIndex(GetRequest instance); default T securityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityIndex) { var instance = getInstance(); instance.securityIndex = securityIndex; @@ -114,7 +114,7 @@ default T securityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityInde public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(StoreinventoryGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 7de8d4082d9..0220ab4d481 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse placeOrder(PostRequest request) throws IOExce } } - public static class Post extends ApiClient implements StoreorderPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PostNullableRequest { public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(StoreorderPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(StoreorderPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(StoreorderPostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(StoreorderPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PostRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new StoreorderPostRequest( + return new PostRequest( requestBody, instance.serverIndex, instance.timeout diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderRequestBody.java deleted file mode 100644 index 0e43fbedfe0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderRequestBody.java +++ /dev/null @@ -1,53 +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; -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 StoreorderRequestBody { - 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 StoreorderRequestBody1 extends RequestBodySerializer { - public StoreorderRequestBody1() { - 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/storeorderorderid/StoreorderorderidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java index 6090c11e560..4f6a0f370d6 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 @@ -72,7 +72,7 @@ default Void deleteOrder(DeleteRequest request) throws IOException, InterruptedE } } - public static class Delete extends ApiClient implements StoreorderorderidDeleteOperation { + public static class Delete extends ApiClient implements DeleteOperation { public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -102,7 +102,7 @@ public static class DeleteNullableRequest { public interface SetterForServerIndex { DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(StoreorderorderidDeleteNullableRequest instance); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -112,7 +112,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(StoreorderorderidDeleteNullableRequest instance); + T getBuilderAfterTimeout(DeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(StoreorderorderidDeleteNullableRequest instance); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -142,7 +142,7 @@ public DeleteRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new StoreorderorderidDeleteRequest( + return new DeleteRequest( pathParameters, instance.serverIndex, instance.timeout 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 d7df9332612..2618e19f3a9 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 @@ -72,7 +72,7 @@ default Responses.EndpointResponse getOrderById(GetRequest request) throws IOExc } } - public static class Get extends ApiClient implements StoreorderorderidGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -102,7 +102,7 @@ public static class GetNullableRequest { public interface SetterForServerIndex { GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(StoreorderorderidGetNullableRequest instance); + T getBuilderAfterServerIndex(GetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -112,7 +112,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetNullableRequest getInstance(); - T getBuilderAfterTimeout(StoreorderorderidGetNullableRequest instance); + T getBuilderAfterTimeout(GetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(StoreorderorderidGetNullableRequest instance); + T getBuilderAfterPathParameters(GetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -142,7 +142,7 @@ public GetRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new StoreorderorderidGetRequest( + return new GetRequest( pathParameters, instance.serverIndex, instance.timeout 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 f1bde88dd73..f073b0a6aac 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse createUser(PostRequest request) throws IOExce } } - public static class Post extends ApiClient implements UserPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PostNullableRequest { public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(UserPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(UserPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(UserPostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(UserPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PostRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new UserPostRequest( + return new PostRequest( requestBody, instance.serverIndex, instance.timeout diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserRequestBody.java deleted file mode 100644 index 630cb19d35b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserRequestBody.java +++ /dev/null @@ -1,53 +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; -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 UserRequestBody { - 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 UserRequestBody1 extends RequestBodySerializer { - public UserRequestBody1() { - 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/usercreatewitharray/UsercreatewitharrayPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java index 88500949ac1..8127c78e16b 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse createUsersWithArrayInput(PostRequest request } } - public static class Post extends ApiClient implements UsercreatewitharrayPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PostNullableRequest { public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(UsercreatewitharrayPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(UsercreatewitharrayPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(UsercreatewitharrayPostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PostRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new UsercreatewitharrayPostRequest( + return new PostRequest( requestBody, instance.serverIndex, instance.timeout diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.java deleted file mode 100644 index 29ca1f01132..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayRequestBody.java +++ /dev/null @@ -1,11 +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; - -public class UsercreatewitharrayRequestBody extends UserArray { - public static class UsercreatewitharrayRequestBody1 extends UserArray1 {} -} 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 7979e65de23..f331d91c4af 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 @@ -76,7 +76,7 @@ default Responses.EndpointResponse createUsersWithListInput(PostRequest request) } } - public static class Post extends ApiClient implements UsercreatewithlistPostOperation { + public static class Post extends ApiClient implements PostOperation { public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -106,7 +106,7 @@ public static class PostNullableRequest { public interface SetterForServerIndex { PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(UsercreatewithlistPostNullableRequest instance); + T getBuilderAfterServerIndex(PostNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -116,7 +116,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PostNullableRequest getInstance(); - T getBuilderAfterTimeout(UsercreatewithlistPostNullableRequest instance); + T getBuilderAfterTimeout(PostNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -126,7 +126,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(UsercreatewithlistPostNullableRequest instance); + T getBuilderAfterRequestBody(PostNullableRequest instance); default T requestBody(UsercreatewithlistPostRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -146,7 +146,7 @@ public PostRequest build() { if (requestBody == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new UsercreatewithlistPostRequest( + return new PostRequest( requestBody, instance.serverIndex, instance.timeout diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.java deleted file mode 100644 index a96775bd4ee..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistRequestBody.java +++ /dev/null @@ -1,11 +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; - -public class UsercreatewithlistRequestBody extends RefUserArray { - public static class UsercreatewithlistRequestBody1 extends RefUserArray1 {} -} 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 eb210c9dc4b..35880663213 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 @@ -73,7 +73,7 @@ default Responses.EndpointResponse loginUser(GetRequest request) throws IOExcept } } - public static class Get extends ApiClient implements UserloginGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -103,7 +103,7 @@ public static class GetNullableRequest { public interface SetterForServerIndex { GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(UserloginGetNullableRequest instance); + T getBuilderAfterServerIndex(GetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -113,7 +113,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetNullableRequest getInstance(); - T getBuilderAfterTimeout(UserloginGetNullableRequest instance); + T getBuilderAfterTimeout(GetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(UserloginGetNullableRequest instance); + T getBuilderAfterQueryParameters(GetNullableRequest instance); default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; @@ -143,7 +143,7 @@ public GetRequest build() { if (queryParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new UserloginGetRequest( + return new GetRequest( queryParameters, instance.serverIndex, instance.timeout 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 27953be4a6e..dbd4459c6bc 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 @@ -67,7 +67,7 @@ default Responses.EndpointResponse logoutUser(GetRequest request) throws IOExcep } } - public static class Get extends ApiClient implements UserlogoutGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -80,7 +80,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); - T getBuilderAfterServerIndex(UserlogoutGetRequest instance); + T getBuilderAfterServerIndex(GetRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -90,7 +90,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetRequest getInstance(); - T getBuilderAfterTimeout(UserlogoutGetRequest instance); + T getBuilderAfterTimeout(GetRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; 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 5d9e754bcde..9b1a81f9a79 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 @@ -72,7 +72,7 @@ default Responses.EndpointResponse deleteUser(DeleteRequest request) throws IOEx } } - public static class Delete extends ApiClient implements UserusernameDeleteOperation { + public static class Delete extends ApiClient implements DeleteOperation { public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -102,7 +102,7 @@ public static class DeleteNullableRequest { public interface SetterForServerIndex { DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(UserusernameDeleteNullableRequest instance); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -112,7 +112,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(UserusernameDeleteNullableRequest instance); + T getBuilderAfterTimeout(DeleteNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(UserusernameDeleteNullableRequest instance); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -142,7 +142,7 @@ public DeleteRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new UserusernameDeleteRequest( + return new DeleteRequest( pathParameters, instance.serverIndex, instance.timeout 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 64902b54ded..c15f4ad9a8e 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 @@ -72,7 +72,7 @@ default Responses.EndpointResponse getUserByName(GetRequest request) throws IOEx } } - public static class Get extends ApiClient implements UserusernameGetOperation { + public static class Get extends ApiClient implements GetOperation { public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -102,7 +102,7 @@ public static class GetNullableRequest { public interface SetterForServerIndex { GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(UserusernameGetNullableRequest instance); + T getBuilderAfterServerIndex(GetNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -112,7 +112,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { GetNullableRequest getInstance(); - T getBuilderAfterTimeout(UserusernameGetNullableRequest instance); + T getBuilderAfterTimeout(GetNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(UserusernameGetNullableRequest instance); + T getBuilderAfterPathParameters(GetNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -142,7 +142,7 @@ public GetRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new UserusernameGetRequest( + return new GetRequest( pathParameters, instance.serverIndex, instance.timeout 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 e7d937bb994..dae55f1fa53 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 @@ -81,7 +81,7 @@ default Void updateUser(PutRequest request) throws IOException, InterruptedExcep } } - public static class Put extends ApiClient implements UserusernamePutOperation { + public static class Put extends ApiClient implements PutOperation { public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -115,7 +115,7 @@ public static class PutNullableRequest { public interface SetterForServerIndex { PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(UserusernamePutNullableRequest instance); + T getBuilderAfterServerIndex(PutNullableRequest instance); default T serverIndex(RootServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; @@ -125,7 +125,7 @@ default T serverIndex(RootServerInfo.ServerIndex serverIndex) { public interface SetterForTimeout { PutNullableRequest getInstance(); - T getBuilderAfterTimeout(UserusernamePutNullableRequest instance); + T getBuilderAfterTimeout(PutNullableRequest instance); default T timeout(Duration timeout) { var instance = getInstance(); instance.timeout = timeout; @@ -135,7 +135,7 @@ default T timeout(Duration timeout) { public interface SetterForRequestBody { PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(UserusernamePutNullableRequest instance); + T getBuilderAfterRequestBody(PutNullableRequest instance); default T requestBody(UserusernamePutRequestBody.SealedRequestBody requestBody) { var instance = getInstance(); instance.requestBody = requestBody; @@ -145,7 +145,7 @@ default T requestBody(UserusernamePutRequestBody.SealedRequestBody requestBody) public interface SetterForPathParameters { PutNullableRequest getInstance(); - T getBuilderAfterPathParameters(UserusernamePutNullableRequest instance); + T getBuilderAfterPathParameters(PutNullableRequest instance); default T pathParameters(PathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; @@ -169,7 +169,7 @@ public PutRequest build() { if (pathParameters == null) { throw new RuntimeException("invalid null value for required parameter"); } - return new UserusernamePutRequest( + return new PutRequest( requestBody, pathParameters, instance.serverIndex, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernameRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernameRequestBody.java deleted file mode 100644 index ec78f48963b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernameRequestBody.java +++ /dev/null @@ -1,53 +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; -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 UserusernameRequestBody { - 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 UserusernameRequestBody1 extends RequestBodySerializer { - public UserusernameRequestBody1() { - 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/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs index 082ffedd34c..97e731bbef9 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs @@ -212,7 +212,7 @@ public class {{jsonPathPiece.pascalCase}} { } {{/neq}} - public static class {{method.pascalCase}} extends ApiClient implements {{jsonPathPiece.pascalCase}}Operation { + public static class {{method.pascalCase}} extends ApiClient implements {{method.pascalCase}}Operation { public {{method.pascalCase}}(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { super(apiConfiguration, schemaConfiguration); } @@ -312,7 +312,7 @@ public class {{jsonPathPiece.pascalCase}} { public interface SetterFor{{@key.pascalCase}} { {{../../method.pascalCase}}{{#gt ../../builders.size 1}}Nullable{{/gt}}Request getInstance(); - T getBuilderAfter{{@key.pascalCase}}({{../../jsonPathPiece.pascalCase}}{{#gt ../../builders.size 1}}Nullable{{/gt}}Request instance); + T getBuilderAfter{{@key.pascalCase}}({{../../method.pascalCase}}{{#gt ../../builders.size 1}}Nullable{{/gt}}Request instance); default T {{@key.camelCase}}({{#with property}}{{#if containerJsonPathPiece}}{{containerJsonPathPiece.pascalCase}}.{{else}}{{#if this.jsonPathPiece}}{{jsonPathPiece.pascalCase}}.{{/if}}{{/if}}{{operationInputClassName.pascalCase}}{{/with}} {{@key.camelCase}}) { var instance = getInstance(); instance.{{@key.camelCase}} = {{@key.camelCase}}; @@ -350,7 +350,7 @@ public class {{jsonPathPiece.pascalCase}} { {{/each}} {{/if}} {{/each}} - return new {{../jsonPathPiece.pascalCase}}Request( + return new {{../method.pascalCase}}Request( {{#each (reverse builders)}} {{#or @first @last}} {{#each keyToBuilder}} diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc.hbs index 8815dea554b..ea4c50526a8 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc.hbs @@ -1,5 +1,5 @@ -{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join jsonPathPiece.pascalCase "Request" "")) }} -public static class {{jsonPathPiece.pascalCase}}Request
+{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join method.pascalCase "Request" "")) }} +public static class {{method.pascalCase}}Request
a class that stores the final request inputs From 3a80287839a2a15893b6588cbc7a245bf0ea2432 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 10 Apr 2024 14:21:39 -0700 Subject: [PATCH 12/21] Java responses classes renamed --- .../petstore/java/.openapi-generator/FILES | 268 +++++++++--------- .../anotherfakedummy/AnotherfakedummyPatch.md | 8 +- ...s.md => AnotherfakedummyPatchResponses.md} | 4 +- .../CommonparamsubdirDelete.md | 8 +- .../commonparamsubdir/CommonparamsubdirGet.md | 8 +- .../CommonparamsubdirPost.md | 8 +- .../CommonparamsubdirDeleteResponses.md | 29 ++ .../get/CommonparamsubdirGetResponses.md | 29 ++ .../post/CommonparamsubdirPostResponses.md | 29 ++ .../java/docs/paths/fake/FakeDelete.md | 8 +- .../petstore/java/docs/paths/fake/FakeGet.md | 8 +- .../java/docs/paths/fake/FakePatch.md | 8 +- .../petstore/java/docs/paths/fake/FakePost.md | 8 +- .../delete/FakeDeleteResponses.md} | 4 +- .../Responses.md => get/FakeGetResponses.md} | 4 +- .../java/docs/paths/fake/get/Responses.md | 29 -- .../{Responses.md => FakePatchResponses.md} | 4 +- .../post/FakePostResponses.md} | 4 +- .../java/docs/paths/fake/post/Responses.md | 29 -- ...additionalpropertieswitharrayofenumsGet.md | 8 +- ...propertieswitharrayofenumsGetResponses.md} | 4 +- .../FakebodywithfileschemaPut.md | 8 +- .../put/FakebodywithfileschemaPutResponses.md | 29 ++ .../fakebodywithfileschema/put/Responses.md | 29 -- .../FakebodywithqueryparamsPut.md | 8 +- .../FakebodywithqueryparamsPutResponses.md | 29 ++ .../fakebodywithqueryparams/put/Responses.md | 29 -- .../FakecasesensitiveparamsPut.md | 8 +- .../FakecasesensitiveparamsPutResponses.md | 29 ++ .../fakecasesensitiveparams/put/Responses.md | 29 -- .../FakeclassnametestPatch.md | 8 +- ....md => FakeclassnametestPatchResponses.md} | 4 +- .../FakedeletecoffeeidDelete.md | 10 +- ...d => FakedeletecoffeeidDeleteResponses.md} | 4 +- .../docs/paths/fakehealth/FakehealthGet.md | 8 +- ...Responses.md => FakehealthGetResponses.md} | 4 +- .../FakeinlineadditionalpropertiesPost.md | 8 +- ...inlineadditionalpropertiesPostResponses.md | 29 ++ .../post/Responses.md | 29 -- .../FakeinlinecompositionPost.md | 8 +- ... => FakeinlinecompositionPostResponses.md} | 4 +- .../fakejsonformdata/FakejsonformdataGet.md | 8 +- .../get/FakejsonformdataGetResponses.md | 29 ++ .../paths/fakejsonformdata/get/Responses.md | 29 -- .../paths/fakejsonpatch/FakejsonpatchPatch.md | 8 +- .../patch/FakejsonpatchPatchResponses.md | 29 ++ .../paths/fakejsonpatch/patch/Responses.md | 29 -- .../FakejsonwithcharsetPost.md | 8 +- ...md => FakejsonwithcharsetPostResponses.md} | 4 +- ...FakemultiplerequestbodycontenttypesPost.md | 8 +- ...lerequestbodycontenttypesPostResponses.md} | 4 +- .../FakemultipleresponsebodiesGet.md | 10 +- ...FakemultipleresponsebodiesGetResponses.md} | 4 +- .../FakemultiplesecuritiesGet.md | 8 +- ... => FakemultiplesecuritiesGetResponses.md} | 4 +- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 8 +- .../get/FakeobjinqueryGetResponses.md | 29 ++ .../paths/fakeobjinquery/get/Responses.md | 29 -- .../Fakeparametercollisions1ababselfabPost.md | 8 +- ...etercollisions1ababselfabPostResponses.md} | 4 +- .../FakepemcontenttypeGet.md | 8 +- ...s.md => FakepemcontenttypeGetResponses.md} | 4 +- ...akepetiduploadimagewithrequiredfilePost.md | 8 +- ...loadimagewithrequiredfilePostResponses.md} | 4 +- .../FakequeryparamwithjsoncontenttypeGet.md | 8 +- ...ryparamwithjsoncontenttypeGetResponses.md} | 4 +- .../fakeredirection/FakeredirectionGet.md | 10 +- ...nses.md => FakeredirectionGetResponses.md} | 4 +- .../fakerefobjinquery/FakerefobjinqueryGet.md | 8 +- .../get/FakerefobjinqueryGetResponses.md | 29 ++ .../paths/fakerefobjinquery/get/Responses.md | 29 -- .../FakerefsarraymodelPost.md | 8 +- ....md => FakerefsarraymodelPostResponses.md} | 4 +- .../FakerefsarrayofenumsPost.md | 8 +- ...d => FakerefsarrayofenumsPostResponses.md} | 4 +- .../fakerefsboolean/FakerefsbooleanPost.md | 8 +- ...ses.md => FakerefsbooleanPostResponses.md} | 4 +- ...scomposedoneofnumberwithvalidationsPost.md | 8 +- ...neofnumberwithvalidationsPostResponses.md} | 4 +- .../paths/fakerefsenum/FakerefsenumPost.md | 8 +- ...ponses.md => FakerefsenumPostResponses.md} | 4 +- .../fakerefsmammal/FakerefsmammalPost.md | 8 +- ...nses.md => FakerefsmammalPostResponses.md} | 4 +- .../fakerefsnumber/FakerefsnumberPost.md | 8 +- ...nses.md => FakerefsnumberPostResponses.md} | 4 +- .../FakerefsobjectmodelwithrefpropsPost.md | 8 +- ...fsobjectmodelwithrefpropsPostResponses.md} | 4 +- .../fakerefsstring/FakerefsstringPost.md | 8 +- ...nses.md => FakerefsstringPostResponses.md} | 4 +- .../FakeresponsewithoutschemaGet.md | 8 +- .../FakeresponsewithoutschemaGetResponses.md | 29 ++ .../get/Responses.md | 29 -- .../FaketestqueryparamtersPut.md | 8 +- .../put/FaketestqueryparamtersPutResponses.md | 29 ++ .../faketestqueryparamters/put/Responses.md | 29 -- .../FakeuploaddownloadfilePost.md | 8 +- ...=> FakeuploaddownloadfilePostResponses.md} | 4 +- .../fakeuploadfile/FakeuploadfilePost.md | 8 +- ...nses.md => FakeuploadfilePostResponses.md} | 4 +- .../fakeuploadfiles/FakeuploadfilesPost.md | 8 +- ...ses.md => FakeuploadfilesPostResponses.md} | 4 +- .../FakewildcardresponsesGet.md | 14 +- ...d => FakewildcardresponsesGetResponses.md} | 4 +- .../petstore/java/docs/paths/foo/FooGet.md | 8 +- .../get/{Responses.md => FooGetResponses.md} | 4 +- .../petstore/java/docs/paths/pet/PetPost.md | 8 +- .../petstore/java/docs/paths/pet/PetPut.md | 2 +- .../post/PetPostResponses.md} | 4 +- .../java/docs/paths/pet/post/Responses.md | 29 -- .../put/{Responses.md => PetPutResponses.md} | 4 +- .../petfindbystatus/PetfindbystatusGet.md | 8 +- ...nses.md => PetfindbystatusGetResponses.md} | 4 +- .../paths/petfindbytags/PetfindbytagsGet.md | 8 +- ...ponses.md => PetfindbytagsGetResponses.md} | 4 +- .../docs/paths/petpetid/PetpetidDelete.md | 2 +- .../java/docs/paths/petpetid/PetpetidGet.md | 8 +- .../java/docs/paths/petpetid/PetpetidPost.md | 2 +- .../PetpetidDeleteResponses.md} | 4 +- .../{Responses.md => PetpetidGetResponses.md} | 4 +- .../PetpetidPostResponses.md} | 4 +- .../PetpetiduploadimagePost.md | 8 +- ...md => PetpetiduploadimagePostResponses.md} | 4 +- .../java/docs/paths/solidus/SolidusGet.md | 8 +- .../java/docs/paths/solidus/get/Responses.md | 29 -- .../paths/solidus/get/SolidusGetResponses.md | 29 ++ .../paths/storeinventory/StoreinventoryGet.md | 8 +- ...onses.md => StoreinventoryGetResponses.md} | 4 +- .../docs/paths/storeorder/StoreorderPost.md | 8 +- ...esponses.md => StoreorderPostResponses.md} | 4 +- .../StoreorderorderidDelete.md | 2 +- .../storeorderorderid/StoreorderorderidGet.md | 8 +- .../StoreorderorderidDeleteResponses.md | 10 + ...es.md => StoreorderorderidGetResponses.md} | 4 +- .../petstore/java/docs/paths/user/UserPost.md | 8 +- .../post/UserPostResponses.md} | 4 +- .../UsercreatewitharrayPost.md | 8 +- ...md => UsercreatewitharrayPostResponses.md} | 4 +- .../UsercreatewithlistPost.md | 8 +- ....md => UsercreatewithlistPostResponses.md} | 4 +- .../java/docs/paths/userlogin/UserloginGet.md | 8 +- ...{Responses.md => UserloginGetResponses.md} | 4 +- .../docs/paths/userlogout/UserlogoutGet.md | 8 +- .../get/UserlogoutGetResponses.md} | 4 +- .../paths/userusername/UserusernameDelete.md | 8 +- .../paths/userusername/UserusernameGet.md | 8 +- .../paths/userusername/UserusernamePut.md | 2 +- .../paths/userusername/delete/Responses.md | 29 -- .../delete/UserusernameDeleteResponses.md | 29 ++ ...sponses.md => UserusernameGetResponses.md} | 4 +- .../docs/paths/userusername/put/Responses.md | 10 - .../put/UserusernamePutResponses.md} | 4 +- .../AnotherfakedummyPatch.java | 10 +- ...va => AnotherfakedummyPatchResponses.java} | 6 +- .../CommonparamsubdirDelete.java | 10 +- .../CommonparamsubdirGet.java | 10 +- .../CommonparamsubdirPost.java | 10 +- ... => CommonparamsubdirDeleteResponses.java} | 6 +- ...ava => CommonparamsubdirGetResponses.java} | 6 +- ...va => CommonparamsubdirPostResponses.java} | 6 +- .../client/paths/fake/FakeDelete.java | 10 +- .../client/paths/fake/FakeGet.java | 10 +- .../client/paths/fake/FakePatch.java | 10 +- .../client/paths/fake/FakePost.java | 10 +- ...esponses.java => FakeDeleteResponses.java} | 6 +- .../{Responses.java => FakeGetResponses.java} | 6 +- ...Responses.java => FakePatchResponses.java} | 6 +- ...{Responses.java => FakePostResponses.java} | 6 +- ...ditionalpropertieswitharrayofenumsGet.java | 10 +- ...opertieswitharrayofenumsGetResponses.java} | 6 +- .../FakebodywithfileschemaPut.java | 10 +- ...> FakebodywithfileschemaPutResponses.java} | 6 +- .../FakebodywithqueryparamsPut.java | 10 +- ... FakebodywithqueryparamsPutResponses.java} | 6 +- .../FakecasesensitiveparamsPut.java | 10 +- ... FakecasesensitiveparamsPutResponses.java} | 6 +- .../FakeclassnametestPatch.java | 10 +- ...a => FakeclassnametestPatchResponses.java} | 6 +- .../FakedeletecoffeeidDelete.java | 10 +- ...=> FakedeletecoffeeidDeleteResponses.java} | 6 +- .../paths/fakehealth/FakehealthGet.java | 10 +- ...onses.java => FakehealthGetResponses.java} | 6 +- .../FakeinlineadditionalpropertiesPost.java | 10 +- ...ineadditionalpropertiesPostResponses.java} | 6 +- .../FakeinlinecompositionPost.java | 10 +- ...> FakeinlinecompositionPostResponses.java} | 6 +- .../fakejsonformdata/FakejsonformdataGet.java | 10 +- ...java => FakejsonformdataGetResponses.java} | 6 +- .../fakejsonpatch/FakejsonpatchPatch.java | 10 +- ....java => FakejsonpatchPatchResponses.java} | 6 +- .../FakejsonwithcharsetPost.java | 10 +- ... => FakejsonwithcharsetPostResponses.java} | 6 +- ...kemultiplerequestbodycontenttypesPost.java | 10 +- ...requestbodycontenttypesPostResponses.java} | 6 +- .../FakemultipleresponsebodiesGet.java | 10 +- ...kemultipleresponsebodiesGetResponses.java} | 6 +- .../FakemultiplesecuritiesGet.java | 10 +- ...> FakemultiplesecuritiesGetResponses.java} | 6 +- .../fakeobjinquery/FakeobjinqueryGet.java | 10 +- ...s.java => FakeobjinqueryGetResponses.java} | 6 +- ...akeparametercollisions1ababselfabPost.java | 10 +- ...ercollisions1ababselfabPostResponses.java} | 6 +- .../FakepemcontenttypeGet.java | 10 +- ...va => FakepemcontenttypeGetResponses.java} | 6 +- ...epetiduploadimagewithrequiredfilePost.java | 10 +- ...adimagewithrequiredfilePostResponses.java} | 6 +- .../FakequeryparamwithjsoncontenttypeGet.java | 10 +- ...paramwithjsoncontenttypeGetResponses.java} | 6 +- .../fakeredirection/FakeredirectionGet.java | 10 +- ....java => FakeredirectionGetResponses.java} | 6 +- .../FakerefobjinqueryGet.java | 10 +- ...ava => FakerefobjinqueryGetResponses.java} | 6 +- .../FakerefsarraymodelPost.java | 10 +- ...a => FakerefsarraymodelPostResponses.java} | 6 +- .../FakerefsarrayofenumsPost.java | 10 +- ...=> FakerefsarrayofenumsPostResponses.java} | 6 +- .../fakerefsboolean/FakerefsbooleanPost.java | 10 +- ...java => FakerefsbooleanPostResponses.java} | 6 +- ...omposedoneofnumberwithvalidationsPost.java | 10 +- ...ofnumberwithvalidationsPostResponses.java} | 6 +- .../paths/fakerefsenum/FakerefsenumPost.java | 10 +- ...es.java => FakerefsenumPostResponses.java} | 6 +- .../fakerefsmammal/FakerefsmammalPost.java | 10 +- ....java => FakerefsmammalPostResponses.java} | 6 +- .../fakerefsnumber/FakerefsnumberPost.java | 10 +- ....java => FakerefsnumberPostResponses.java} | 6 +- .../FakerefsobjectmodelwithrefpropsPost.java | 10 +- ...objectmodelwithrefpropsPostResponses.java} | 6 +- .../fakerefsstring/FakerefsstringPost.java | 10 +- ....java => FakerefsstringPostResponses.java} | 6 +- .../FakeresponsewithoutschemaGet.java | 10 +- ...akeresponsewithoutschemaGetResponses.java} | 6 +- .../FaketestqueryparamtersPut.java | 10 +- ...> FaketestqueryparamtersPutResponses.java} | 6 +- .../FakeuploaddownloadfilePost.java | 10 +- ... FakeuploaddownloadfilePostResponses.java} | 6 +- .../fakeuploadfile/FakeuploadfilePost.java | 10 +- ....java => FakeuploadfilePostResponses.java} | 6 +- .../fakeuploadfiles/FakeuploadfilesPost.java | 10 +- ...java => FakeuploadfilesPostResponses.java} | 6 +- .../FakewildcardresponsesGet.java | 10 +- ...=> FakewildcardresponsesGetResponses.java} | 6 +- .../client/paths/foo/FooGet.java | 10 +- .../{Responses.java => FooGetResponses.java} | 6 +- .../client/paths/pet/PetPost.java | 10 +- .../client/paths/pet/PetPut.java | 5 +- .../{Responses.java => PetPostResponses.java} | 6 +- .../{Responses.java => PetPutResponses.java} | 6 +- .../petfindbystatus/PetfindbystatusGet.java | 10 +- ....java => PetfindbystatusGetResponses.java} | 6 +- .../paths/petfindbytags/PetfindbytagsGet.java | 10 +- ...es.java => PetfindbytagsGetResponses.java} | 6 +- .../client/paths/petpetid/PetpetidDelete.java | 5 +- .../client/paths/petpetid/PetpetidGet.java | 10 +- .../client/paths/petpetid/PetpetidPost.java | 5 +- ...nses.java => PetpetidDeleteResponses.java} | 6 +- ...sponses.java => PetpetidGetResponses.java} | 6 +- ...ponses.java => PetpetidPostResponses.java} | 6 +- .../PetpetiduploadimagePost.java | 10 +- ... => PetpetiduploadimagePostResponses.java} | 6 +- .../client/paths/solidus/SolidusGet.java | 10 +- ...esponses.java => SolidusGetResponses.java} | 6 +- .../storeinventory/StoreinventoryGet.java | 10 +- ...s.java => StoreinventoryGetResponses.java} | 6 +- .../paths/storeorder/StoreorderPost.java | 10 +- ...nses.java => StoreorderPostResponses.java} | 6 +- .../StoreorderorderidDelete.java | 5 +- .../StoreorderorderidGet.java | 10 +- ... => StoreorderorderidDeleteResponses.java} | 6 +- ...ava => StoreorderorderidGetResponses.java} | 6 +- .../client/paths/user/UserPost.java | 10 +- ...{Responses.java => UserPostResponses.java} | 6 +- .../UsercreatewitharrayPost.java | 10 +- ... => UsercreatewitharrayPostResponses.java} | 6 +- .../UsercreatewithlistPost.java | 10 +- ...a => UsercreatewithlistPostResponses.java} | 6 +- .../client/paths/userlogin/UserloginGet.java | 10 +- ...ponses.java => UserloginGetResponses.java} | 6 +- .../paths/userlogout/UserlogoutGet.java | 10 +- ...onses.java => UserlogoutGetResponses.java} | 6 +- .../userusername/UserusernameDelete.java | 10 +- .../paths/userusername/UserusernameGet.java | 10 +- .../paths/userusername/UserusernamePut.java | 5 +- ....java => UserusernameDeleteResponses.java} | 6 +- ...ses.java => UserusernameGetResponses.java} | 6 +- ...ses.java => UserusernamePutResponses.java} | 6 +- .../codegen/generators/DefaultGenerator.java | 2 +- .../generators/JavaClientGenerator.java | 9 +- .../packagename/paths/path/verb/Operation.hbs | 6 +- 288 files changed, 1475 insertions(+), 1469 deletions(-) rename samples/client/petstore/java/docs/paths/anotherfakedummy/patch/{Responses.md => AnotherfakedummyPatchResponses.md} (93%) create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md rename samples/client/petstore/java/docs/paths/{commonparamsubdir/post/Responses.md => fake/delete/FakeDeleteResponses.md} (94%) rename samples/client/petstore/java/docs/paths/fake/{delete/Responses.md => get/FakeGetResponses.md} (94%) delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/Responses.md rename samples/client/petstore/java/docs/paths/fake/patch/{Responses.md => FakePatchResponses.md} (95%) rename samples/client/petstore/java/docs/paths/{commonparamsubdir/get/Responses.md => fake/post/FakePostResponses.md} (94%) delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/Responses.md rename samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/{Responses.md => FakeadditionalpropertieswitharrayofenumsGetResponses.md} (89%) create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/Responses.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/Responses.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/Responses.md rename samples/client/petstore/java/docs/paths/fakeclassnametest/patch/{Responses.md => FakeclassnametestPatchResponses.md} (92%) rename samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/{Responses.md => FakedeletecoffeeidDeleteResponses.md} (93%) rename samples/client/petstore/java/docs/paths/fakehealth/get/{Responses.md => FakehealthGetResponses.md} (94%) create mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/Responses.md rename samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/{Responses.md => FakeinlinecompositionPostResponses.md} (92%) create mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/Responses.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/Responses.md rename samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/{Responses.md => FakejsonwithcharsetPostResponses.md} (92%) rename samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/{Responses.md => FakemultiplerequestbodycontenttypesPostResponses.md} (90%) rename samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/{Responses.md => FakemultipleresponsebodiesGetResponses.md} (94%) rename samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/{Responses.md => FakemultiplesecuritiesGetResponses.md} (92%) create mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/Responses.md rename samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/{Responses.md => Fakeparametercollisions1ababselfabPostResponses.md} (90%) rename samples/client/petstore/java/docs/paths/fakepemcontenttype/get/{Responses.md => FakepemcontenttypeGetResponses.md} (93%) rename samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/{Responses.md => FakepetiduploadimagewithrequiredfilePostResponses.md} (90%) rename samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/{Responses.md => FakequeryparamwithjsoncontenttypeGetResponses.md} (90%) rename samples/client/petstore/java/docs/paths/fakeredirection/get/{Responses.md => FakeredirectionGetResponses.md} (94%) create mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/Responses.md rename samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/{Responses.md => FakerefsarraymodelPostResponses.md} (92%) rename samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/{Responses.md => FakerefsarrayofenumsPostResponses.md} (92%) rename samples/client/petstore/java/docs/paths/fakerefsboolean/post/{Responses.md => FakerefsbooleanPostResponses.md} (93%) rename samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/{Responses.md => FakerefscomposedoneofnumberwithvalidationsPostResponses.md} (89%) rename samples/client/petstore/java/docs/paths/fakerefsenum/post/{Responses.md => FakerefsenumPostResponses.md} (93%) rename samples/client/petstore/java/docs/paths/fakerefsmammal/post/{Responses.md => FakerefsmammalPostResponses.md} (93%) rename samples/client/petstore/java/docs/paths/fakerefsnumber/post/{Responses.md => FakerefsnumberPostResponses.md} (93%) rename samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/{Responses.md => FakerefsobjectmodelwithrefpropsPostResponses.md} (90%) rename samples/client/petstore/java/docs/paths/fakerefsstring/post/{Responses.md => FakerefsstringPostResponses.md} (93%) create mode 100644 samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/Responses.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/Responses.md rename samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/{Responses.md => FakeuploaddownloadfilePostResponses.md} (92%) rename samples/client/petstore/java/docs/paths/fakeuploadfile/post/{Responses.md => FakeuploadfilePostResponses.md} (93%) rename samples/client/petstore/java/docs/paths/fakeuploadfiles/post/{Responses.md => FakeuploadfilesPostResponses.md} (93%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/{Responses.md => FakewildcardresponsesGetResponses.md} (96%) rename samples/client/petstore/java/docs/paths/foo/get/{Responses.md => FooGetResponses.md} (95%) rename samples/client/petstore/java/docs/paths/{commonparamsubdir/delete/Responses.md => pet/post/PetPostResponses.md} (94%) delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/Responses.md rename samples/client/petstore/java/docs/paths/pet/put/{Responses.md => PetPutResponses.md} (78%) rename samples/client/petstore/java/docs/paths/petfindbystatus/get/{Responses.md => PetfindbystatusGetResponses.md} (93%) rename samples/client/petstore/java/docs/paths/petfindbytags/get/{Responses.md => PetfindbytagsGetResponses.md} (93%) rename samples/client/petstore/java/docs/paths/petpetid/{post/Responses.md => delete/PetpetidDeleteResponses.md} (72%) rename samples/client/petstore/java/docs/paths/petpetid/get/{Responses.md => PetpetidGetResponses.md} (94%) rename samples/client/petstore/java/docs/paths/petpetid/{delete/Responses.md => post/PetpetidPostResponses.md} (74%) rename samples/client/petstore/java/docs/paths/petpetiduploadimage/post/{Responses.md => PetpetiduploadimagePostResponses.md} (94%) delete mode 100644 samples/client/petstore/java/docs/paths/solidus/get/Responses.md create mode 100644 samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md rename samples/client/petstore/java/docs/paths/storeinventory/get/{Responses.md => StoreinventoryGetResponses.md} (95%) rename samples/client/petstore/java/docs/paths/storeorder/post/{Responses.md => StoreorderPostResponses.md} (94%) create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md rename samples/client/petstore/java/docs/paths/storeorderorderid/get/{Responses.md => StoreorderorderidGetResponses.md} (93%) rename samples/client/petstore/java/docs/paths/{userlogout/get/Responses.md => user/post/UserPostResponses.md} (94%) rename samples/client/petstore/java/docs/paths/usercreatewitharray/post/{Responses.md => UsercreatewitharrayPostResponses.md} (91%) rename samples/client/petstore/java/docs/paths/usercreatewithlist/post/{Responses.md => UsercreatewithlistPostResponses.md} (91%) rename samples/client/petstore/java/docs/paths/userlogin/get/{Responses.md => UserloginGetResponses.md} (95%) rename samples/client/petstore/java/docs/paths/{user/post/Responses.md => userlogout/get/UserlogoutGetResponses.md} (93%) delete mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/Responses.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md rename samples/client/petstore/java/docs/paths/userusername/get/{Responses.md => UserusernameGetResponses.md} (93%) delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/Responses.md rename samples/client/petstore/java/docs/paths/{storeorderorderid/delete/Responses.md => userusername/put/UserusernamePutResponses.md} (72%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/{Responses.java => AnotherfakedummyPatchResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/{Responses.java => CommonparamsubdirDeleteResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/{Responses.java => CommonparamsubdirGetResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/{Responses.java => CommonparamsubdirPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/{Responses.java => FakeDeleteResponses.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/{Responses.java => FakeGetResponses.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/{Responses.java => FakePatchResponses.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/{Responses.java => FakePostResponses.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/{Responses.java => FakeadditionalpropertieswitharrayofenumsGetResponses.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/{Responses.java => FakebodywithfileschemaPutResponses.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/{Responses.java => FakebodywithqueryparamsPutResponses.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/{Responses.java => FakecasesensitiveparamsPutResponses.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/{Responses.java => FakeclassnametestPatchResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/{Responses.java => FakedeletecoffeeidDeleteResponses.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/{Responses.java => FakehealthGetResponses.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/{Responses.java => FakeinlineadditionalpropertiesPostResponses.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/{Responses.java => FakeinlinecompositionPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/{Responses.java => FakejsonformdataGetResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/{Responses.java => FakejsonpatchPatchResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/{Responses.java => FakejsonwithcharsetPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/{Responses.java => FakemultiplerequestbodycontenttypesPostResponses.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/{Responses.java => FakemultipleresponsebodiesGetResponses.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/{Responses.java => FakemultiplesecuritiesGetResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/{Responses.java => FakeobjinqueryGetResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/{Responses.java => Fakeparametercollisions1ababselfabPostResponses.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/{Responses.java => FakepemcontenttypeGetResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/{Responses.java => FakepetiduploadimagewithrequiredfilePostResponses.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/{Responses.java => FakequeryparamwithjsoncontenttypeGetResponses.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/{Responses.java => FakeredirectionGetResponses.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/{Responses.java => FakerefobjinqueryGetResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/{Responses.java => FakerefsarraymodelPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/{Responses.java => FakerefsarrayofenumsPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/{Responses.java => FakerefsbooleanPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/{Responses.java => FakerefscomposedoneofnumberwithvalidationsPostResponses.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/{Responses.java => FakerefsenumPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/{Responses.java => FakerefsmammalPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/{Responses.java => FakerefsnumberPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/{Responses.java => FakerefsobjectmodelwithrefpropsPostResponses.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/{Responses.java => FakerefsstringPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/{Responses.java => FakeresponsewithoutschemaGetResponses.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/{Responses.java => FaketestqueryparamtersPutResponses.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/{Responses.java => FakeuploaddownloadfilePostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/{Responses.java => FakeuploadfilePostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/{Responses.java => FakeuploadfilesPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/{Responses.java => FakewildcardresponsesGetResponses.java} (97%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/{Responses.java => FooGetResponses.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/{Responses.java => PetPostResponses.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/{Responses.java => PetPutResponses.java} (96%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/{Responses.java => PetfindbystatusGetResponses.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/{Responses.java => PetfindbytagsGetResponses.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/{Responses.java => PetpetidDeleteResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/{Responses.java => PetpetidGetResponses.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/{Responses.java => PetpetidPostResponses.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/{Responses.java => PetpetiduploadimagePostResponses.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/{Responses.java => SolidusGetResponses.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/{Responses.java => StoreinventoryGetResponses.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/{Responses.java => StoreorderPostResponses.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/{Responses.java => StoreorderorderidDeleteResponses.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/{Responses.java => StoreorderorderidGetResponses.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/{Responses.java => UserPostResponses.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/{Responses.java => UsercreatewitharrayPostResponses.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/{Responses.java => UsercreatewithlistPostResponses.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/{Responses.java => UserloginGetResponses.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/{Responses.java => UserlogoutGetResponses.java} (89%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/{Responses.java => UserusernameDeleteResponses.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/{Responses.java => UserusernameGetResponses.java} (95%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/{Responses.java => UserusernamePutResponses.java} (94%) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 76f41a28fa5..93aa25f97c3 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -192,37 +192,37 @@ docs/components/securityschemes/OpenIdConnectTest.md docs/components/securityschemes/PetstoreAuth.md docs/paths/anotherfakedummy/AnotherfakedummyPatch.md docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md -docs/paths/anotherfakedummy/patch/Responses.md +docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md docs/paths/anotherfakedummy/patch/responses/Code200Response.md docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/commonparamsubdir/CommonparamsubdirDelete.md docs/paths/commonparamsubdir/CommonparamsubdirGet.md docs/paths/commonparamsubdir/CommonparamsubdirPost.md +docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md docs/paths/commonparamsubdir/delete/HeaderParameters.md docs/paths/commonparamsubdir/delete/PathParameters.md -docs/paths/commonparamsubdir/delete/Responses.md docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md docs/paths/commonparamsubdir/delete/responses/Code200Response.md +docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md docs/paths/commonparamsubdir/get/PathParameters.md docs/paths/commonparamsubdir/get/QueryParameters.md -docs/paths/commonparamsubdir/get/Responses.md docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md docs/paths/commonparamsubdir/get/responses/Code200Response.md docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md +docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md docs/paths/commonparamsubdir/post/HeaderParameters.md docs/paths/commonparamsubdir/post/PathParameters.md -docs/paths/commonparamsubdir/post/Responses.md docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md docs/paths/commonparamsubdir/post/responses/Code200Response.md docs/paths/fake/FakeDelete.md docs/paths/fake/FakeGet.md docs/paths/fake/FakePatch.md docs/paths/fake/FakePost.md +docs/paths/fake/delete/FakeDeleteResponses.md docs/paths/fake/delete/FakeDeleteSecurityInfo.md docs/paths/fake/delete/HeaderParameters.md docs/paths/fake/delete/QueryParameters.md -docs/paths/fake/delete/Responses.md docs/paths/fake/delete/parameters/parameter0/Schema0.md docs/paths/fake/delete/parameters/parameter1/Schema1.md docs/paths/fake/delete/parameters/parameter2/Schema2.md @@ -232,9 +232,9 @@ docs/paths/fake/delete/parameters/parameter5/Schema5.md docs/paths/fake/delete/responses/Code200Response.md docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md docs/paths/fake/get/FakeGetRequestBody.md +docs/paths/fake/get/FakeGetResponses.md docs/paths/fake/get/HeaderParameters.md docs/paths/fake/get/QueryParameters.md -docs/paths/fake/get/Responses.md docs/paths/fake/get/parameters/parameter0/Schema0.md docs/paths/fake/get/parameters/parameter1/Schema1.md docs/paths/fake/get/parameters/parameter2/Schema2.md @@ -246,67 +246,67 @@ docs/paths/fake/get/responses/Code200Response.md docs/paths/fake/get/responses/Code404Response.md docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fake/patch/FakePatchRequestBody.md -docs/paths/fake/patch/Responses.md +docs/paths/fake/patch/FakePatchResponses.md docs/paths/fake/patch/responses/Code200Response.md docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fake/post/FakePostRequestBody.md +docs/paths/fake/post/FakePostResponses.md docs/paths/fake/post/FakePostSecurityInfo.md -docs/paths/fake/post/Responses.md docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md docs/paths/fake/post/responses/Code200Response.md docs/paths/fake/post/responses/Code404Response.md docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md -docs/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md +docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md -docs/paths/fakebodywithfileschema/put/Responses.md +docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithfileschema/put/responses/Code200Response.md docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md +docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md docs/paths/fakebodywithqueryparams/put/QueryParameters.md -docs/paths/fakebodywithqueryparams/put/Responses.md docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithqueryparams/put/responses/Code200Response.md docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md docs/paths/fakecasesensitiveparams/put/QueryParameters.md -docs/paths/fakecasesensitiveparams/put/Responses.md docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md docs/paths/fakecasesensitiveparams/put/responses/Code200Response.md docs/paths/fakeclassnametest/FakeclassnametestPatch.md docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md +docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md -docs/paths/fakeclassnametest/patch/Responses.md docs/paths/fakeclassnametest/patch/responses/Code200Response.md docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md docs/paths/fakedeletecoffeeid/delete/PathParameters.md -docs/paths/fakedeletecoffeeid/delete/Responses.md docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md docs/paths/fakedeletecoffeeid/delete/responses/Code200Response.md docs/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.md docs/paths/fakehealth/FakehealthGet.md -docs/paths/fakehealth/get/Responses.md +docs/paths/fakehealth/get/FakehealthGetResponses.md docs/paths/fakehealth/get/responses/Code200Response.md docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md -docs/paths/fakeinlineadditionalproperties/post/Responses.md +docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlineadditionalproperties/post/responses/Code200Response.md docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md +docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md docs/paths/fakeinlinecomposition/post/QueryParameters.md -docs/paths/fakeinlinecomposition/post/Responses.md docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -316,53 +316,53 @@ docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicat docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakejsonformdata/FakejsonformdataGet.md docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md -docs/paths/fakejsonformdata/get/Responses.md +docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md docs/paths/fakejsonformdata/get/responses/Code200Response.md docs/paths/fakejsonpatch/FakejsonpatchPatch.md docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md -docs/paths/fakejsonpatch/patch/Responses.md +docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md docs/paths/fakejsonpatch/patch/responses/Code200Response.md docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md -docs/paths/fakejsonwithcharset/post/Responses.md +docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md docs/paths/fakejsonwithcharset/post/responses/Code200Response.md docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md -docs/paths/fakemultiplerequestbodycontenttypes/post/Responses.md +docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md -docs/paths/fakemultipleresponsebodies/get/Responses.md +docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md +docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md -docs/paths/fakemultiplesecurities/get/Responses.md docs/paths/fakemultiplesecurities/get/responses/Code200Response.md docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md docs/paths/fakeobjinquery/FakeobjinqueryGet.md +docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md docs/paths/fakeobjinquery/get/QueryParameters.md -docs/paths/fakeobjinquery/get/Responses.md docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakeobjinquery/get/responses/Code200Response.md docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md +docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md -docs/paths/fakeparametercollisions1ababselfab/post/Responses.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md @@ -387,95 +387,95 @@ docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md -docs/paths/fakepemcontenttype/get/Responses.md +docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md docs/paths/fakepemcontenttype/get/responses/Code200Response.md docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md +docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md -docs/paths/fakepetiduploadimagewithrequiredfile/post/Responses.md docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md -docs/paths/fakequeryparamwithjsoncontenttype/get/Responses.md docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeredirection/FakeredirectionGet.md -docs/paths/fakeredirection/get/Responses.md +docs/paths/fakeredirection/get/FakeredirectionGetResponses.md docs/paths/fakeredirection/get/responses/Code303Response.md docs/paths/fakeredirection/get/responses/Code3XXResponse.md docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md docs/paths/fakerefobjinquery/get/QueryParameters.md -docs/paths/fakerefobjinquery/get/Responses.md docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakerefobjinquery/get/responses/Code200Response.md docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md -docs/paths/fakerefsarraymodel/post/Responses.md +docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarraymodel/post/responses/Code200Response.md docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md -docs/paths/fakerefsarrayofenums/post/Responses.md +docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsboolean/FakerefsbooleanPost.md docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md -docs/paths/fakerefsboolean/post/Responses.md +docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsboolean/post/responses/Code200Response.md docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md -docs/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md +docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsenum/FakerefsenumPost.md docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md -docs/paths/fakerefsenum/post/Responses.md +docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsenum/post/responses/Code200Response.md docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsmammal/FakerefsmammalPost.md docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md -docs/paths/fakerefsmammal/post/Responses.md +docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsmammal/post/responses/Code200Response.md docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsnumber/FakerefsnumberPost.md docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md -docs/paths/fakerefsnumber/post/Responses.md +docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsnumber/post/responses/Code200Response.md docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md -docs/paths/fakerefsobjectmodelwithrefprops/post/Responses.md +docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsstring/FakerefsstringPost.md docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md -docs/paths/fakerefsstring/post/Responses.md +docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsstring/post/responses/Code200Response.md docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md -docs/paths/fakeresponsewithoutschema/get/Responses.md +docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md docs/paths/fakeresponsewithoutschema/get/responses/Code200Response.md docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md docs/paths/faketestqueryparamters/put/QueryParameters.md -docs/paths/faketestqueryparamters/put/Responses.md docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md @@ -485,24 +485,24 @@ docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md docs/paths/faketestqueryparamters/put/responses/Code200Response.md docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md -docs/paths/fakeuploaddownloadfile/post/Responses.md +docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md docs/paths/fakeuploadfile/FakeuploadfilePost.md docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md -docs/paths/fakeuploadfile/post/Responses.md +docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakeuploadfile/post/responses/Code200Response.md docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeuploadfiles/FakeuploadfilesPost.md docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md -docs/paths/fakeuploadfiles/post/Responses.md +docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakeuploadfiles/post/responses/Code200Response.md docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md -docs/paths/fakewildcardresponses/get/Responses.md +docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md docs/paths/fakewildcardresponses/get/responses/Code200Response.md docs/paths/fakewildcardresponses/get/responses/Code2XXResponse.md @@ -516,8 +516,8 @@ docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicati docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md docs/paths/foo/FooGet.md +docs/paths/foo/get/FooGetResponses.md docs/paths/foo/get/FooGetServerInfo.md -docs/paths/foo/get/Responses.md docs/paths/foo/get/responses/CodedefaultResponse.md docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md docs/paths/foo/get/servers/FooGetServer0.md @@ -526,16 +526,16 @@ docs/paths/foo/get/servers/server1/Variables.md docs/paths/pet/PetPost.md docs/paths/pet/PetPut.md docs/paths/pet/post/PetPostRequestBody.md +docs/paths/pet/post/PetPostResponses.md docs/paths/pet/post/PetPostSecurityInfo.md -docs/paths/pet/post/Responses.md docs/paths/pet/post/responses/Code200Response.md docs/paths/pet/post/responses/Code405Response.md docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md docs/paths/pet/put/PetPutRequestBody.md +docs/paths/pet/put/PetPutResponses.md docs/paths/pet/put/PetPutSecurityInfo.md -docs/paths/pet/put/Responses.md docs/paths/pet/put/responses/Code400Response.md docs/paths/pet/put/responses/Code404Response.md docs/paths/pet/put/responses/Code405Response.md @@ -543,9 +543,9 @@ docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md docs/paths/petfindbystatus/PetfindbystatusGet.md docs/paths/petfindbystatus/PetfindbystatusServerInfo.md +docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md docs/paths/petfindbystatus/get/QueryParameters.md -docs/paths/petfindbystatus/get/Responses.md docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md docs/paths/petfindbystatus/get/responses/Code200Response.md docs/paths/petfindbystatus/get/responses/Code400Response.md @@ -556,9 +556,9 @@ docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md docs/paths/petfindbystatus/servers/server1/Variables.md docs/paths/petfindbytags/PetfindbytagsGet.md +docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md docs/paths/petfindbytags/get/QueryParameters.md -docs/paths/petfindbytags/get/Responses.md docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md docs/paths/petfindbytags/get/responses/Code200Response.md docs/paths/petfindbytags/get/responses/Code400Response.md @@ -569,16 +569,16 @@ docs/paths/petpetid/PetpetidGet.md docs/paths/petpetid/PetpetidPost.md docs/paths/petpetid/delete/HeaderParameters.md docs/paths/petpetid/delete/PathParameters.md +docs/paths/petpetid/delete/PetpetidDeleteResponses.md docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md -docs/paths/petpetid/delete/Responses.md docs/paths/petpetid/delete/parameters/parameter0/Schema0.md docs/paths/petpetid/delete/parameters/parameter1/Schema1.md docs/paths/petpetid/delete/responses/Code400Response.md docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md docs/paths/petpetid/get/PathParameters.md +docs/paths/petpetid/get/PetpetidGetResponses.md docs/paths/petpetid/get/PetpetidGetSecurityInfo.md -docs/paths/petpetid/get/Responses.md docs/paths/petpetid/get/parameters/parameter0/Schema0.md docs/paths/petpetid/get/responses/Code200Response.md docs/paths/petpetid/get/responses/Code400Response.md @@ -588,8 +588,8 @@ docs/paths/petpetid/get/responses/code200response/content/applicationxml/Applica docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md docs/paths/petpetid/post/PathParameters.md docs/paths/petpetid/post/PetpetidPostRequestBody.md +docs/paths/petpetid/post/PetpetidPostResponses.md docs/paths/petpetid/post/PetpetidPostSecurityInfo.md -docs/paths/petpetid/post/Responses.md docs/paths/petpetid/post/parameters/parameter0/Schema0.md docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md docs/paths/petpetid/post/responses/Code405Response.md @@ -598,23 +598,23 @@ docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md docs/paths/petpetiduploadimage/post/PathParameters.md docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md +docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md -docs/paths/petpetiduploadimage/post/Responses.md docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/petpetiduploadimage/post/responses/Code200Response.md docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md docs/paths/solidus/SolidusGet.md -docs/paths/solidus/get/Responses.md +docs/paths/solidus/get/SolidusGetResponses.md docs/paths/solidus/get/responses/Code200Response.md docs/paths/storeinventory/StoreinventoryGet.md -docs/paths/storeinventory/get/Responses.md +docs/paths/storeinventory/get/StoreinventoryGetResponses.md docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md docs/paths/storeinventory/get/responses/Code200Response.md docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md docs/paths/storeorder/StoreorderPost.md -docs/paths/storeorder/post/Responses.md docs/paths/storeorder/post/StoreorderPostRequestBody.md +docs/paths/storeorder/post/StoreorderPostResponses.md docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/storeorder/post/responses/Code200Response.md docs/paths/storeorder/post/responses/Code400Response.md @@ -623,12 +623,12 @@ docs/paths/storeorder/post/responses/code200response/content/applicationxml/Appl docs/paths/storeorderorderid/StoreorderorderidDelete.md docs/paths/storeorderorderid/StoreorderorderidGet.md docs/paths/storeorderorderid/delete/PathParameters.md -docs/paths/storeorderorderid/delete/Responses.md +docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md docs/paths/storeorderorderid/delete/responses/Code400Response.md docs/paths/storeorderorderid/delete/responses/Code404Response.md docs/paths/storeorderorderid/get/PathParameters.md -docs/paths/storeorderorderid/get/Responses.md +docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md docs/paths/storeorderorderid/get/responses/Code200Response.md docs/paths/storeorderorderid/get/responses/Code400Response.md @@ -636,21 +636,21 @@ docs/paths/storeorderorderid/get/responses/Code404Response.md docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/user/UserPost.md -docs/paths/user/post/Responses.md docs/paths/user/post/UserPostRequestBody.md +docs/paths/user/post/UserPostResponses.md docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/user/post/responses/CodedefaultResponse.md docs/paths/usercreatewitharray/UsercreatewitharrayPost.md -docs/paths/usercreatewitharray/post/Responses.md docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md +docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md docs/paths/usercreatewitharray/post/responses/CodedefaultResponse.md docs/paths/usercreatewithlist/UsercreatewithlistPost.md -docs/paths/usercreatewithlist/post/Responses.md docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md +docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md docs/paths/usercreatewithlist/post/responses/CodedefaultResponse.md docs/paths/userlogin/UserloginGet.md docs/paths/userlogin/get/QueryParameters.md -docs/paths/userlogin/get/Responses.md +docs/paths/userlogin/get/UserloginGetResponses.md docs/paths/userlogin/get/parameters/parameter0/Schema0.md docs/paths/userlogin/get/parameters/parameter1/Schema1.md docs/paths/userlogin/get/responses/Code200Response.md @@ -661,25 +661,25 @@ docs/paths/userlogin/get/responses/code200response/content/applicationxml/Applic docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md docs/paths/userlogout/UserlogoutGet.md -docs/paths/userlogout/get/Responses.md +docs/paths/userlogout/get/UserlogoutGetResponses.md docs/paths/userlogout/get/responses/CodedefaultResponse.md docs/paths/userusername/UserusernameDelete.md docs/paths/userusername/UserusernameGet.md docs/paths/userusername/UserusernamePut.md docs/paths/userusername/delete/PathParameters.md -docs/paths/userusername/delete/Responses.md +docs/paths/userusername/delete/UserusernameDeleteResponses.md docs/paths/userusername/delete/responses/Code200Response.md docs/paths/userusername/delete/responses/Code404Response.md docs/paths/userusername/get/PathParameters.md -docs/paths/userusername/get/Responses.md +docs/paths/userusername/get/UserusernameGetResponses.md docs/paths/userusername/get/responses/Code200Response.md docs/paths/userusername/get/responses/Code400Response.md docs/paths/userusername/get/responses/Code404Response.md docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/userusername/put/PathParameters.md -docs/paths/userusername/put/Responses.md docs/paths/userusername/put/UserusernamePutRequestBody.md +docs/paths/userusername/put/UserusernamePutResponses.md docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/userusername/put/responses/Code400Response.md docs/paths/userusername/put/responses/Code404Response.md @@ -1043,34 +1043,34 @@ src/main/java/org/openapijsonschematools/client/paths/Userlogout.java src/main/java/org/openapijsonschematools/client/paths/Userusername.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/Responses.java +src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Responses.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java @@ -1078,11 +1078,11 @@ src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java +src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fake/delete/Responses.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java @@ -1098,10 +1098,10 @@ src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/par src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fake/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java @@ -1119,40 +1119,40 @@ src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200 src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fake/patch/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/fake/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java +src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java @@ -1162,33 +1162,33 @@ src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/pu src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java +src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java -src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java @@ -1200,56 +1200,56 @@ src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java -src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java +src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java @@ -1293,16 +1293,16 @@ src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ab src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -1310,85 +1310,85 @@ src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithre src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java +src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java -src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java +src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java -src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java +src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Responses.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java @@ -1404,24 +1404,24 @@ src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java @@ -1435,8 +1435,8 @@ src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/ src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java +src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java -src/main/java/org/openapijsonschematools/client/paths/foo/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java 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 @@ -1445,16 +1445,16 @@ src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Va 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 +src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/pet/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/pet/put/Responses.java src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java @@ -1463,9 +1463,9 @@ src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSec src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java @@ -1478,9 +1478,9 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/Pe src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.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/PetfindbytagsGetResponses.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java @@ -1493,8 +1493,8 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Responses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java @@ -1504,8 +1504,8 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/P src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Responses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java @@ -1517,8 +1517,8 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/Petp src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -1529,24 +1529,24 @@ src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/Petpet src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java -src/main/java/org/openapijsonschematools/client/paths/solidus/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java -src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java -src/main/java/org/openapijsonschematools/client/paths/storeorder/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java @@ -1556,14 +1556,14 @@ src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/Storeord src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Responses.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java @@ -1572,22 +1572,22 @@ src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/resp src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java -src/main/java/org/openapijsonschematools/client/paths/user/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/Responses.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java @@ -1606,20 +1606,20 @@ src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/co src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java -src/main/java/org/openapijsonschematools/client/paths/userlogout/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Responses.java +src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/Responses.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java @@ -1628,8 +1628,8 @@ src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/userusername/put/Responses.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java +src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md index 80c10625a60..47533fda62e 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.anotherfakedummy.AnotherfakedummyPatch; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.Responses; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; import java.io.IOException; import java.util.Arrays; @@ -84,7 +84,7 @@ var request = new AnotherfakedummyPatch.PatchRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +AnotherfakedummyPatchResponses.EndpointResponse response; try { response = apiClient.patch(request); } catch (ApiException e) { @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +AnotherfakedummyPatchResponses.EndpointCode200Response castResponse = (AnotherfakedummyPatchResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -113,7 +113,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/anotherfakedummy/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | +| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | ## PatchRequest public static class PatchRequest
diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/Responses.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/anotherfakedummy/patch/Responses.md rename to samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md index f12cf80e9d7..b4f60163ad6 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/Responses.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md @@ -1,6 +1,6 @@ -# Responses +# AnotherfakedummyPatchResponses -public class Responses +public class AnotherfakedummyPatchResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index a1d18273f35..6605ed4dd39 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirDelete; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Responses; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; import java.io.IOException; import java.util.Arrays; @@ -84,7 +84,7 @@ var request = new CommonparamsubdirDelete.DeleteRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +CommonparamsubdirDeleteResponses.EndpointResponse response; try { response = apiClient.delete(request); } catch (ApiException e) { @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +CommonparamsubdirDeleteResponses.EndpointCode200Response castResponse = (CommonparamsubdirDeleteResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -111,7 +111,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/commonparamsubdir/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | +| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | ## DeleteRequest public static class DeleteRequest
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index 9d3f45fa70a..3feaf7e279c 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirGet; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.Responses; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; import java.io.IOException; import java.util.Arrays; @@ -84,7 +84,7 @@ var request = new CommonparamsubdirGet.GetRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +CommonparamsubdirGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +CommonparamsubdirGetResponses.EndpointCode200Response castResponse = (CommonparamsubdirGetResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -111,7 +111,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/commonparamsubdir/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index 4dc15110aea..e75a7d94af7 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirPost; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.Responses; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; import java.io.IOException; import java.util.Arrays; @@ -84,7 +84,7 @@ var request = new CommonparamsubdirPost.PostRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +CommonparamsubdirPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +CommonparamsubdirPostResponses.EndpointCode200Response castResponse = (CommonparamsubdirPostResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -111,7 +111,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/commonparamsubdir/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
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..fcafe23aebe --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/CommonparamsubdirGetResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md new file mode 100644 index 00000000000..7200ce6f36e --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/CommonparamsubdirPostResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md new file mode 100644 index 00000000000..6440fd63d04 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md index a9a5f2a1f49..293944d5f9b 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -47,7 +47,7 @@ import org.openapijsonschematools.client.components.securityschemes.BearerTest; import org.openapijsonschematools.client.paths.fake.delete.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fake.FakeDelete; -import org.openapijsonschematools.client.paths.fake.delete.Responses; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; import java.io.IOException; import java.util.Arrays; @@ -117,7 +117,7 @@ var request = new FakeDelete.DeleteRequestBuilder() .queryParameters(queryParameters) .build(); -Responses.EndpointResponse response; +FakeDeleteResponses.EndpointResponse response; try { response = apiClient.delete(request); } catch (ApiException e) { @@ -134,7 +134,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeDeleteResponses.EndpointCode200Response castResponse = (FakeDeleteResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -144,7 +144,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | +| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | ## DeleteRequest public static class DeleteRequest
diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index b881e2e05ad..6793d85cfaf 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.paths.fake.get.responses.Code200Respons import org.openapijsonschematools.client.paths.fake.get.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fake.FakeGet; -import org.openapijsonschematools.client.paths.fake.get.Responses; +import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; import java.io.IOException; import java.util.Arrays; @@ -73,7 +73,7 @@ FakeGet.Get apiClient = new FakeGet.Get(apiConfiguration, schemaConfiguration); var request = new FakeGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakeGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (Code404Response.ResponseApiException e) { @@ -93,7 +93,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeGetResponses.EndpointCode200Response castResponse = (FakeGetResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -103,7 +103,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md index 67c048599de..1bb41bae3f7 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePatch.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.patch.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fake.FakePatch; -import org.openapijsonschematools.client.paths.fake.patch.Responses; +import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; import java.io.IOException; import java.util.Arrays; @@ -84,7 +84,7 @@ var request = new FakePatch.PatchRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +FakePatchResponses.EndpointResponse response; try { response = apiClient.patch(request); } catch (ApiException e) { @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakePatchResponses.EndpointCode200Response castResponse = (FakePatchResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -113,7 +113,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | +| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | ## PatchRequest public static class PatchRequest
diff --git a/samples/client/petstore/java/docs/paths/fake/FakePost.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md index 648649a7c47..3babb53afad 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePost.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -44,7 +44,7 @@ import org.openapijsonschematools.client.paths.fake.post.responses.Code200Respon import org.openapijsonschematools.client.paths.fake.post.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fake.FakePost; -import org.openapijsonschematools.client.paths.fake.post.Responses; +import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; import java.io.IOException; import java.util.Arrays; @@ -83,7 +83,7 @@ FakePost.Post apiClient = new FakePost.Post(apiConfiguration, schemaConfiguratio var request = new FakePost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakePostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (Code404Response.ResponseApiException e) { @@ -103,7 +103,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakePostResponses.EndpointCode200Response castResponse = (FakePostResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -113,7 +113,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fake/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/Responses.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/commonparamsubdir/post/Responses.md rename to samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md index d4bf4fdb8f5..c79a3999965 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakeDeleteResponses -public class Responses +public class FakeDeleteResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fake/delete/Responses.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/fake/delete/Responses.md rename to samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md index d4bf4fdb8f5..c55df256961 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/Responses.md +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakeGetResponses -public class Responses +public class FakeGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fake/get/Responses.md b/samples/client/petstore/java/docs/paths/fake/get/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/patch/Responses.md b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md similarity index 95% rename from samples/client/petstore/java/docs/paths/fake/patch/Responses.md rename to samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md index d537a70a5a6..388b7fb102a 100644 --- a/samples/client/petstore/java/docs/paths/fake/patch/Responses.md +++ b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakePatchResponses -public class Responses +public class FakePatchResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/Responses.md b/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/commonparamsubdir/get/Responses.md rename to samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md index d4bf4fdb8f5..d0fff4ec15a 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakePostResponses -public class Responses +public class FakePostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fake/post/Responses.md b/samples/client/petstore/java/docs/paths/fake/post/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md index 75ca1a7088f..1373119df20 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.FakeadditionalpropertieswitharrayofenumsGet; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.Responses; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakeadditionalpropertieswitharrayofenumsGet.Get apiClient = new Fakeadditionalpr var request = new FakeadditionalpropertieswitharrayofenumsGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointCode200Response castResponse = (FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md similarity index 89% rename from samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md rename to samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md index 6adb55f074f..61187e88e9a 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakeadditionalpropertieswitharrayofenumsGetResponses -public class Responses +public class FakeadditionalpropertieswitharrayofenumsGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md index e2e3adbd736..2ec534b9e08 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakebodywithfileschema.FakebodywithfileschemaPut; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.Responses; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; import java.io.IOException; import java.util.Arrays; @@ -86,7 +86,7 @@ var request = new FakebodywithfileschemaPut.PutRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +FakebodywithfileschemaPutResponses.EndpointResponse response; try { response = apiClient.put(request); } catch (ApiException e) { @@ -103,7 +103,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakebodywithfileschemaPutResponses.EndpointCode200Response castResponse = (FakebodywithfileschemaPutResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -113,7 +113,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakebodywithfileschema/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | +| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | ## PutRequest public static class PutRequest
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..82084cc23b1 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/Responses.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index ee404c18f5f..f793762a771 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.FakebodywithqueryparamsPut; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Responses; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; import java.io.IOException; import java.util.Arrays; @@ -114,7 +114,7 @@ var request = new FakebodywithqueryparamsPut.PutRequestBuilder() .queryParameters(queryParameters) .build(); -Responses.EndpointResponse response; +FakebodywithqueryparamsPutResponses.EndpointResponse response; try { response = apiClient.put(request); } catch (ApiException e) { @@ -131,7 +131,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakebodywithqueryparamsPutResponses.EndpointCode200Response castResponse = (FakebodywithqueryparamsPutResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -141,7 +141,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakebodywithqueryparams/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | +| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | ## PutRequest public static class PutRequest
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..0396debe3e5 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/Responses.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index 92717f12db8..c51dc4166a9 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.FakecasesensitiveparamsPut; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Responses; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; import java.io.IOException; import java.util.Arrays; @@ -87,7 +87,7 @@ var request = new FakecasesensitiveparamsPut.PutRequestBuilder() .queryParameters(queryParameters) .build(); -Responses.EndpointResponse response; +FakecasesensitiveparamsPutResponses.EndpointResponse response; try { response = apiClient.put(request); } catch (ApiException e) { @@ -104,7 +104,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakecasesensitiveparamsPutResponses.EndpointCode200Response castResponse = (FakecasesensitiveparamsPutResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -114,7 +114,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakecasesensitiveparams/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | +| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | ## PutRequest public static class PutRequest
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..65c378e9084 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/Responses.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/fakeclassnametest/FakeclassnametestPatch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md index 78345f6cde5..b24ace14865 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.FakeclassnametestPatch; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.Responses; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; import java.io.IOException; import java.util.Arrays; @@ -96,7 +96,7 @@ var request = new FakeclassnametestPatch.PatchRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +FakeclassnametestPatchResponses.EndpointResponse response; try { response = apiClient.patch(request); } catch (ApiException e) { @@ -113,7 +113,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeclassnametestPatchResponses.EndpointCode200Response castResponse = (FakeclassnametestPatchResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -125,7 +125,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeclassnametest/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | +| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | ## PatchRequest public static class PatchRequest
diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/Responses.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md similarity index 92% rename from samples/client/petstore/java/docs/paths/fakeclassnametest/patch/Responses.md rename to samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md index 7f0b34ec46b..60b2ffc0789 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakeclassnametestPatchResponses -public class Responses +public class FakeclassnametestPatchResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index 0479d3e1573..58f198ade9d 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.respons import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.FakedeletecoffeeidDelete; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Responses; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; import java.io.IOException; import java.util.Arrays; @@ -84,7 +84,7 @@ var request = new FakedeletecoffeeidDelete.DeleteRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +FakedeletecoffeeidDeleteResponses.EndpointResponse response; try { response = apiClient.delete(request); } catch (ApiException e) { @@ -101,9 +101,9 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -if (response instanceof Responses.EndpointCode200Response castResponse) { +if (response instanceof FakedeletecoffeeidDeleteResponses.EndpointCode200Response castResponse) { } else { - Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefaultResponse) response; + FakedeletecoffeeidDeleteResponses.EndpointCodedefaultResponse castResponse = (FakedeletecoffeeidDeleteResponses.EndpointCodedefaultResponse) response; } ``` ### Constructor Summary @@ -114,7 +114,7 @@ if (response instanceof Responses.EndpointCode200Response castResponse) { ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | +| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | ## DeleteRequest public static class DeleteRequest
diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/Responses.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/Responses.md rename to samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md index 2f4191ea902..25aac7bba05 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakedeletecoffeeidDeleteResponses -public class Responses +public class FakedeletecoffeeidDeleteResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md index ec1067bfbb9..1bafd248436 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakehealth.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakehealth.FakehealthGet; -import org.openapijsonschematools.client.paths.fakehealth.get.Responses; +import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; import java.io.IOException; import java.util.Arrays; @@ -68,7 +68,7 @@ FakehealthGet.Get apiClient = new FakehealthGet.Get(apiConfiguration, schemaConf var request = new FakehealthGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakehealthGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -85,7 +85,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakehealthGetResponses.EndpointCode200Response castResponse = (FakehealthGetResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -97,7 +97,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakehealth/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/Responses.md b/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/fakehealth/get/Responses.md rename to samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md index 212897f60f6..cf8e6074fdb 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakehealthGetResponses -public class Responses +public class FakehealthGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md index be27f12bef8..165167a252d 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.FakeinlineadditionalpropertiesPost; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.Responses; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; import java.io.IOException; import java.util.Arrays; @@ -84,7 +84,7 @@ var request = new FakeinlineadditionalpropertiesPost.PostRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +FakeinlineadditionalpropertiesPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeinlineadditionalpropertiesPostResponses.EndpointCode200Response castResponse = (FakeinlineadditionalpropertiesPostResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -111,7 +111,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
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..cb29c7bac55 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/Responses.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index 23092e1a1b2..0f1e6640e42 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeinlinecomposition.FakeinlinecompositionPost; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Responses; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; import java.io.IOException; import java.util.Arrays; @@ -71,7 +71,7 @@ FakeinlinecompositionPost.Post apiClient = new FakeinlinecompositionPost.Post(ap var request = new FakeinlinecompositionPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakeinlinecompositionPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -88,7 +88,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeinlinecompositionPostResponses.EndpointCode200Response castResponse = (FakeinlinecompositionPostResponses.EndpointCode200Response) response; if (castResponse.body instanceof Code200Response.ApplicationjsonResponseBody deserializedBody) { // handle deserialized body here } else { @@ -104,7 +104,7 @@ if (castResponse.body instanceof Code200Response.ApplicationjsonResponseBody des ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeinlinecomposition/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/Responses.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md similarity index 92% rename from samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md index 22c31a7494d..8b299665af1 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakeinlinecompositionPostResponses -public class Responses +public class FakeinlinecompositionPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md index 847becdd305..a8634a23da0 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakejsonformdata.FakejsonformdataGet; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.Responses; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakejsonformdataGet.Get apiClient = new FakejsonformdataGet.Get(apiConfiguration var request = new FakejsonformdataGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakejsonformdataGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakejsonformdataGetResponses.EndpointCode200Response castResponse = (FakejsonformdataGetResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -97,7 +97,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakejsonformdata/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
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..a6d4bf5fad6 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/Responses.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/FakejsonpatchPatch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md index b31ed49cf7a..964607baae2 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakejsonpatch.FakejsonpatchPatch; -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.Responses; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakejsonpatchPatch.Patch apiClient = new FakejsonpatchPatch.Patch(apiConfigurati var request = new FakejsonpatchPatch.PatchRequestBuilder().build(); -Responses.EndpointResponse response; +FakejsonpatchPatchResponses.EndpointResponse response; try { response = apiClient.patch(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakejsonpatchPatchResponses.EndpointCode200Response castResponse = (FakejsonpatchPatchResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -97,7 +97,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakejsonpatch/patch/Responses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | +| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | ## PatchRequest public static class PatchRequest
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..ddb440a1c0b --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/Responses.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/fakejsonwithcharset/FakejsonwithcharsetPost.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md index 0e790fc5924..d44609177c1 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakejsonwithcharset.FakejsonwithcharsetPost; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.Responses; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakejsonwithcharsetPost.Post apiClient = new FakejsonwithcharsetPost.Post(apiCon var request = new FakejsonwithcharsetPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakejsonwithcharsetPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakejsonwithcharsetPostResponses.EndpointCode200Response castResponse = (FakejsonwithcharsetPostResponses.EndpointCode200Response) response; Code200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (Code200Response.Applicationjsoncharsetutf8ResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (Code2 ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakejsonwithcharset/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/Responses.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md similarity index 92% rename from samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md index dd3c0337bab..54e56eae7f8 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakejsonwithcharsetPostResponses -public class Responses +public class FakejsonwithcharsetPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md index 4e632de1bbb..90666fd875f 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.FakemultiplerequestbodycontenttypesPost; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.Responses; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakemultiplerequestbodycontenttypesPost.Post apiClient = new Fakemultiplerequest var request = new FakemultiplerequestbodycontenttypesPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakemultiplerequestbodycontenttypesPostResponses.EndpointCode200Response castResponse = (FakemultiplerequestbodycontenttypesPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/Responses.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md similarity index 90% rename from samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md index 84545c913c6..26cdfd9f114 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakemultiplerequestbodycontenttypesPostResponses -public class Responses +public class FakemultiplerequestbodycontenttypesPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md index 5ef5d388039..1f82935d1c6 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.re import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.Code202Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.FakemultipleresponsebodiesGet; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.Responses; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; import java.io.IOException; import java.util.Arrays; @@ -69,7 +69,7 @@ FakemultipleresponsebodiesGet.Get apiClient = new FakemultipleresponsebodiesGet. var request = new FakemultipleresponsebodiesGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakemultipleresponsebodiesGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -86,11 +86,11 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -if (response instanceof Responses.EndpointCode200Response castResponse) { +if (response instanceof FakemultipleresponsebodiesGetResponses.EndpointCode200Response castResponse) { Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } else { - Responses.EndpointCode202Response castResponse = (Responses.EndpointCode202Response) response; + FakemultipleresponsebodiesGetResponses.EndpointCode202Response castResponse = (FakemultipleresponsebodiesGetResponses.EndpointCode202Response) response; Code202Response.ApplicationjsonResponseBody deserializedBody = (Code202Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } @@ -103,7 +103,7 @@ Code202Response.ApplicationjsonResponseBody deserializedBody = (Code202Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/Responses.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/Responses.md rename to samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md index 23ac78a74e1..4a97ae81b21 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakemultipleresponsebodiesGetResponses -public class Responses +public class FakemultipleresponsebodiesGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md index dad2e827249..bc4db27210f 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.FakemultiplesecuritiesGet; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.Responses; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; import java.io.IOException; import java.util.Arrays; @@ -85,7 +85,7 @@ FakemultiplesecuritiesGet.Get apiClient = new FakemultiplesecuritiesGet.Get(apiC var request = new FakemultiplesecuritiesGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakemultiplesecuritiesGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -102,7 +102,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakemultiplesecuritiesGetResponses.EndpointCode200Response castResponse = (FakemultiplesecuritiesGetResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -114,7 +114,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakemultiplesecurities/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/Responses.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md similarity index 92% rename from samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/Responses.md rename to samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md index a2ec8f42a78..375de74fa27 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakemultiplesecuritiesGetResponses -public class Responses +public class FakemultiplesecuritiesGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index 9515eca73c0..55c2a541881 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeobjinquery.FakeobjinqueryGet; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.Responses; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; import java.io.IOException; import java.util.Arrays; @@ -69,7 +69,7 @@ FakeobjinqueryGet.Get apiClient = new FakeobjinqueryGet.Get(apiConfiguration, sc var request = new FakeobjinqueryGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakeobjinqueryGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -86,7 +86,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeobjinqueryGetResponses.EndpointCode200Response castResponse = (FakeobjinqueryGetResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -96,7 +96,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeobjinquery/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
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..1ccb058c615 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/Responses.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index e7165c97a7d..ca576036873 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Fakeparametercollisions1ababselfabPost; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Responses; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; import java.io.IOException; import java.util.Arrays; @@ -95,7 +95,7 @@ var request = new Fakeparametercollisions1ababselfabPost.PostRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +Fakeparametercollisions1ababselfabPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -112,7 +112,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +Fakeparametercollisions1ababselfabPostResponses.EndpointCode200Response castResponse = (Fakeparametercollisions1ababselfabPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -124,7 +124,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Responses.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md similarity index 90% rename from samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md index 42ff2be8930..7cc79482fab 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# Fakeparametercollisions1ababselfabPostResponses -public class Responses +public class Fakeparametercollisions1ababselfabPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md index 31b714134cb..d5f6103f4ee 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakepemcontenttype.FakepemcontenttypeGet; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.Responses; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakepemcontenttypeGet.Get apiClient = new FakepemcontenttypeGet.Get(apiConfigura var request = new FakepemcontenttypeGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakepemcontenttypeGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakepemcontenttypeGetResponses.EndpointCode200Response castResponse = (FakepemcontenttypeGetResponses.EndpointCode200Response) response; Code200Response.ApplicationxpemfileResponseBody deserializedBody = (Code200Response.ApplicationxpemfileResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationxpemfileResponseBody deserializedBody = (Code200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakepemcontenttype/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/Responses.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/fakepemcontenttype/get/Responses.md rename to samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md index a30940e0b0e..dd0fdb5abd5 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakepemcontenttypeGetResponses -public class Responses +public class FakepemcontenttypeGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index e3686226f11..046aeb224fd 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.FakepetiduploadimagewithrequiredfilePost; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.Responses; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; import java.io.IOException; import java.util.Arrays; @@ -93,7 +93,7 @@ var request = new FakepetiduploadimagewithrequiredfilePost.PostRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -110,7 +110,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakepetiduploadimagewithrequiredfilePostResponses.EndpointCode200Response castResponse = (FakepetiduploadimagewithrequiredfilePostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -122,7 +122,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/Responses.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md similarity index 90% rename from samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md index 8628fab9749..da90f998cd1 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakepetiduploadimagewithrequiredfilePostResponses -public class Responses +public class FakepetiduploadimagewithrequiredfilePostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index 468935927bd..c5ee599926a 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.FakequeryparamwithjsoncontenttypeGet; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.Responses; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; import java.io.IOException; import java.util.Arrays; @@ -81,7 +81,7 @@ var request = new FakequeryparamwithjsoncontenttypeGet.GetRequestBuilder() .queryParameters(queryParameters) .build(); -Responses.EndpointResponse response; +FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -98,7 +98,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakequeryparamwithjsoncontenttypeGetResponses.EndpointCode200Response castResponse = (FakequeryparamwithjsoncontenttypeGetResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -110,7 +110,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/Responses.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md similarity index 90% rename from samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/Responses.md rename to samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md index 07ff93a969b..944e57e1a35 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakequeryparamwithjsoncontenttypeGetResponses -public class Responses +public class FakequeryparamwithjsoncontenttypeGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md index 759256a1b4c..586cc49ce2a 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.paths.fakeredirection.get.responses.Cod import org.openapijsonschematools.client.paths.fakeredirection.get.responses.Code3XXResponse; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeredirection.FakeredirectionGet; -import org.openapijsonschematools.client.paths.fakeredirection.get.Responses; +import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; import java.io.IOException; import java.util.Arrays; @@ -69,7 +69,7 @@ FakeredirectionGet.Get apiClient = new FakeredirectionGet.Get(apiConfiguration, var request = new FakeredirectionGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakeredirectionGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -86,9 +86,9 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -if (response instanceof Responses.EndpointCode3XXResponse castResponse) { +if (response instanceof FakeredirectionGetResponses.EndpointCode3XXResponse castResponse) { } else { - Responses.EndpointCode303Response castResponse = (Responses.EndpointCode303Response) response; + FakeredirectionGetResponses.EndpointCode303Response castResponse = (FakeredirectionGetResponses.EndpointCode303Response) response; } ``` ### Constructor Summary @@ -99,7 +99,7 @@ if (response instanceof Responses.EndpointCode3XXResponse castResponse) { ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeredirection/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/get/Responses.md b/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/fakeredirection/get/Responses.md rename to samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md index 9d240a76c1e..8a3f2bfbf9c 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakeredirectionGetResponses -public class Responses +public class FakeredirectionGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index 298af1c3510..4a189c1c7bf 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefobjinquery.FakerefobjinqueryGet; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Responses; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; import java.io.IOException; import java.util.Arrays; @@ -69,7 +69,7 @@ FakerefobjinqueryGet.Get apiClient = new FakerefobjinqueryGet.Get(apiConfigurati var request = new FakerefobjinqueryGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakerefobjinqueryGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -86,7 +86,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefobjinqueryGetResponses.EndpointCode200Response castResponse = (FakerefobjinqueryGetResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -96,7 +96,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefobjinquery/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
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..53114d96124 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/Responses.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/fakerefsarraymodel/FakerefsarraymodelPost.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md index e541a5a867e..4e3e9b86c2e 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsarraymodel.FakerefsarraymodelPost; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.Responses; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakerefsarraymodelPost.Post apiClient = new FakerefsarraymodelPost.Post(apiConfi var request = new FakerefsarraymodelPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakerefsarraymodelPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefsarraymodelPostResponses.EndpointCode200Response castResponse = (FakerefsarraymodelPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsarraymodel/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/Responses.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md similarity index 92% rename from samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md index 6297447a44e..afb388323ac 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakerefsarraymodelPostResponses -public class Responses +public class FakerefsarraymodelPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md index ea02166a47f..5464ae71458 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.FakerefsarrayofenumsPost; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.Responses; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakerefsarrayofenumsPost.Post apiClient = new FakerefsarrayofenumsPost.Post(apiC var request = new FakerefsarrayofenumsPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakerefsarrayofenumsPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefsarrayofenumsPostResponses.EndpointCode200Response castResponse = (FakerefsarrayofenumsPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsarrayofenums/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/Responses.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md similarity index 92% rename from samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md index 7b6fc2c175b..73e7d0e53a6 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakerefsarrayofenumsPostResponses -public class Responses +public class FakerefsarrayofenumsPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md index 64eb4baeed2..e9b6dfc6c00 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsboolean.FakerefsbooleanPost; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.Responses; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakerefsbooleanPost.Post apiClient = new FakerefsbooleanPost.Post(apiConfigurati var request = new FakerefsbooleanPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakerefsbooleanPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefsbooleanPostResponses.EndpointCode200Response castResponse = (FakerefsbooleanPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsboolean/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/Responses.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/fakerefsboolean/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md index 5d06682ddec..75e059365da 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakerefsbooleanPostResponses -public class Responses +public class FakerefsbooleanPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md index 43d270a9613..784813bc9e9 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.FakerefscomposedoneofnumberwithvalidationsPost; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.Responses; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakerefscomposedoneofnumberwithvalidationsPost.Post apiClient = new Fakerefscomp var request = new FakerefscomposedoneofnumberwithvalidationsPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointCode200Response castResponse = (FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md similarity index 89% rename from samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md index b5d43f7cac0..4c24c586308 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakerefscomposedoneofnumberwithvalidationsPostResponses -public class Responses +public class FakerefscomposedoneofnumberwithvalidationsPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md index 3df4c93840d..fc926b8c616 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsenum.FakerefsenumPost; -import org.openapijsonschematools.client.paths.fakerefsenum.post.Responses; +import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakerefsenumPost.Post apiClient = new FakerefsenumPost.Post(apiConfiguration, sc var request = new FakerefsenumPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakerefsenumPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefsenumPostResponses.EndpointCode200Response castResponse = (FakerefsenumPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsenum/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/Responses.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/fakerefsenum/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md index ef682cd6d0e..93cd6c187e9 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakerefsenumPostResponses -public class Responses +public class FakerefsenumPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md index fe0f1e20a80..0755eabad53 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsmammal.FakerefsmammalPost; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.Responses; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; import java.io.IOException; import java.util.Arrays; @@ -75,7 +75,7 @@ var request = new FakerefsmammalPost.PostRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +FakerefsmammalPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -92,7 +92,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefsmammalPostResponses.EndpointCode200Response castResponse = (FakerefsmammalPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -104,7 +104,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsmammal/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/Responses.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/fakerefsmammal/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md index a494d891252..646bbc3e874 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakerefsmammalPostResponses -public class Responses +public class FakerefsmammalPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md index df4b6d46a5e..bd5af2a4b1c 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsnumber.FakerefsnumberPost; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.Responses; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakerefsnumberPost.Post apiClient = new FakerefsnumberPost.Post(apiConfiguration var request = new FakerefsnumberPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakerefsnumberPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefsnumberPostResponses.EndpointCode200Response castResponse = (FakerefsnumberPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsnumber/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/Responses.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/fakerefsnumber/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md index 2d78359ac0d..83845220399 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakerefsnumberPostResponses -public class Responses +public class FakerefsnumberPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md index 140949f4c14..e3d03b98a7d 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.FakerefsobjectmodelwithrefpropsPost; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.Responses; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakerefsobjectmodelwithrefpropsPost.Post apiClient = new Fakerefsobjectmodelwith var request = new FakerefsobjectmodelwithrefpropsPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefsobjectmodelwithrefpropsPostResponses.EndpointCode200Response castResponse = (FakerefsobjectmodelwithrefpropsPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/Responses.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md similarity index 90% rename from samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md index 1b5db48eba7..3b23895ab33 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakerefsobjectmodelwithrefpropsPostResponses -public class Responses +public class FakerefsobjectmodelwithrefpropsPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md index 747467d4ec6..ce97f4875dc 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsstring.FakerefsstringPost; -import org.openapijsonschematools.client.paths.fakerefsstring.post.Responses; +import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakerefsstringPost.Post apiClient = new FakerefsstringPost.Post(apiConfiguration var request = new FakerefsstringPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakerefsstringPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakerefsstringPostResponses.EndpointCode200Response castResponse = (FakerefsstringPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakerefsstring/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/Responses.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/fakerefsstring/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md index bfcb28ad840..d9c55871091 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakerefsstringPostResponses -public class Responses +public class FakerefsstringPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md index 7a9b72a44b6..771d1ffcb96 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.FakeresponsewithoutschemaGet; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.Responses; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; import java.io.IOException; import java.util.Arrays; @@ -68,7 +68,7 @@ FakeresponsewithoutschemaGet.Get apiClient = new FakeresponsewithoutschemaGet.Ge var request = new FakeresponsewithoutschemaGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakeresponsewithoutschemaGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -85,7 +85,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeresponsewithoutschemaGetResponses.EndpointCode200Response castResponse = (FakeresponsewithoutschemaGetResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -95,7 +95,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
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..9afd6013575 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index cd76c1b2d8a..f10ec6b8395 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.FaketestqueryparamtersPut; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Responses; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; import java.io.IOException; import java.util.Arrays; @@ -108,7 +108,7 @@ var request = new FaketestqueryparamtersPut.PutRequestBuilder() .queryParameters(queryParameters) .build(); -Responses.EndpointResponse response; +FaketestqueryparamtersPutResponses.EndpointResponse response; try { response = apiClient.put(request); } catch (ApiException e) { @@ -125,7 +125,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FaketestqueryparamtersPutResponses.EndpointCode200Response castResponse = (FaketestqueryparamtersPutResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -135,7 +135,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/faketestqueryparamters/put/Responses.md#endpointresponse) | put([PutRequest](#putrequest) request) | +| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | ## PutRequest public static class PutRequest
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..09f6ff3c47b --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/Responses.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md index a4b6df99c93..cd8b5fd26a4 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.FakeuploaddownloadfilePost; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.Responses; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; import java.io.IOException; import java.util.Arrays; @@ -80,7 +80,7 @@ var request = new FakeuploaddownloadfilePost.PostRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +FakeuploaddownloadfilePostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -97,7 +97,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeuploaddownloadfilePostResponses.EndpointCode200Response castResponse = (FakeuploaddownloadfilePostResponses.EndpointCode200Response) response; Code200Response.ApplicationoctetstreamResponseBody deserializedBody = (Code200Response.ApplicationoctetstreamResponseBody) castResponse.body; // handle deserialized body here ``` @@ -109,7 +109,7 @@ Code200Response.ApplicationoctetstreamResponseBody deserializedBody = (Code200Re ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/Responses.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md similarity index 92% rename from samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md index cd70b93f9f9..3baf46de2c9 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakeuploaddownloadfilePostResponses -public class Responses +public class FakeuploaddownloadfilePostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md index c46c2a672af..add47071a9c 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfile.FakeuploadfilePost; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.Responses; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakeuploadfilePost.Post apiClient = new FakeuploadfilePost.Post(apiConfiguration var request = new FakeuploadfilePost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakeuploadfilePostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeuploadfilePostResponses.EndpointCode200Response castResponse = (FakeuploadfilePostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeuploadfile/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/Responses.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/fakeuploadfile/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md index d0e24bc61c3..6eeabf8af29 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakeuploadfilePostResponses -public class Responses +public class FakeuploadfilePostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md index 36e36eecc80..7584cc9b6a5 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -40,7 +40,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfiles.FakeuploadfilesPost; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.Responses; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; import java.io.IOException; import java.util.Arrays; @@ -70,7 +70,7 @@ FakeuploadfilesPost.Post apiClient = new FakeuploadfilesPost.Post(apiConfigurati var request = new FakeuploadfilesPost.PostRequestBuilder().build(); -Responses.EndpointResponse response; +FakeuploadfilesPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +FakeuploadfilesPostResponses.EndpointCode200Response castResponse = (FakeuploadfilesPostResponses.EndpointCode200Response) response; Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -99,7 +99,7 @@ Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakeuploadfiles/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/Responses.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/fakeuploadfiles/post/Responses.md rename to samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md index 345c542d872..9d0d511c99c 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakeuploadfilesPostResponses -public class Responses +public class FakeuploadfilesPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md index 5a7b9a0c8fc..3d1c3937f5e 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.respons import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code5XXResponse; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakewildcardresponses.FakewildcardresponsesGet; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.Responses; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; import java.io.IOException; import java.util.Arrays; @@ -73,7 +73,7 @@ FakewildcardresponsesGet.Get apiClient = new FakewildcardresponsesGet.Get(apiCon var request = new FakewildcardresponsesGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FakewildcardresponsesGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (Code4XXResponse.ResponseApiException | Code5XXResponse.ResponseApiException e) { @@ -93,17 +93,17 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -if (response instanceof Responses.EndpointCode1XXResponse castResponse) { +if (response instanceof FakewildcardresponsesGetResponses.EndpointCode1XXResponse castResponse) { Code1XXResponse.ApplicationjsonResponseBody deserializedBody = (Code1XXResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -} else if (response instanceof Responses.EndpointCode2XXResponse castResponse) { +} else if (response instanceof FakewildcardresponsesGetResponses.EndpointCode2XXResponse castResponse) { Code2XXResponse.ApplicationjsonResponseBody deserializedBody = (Code2XXResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -} else if (response instanceof Responses.EndpointCode200Response castResponse) { +} else if (response instanceof FakewildcardresponsesGetResponses.EndpointCode200Response castResponse) { Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } else { - Responses.EndpointCode3XXResponse castResponse = (Responses.EndpointCode3XXResponse) response; + FakewildcardresponsesGetResponses.EndpointCode3XXResponse castResponse = (FakewildcardresponsesGetResponses.EndpointCode3XXResponse) response; Code3XXResponse.ApplicationjsonResponseBody deserializedBody = (Code3XXResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } @@ -116,7 +116,7 @@ Code3XXResponse.ApplicationjsonResponseBody deserializedBody = (Code3XXResponse. ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/fakewildcardresponses/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/Responses.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md similarity index 96% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/Responses.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md index 83369062bc8..42c16437148 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FakewildcardresponsesGetResponses -public class Responses +public class FakewildcardresponsesGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/foo/FooGet.md b/samples/client/petstore/java/docs/paths/foo/FooGet.md index 99437f7d5c1..961dd1feeae 100644 --- a/samples/client/petstore/java/docs/paths/foo/FooGet.md +++ b/samples/client/petstore/java/docs/paths/foo/FooGet.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer1; import org.openapijsonschematools.client.paths.foo.get.responses.CodedefaultResponse; import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; import org.openapijsonschematools.client.paths.foo.FooGet; -import org.openapijsonschematools.client.paths.foo.get.Responses; +import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; import java.io.IOException; import java.util.Arrays; @@ -67,7 +67,7 @@ FooGet.Get apiClient = new FooGet.Get(apiConfiguration, schemaConfiguration); var request = new FooGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +FooGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -84,7 +84,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefaultResponse) response; +FooGetResponses.EndpointCodedefaultResponse castResponse = (FooGetResponses.EndpointCodedefaultResponse) response; CodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (CodedefaultResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` @@ -96,7 +96,7 @@ CodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (CodedefaultR ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/foo/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/foo/get/Responses.md b/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md similarity index 95% rename from samples/client/petstore/java/docs/paths/foo/get/Responses.md rename to samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md index 6a7b519f22b..ab751e738b1 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# FooGetResponses -public class Responses +public class FooGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md index 70ddd11d1cf..a59ea0be9a2 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPost.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -48,7 +48,7 @@ import org.openapijsonschematools.client.paths.pet.post.responses.Code200Respons import org.openapijsonschematools.client.paths.pet.post.responses.Code405Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.pet.PetPost; -import org.openapijsonschematools.client.paths.pet.post.Responses; +import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; import java.io.IOException; import java.util.Arrays; @@ -130,7 +130,7 @@ var request = new PetPost.PostRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +PetPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (Code405Response.ResponseApiException e) { @@ -150,7 +150,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +PetPostResponses.EndpointCode200Response castResponse = (PetPostResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -160,7 +160,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/pet/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/pet/PetPut.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md index 9add2df781d..ed5018943db 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPut.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -48,7 +48,7 @@ import org.openapijsonschematools.client.paths.pet.put.responses.Code404Response import org.openapijsonschematools.client.paths.pet.put.responses.Code405Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.pet.PetPut; -import org.openapijsonschematools.client.paths.pet.put.Responses; +import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; import java.io.IOException; import java.util.Arrays; diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/Responses.md b/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/commonparamsubdir/delete/Responses.md rename to samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md index d4bf4fdb8f5..8a40ed2783b 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/Responses.md +++ b/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# PetPostResponses -public class Responses +public class PetPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/pet/post/Responses.md b/samples/client/petstore/java/docs/paths/pet/post/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/put/Responses.md b/samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md similarity index 78% rename from samples/client/petstore/java/docs/paths/pet/put/Responses.md rename to samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md index 5841efd5c37..fb9a8a6388a 100644 --- a/samples/client/petstore/java/docs/paths/pet/put/Responses.md +++ b/samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md @@ -1,6 +1,6 @@ -# Responses +# PetPutResponses -public class Responses +public class PetPutResponses A class that contains necessary responses classes diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index 02213464eb2..79fa24c2b98 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.Cod import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.Code400Response; import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusGet; -import org.openapijsonschematools.client.paths.petfindbystatus.get.Responses; +import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetResponses; import java.io.IOException; import java.util.Arrays; @@ -100,7 +100,7 @@ var request = new PetfindbystatusGet.GetRequestBuilder() .queryParameters(queryParameters) .build(); -Responses.EndpointResponse response; +PetfindbystatusGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (Code400Response.ResponseApiException e) { @@ -120,7 +120,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +PetfindbystatusGetResponses.EndpointCode200Response castResponse = (PetfindbystatusGetResponses.EndpointCode200Response) response; } ``` ### Constructor Summary @@ -131,7 +131,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petfindbystatus/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/Responses.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/petfindbystatus/get/Responses.md rename to samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md index e66c80fe882..d20ef89dac1 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# PetfindbystatusGetResponses -public class Responses +public class PetfindbystatusGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index 81b4b49bfa7..81fffdcd4a5 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.paths.petfindbytags.get.responses.Code2 import org.openapijsonschematools.client.paths.petfindbytags.get.responses.Code400Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.petfindbytags.PetfindbytagsGet; -import org.openapijsonschematools.client.paths.petfindbytags.get.Responses; +import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; import java.io.IOException; import java.util.Arrays; @@ -97,7 +97,7 @@ var request = new PetfindbytagsGet.GetRequestBuilder() .queryParameters(queryParameters) .build(); -Responses.EndpointResponse response; +PetfindbytagsGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (Code400Response.ResponseApiException e) { @@ -117,7 +117,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +PetfindbytagsGetResponses.EndpointCode200Response castResponse = (PetfindbytagsGetResponses.EndpointCode200Response) response; } ``` ### Constructor Summary @@ -128,7 +128,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petfindbytags/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/Responses.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/petfindbytags/get/Responses.md rename to samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md index 3ca626fc0c0..2cd230e2afe 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# PetfindbytagsGetResponses -public class Responses +public class PetfindbytagsGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index 232802f3f85..5a5fec27ebf 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.petpetid.delete.responses.Code400Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.PetpetidDelete; -import org.openapijsonschematools.client.paths.petpetid.delete.Responses; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; import java.io.IOException; import java.util.Arrays; diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index 65e8ce0fcc5..2e618fac915 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.paths.petpetid.get.responses.Code400Res import org.openapijsonschematools.client.paths.petpetid.get.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.PetpetidGet; -import org.openapijsonschematools.client.paths.petpetid.get.Responses; +import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; import java.io.IOException; import java.util.Arrays; @@ -97,7 +97,7 @@ var request = new PetpetidGet.GetRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +PetpetidGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (Code400Response.ResponseApiException | Code404Response.ResponseApiException e) { @@ -117,7 +117,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +PetpetidGetResponses.EndpointCode200Response castResponse = (PetpetidGetResponses.EndpointCode200Response) response; if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { @@ -133,7 +133,7 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petpetid/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index d80c87877e0..fc721b83c88 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.petpetid.post.responses.Code405Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.PetpetidPost; -import org.openapijsonschematools.client.paths.petpetid.post.Responses; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; import java.io.IOException; import java.util.Arrays; diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/Responses.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md similarity index 72% rename from samples/client/petstore/java/docs/paths/petpetid/post/Responses.md rename to samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md index 5841efd5c37..393d3ca7126 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md @@ -1,6 +1,6 @@ -# Responses +# PetpetidDeleteResponses -public class Responses +public class PetpetidDeleteResponses A class that contains necessary responses classes diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/Responses.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/petpetid/get/Responses.md rename to samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md index 2ddc5a84085..f91d5df91ca 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# PetpetidGetResponses -public class Responses +public class PetpetidGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/Responses.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md similarity index 74% rename from samples/client/petstore/java/docs/paths/petpetid/delete/Responses.md rename to samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md index 5841efd5c37..1372e9116b3 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/Responses.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# PetpetidPostResponses -public class Responses +public class PetpetidPostResponses A class that contains necessary responses classes diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index 22aee9579dd..bd80f30e217 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.paths.petpetiduploadimage.post.response 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.Responses; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; import java.io.IOException; import java.util.Arrays; @@ -94,7 +94,7 @@ var request = new PetpetiduploadimagePost.PostRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +PetpetiduploadimagePostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -111,7 +111,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +PetpetiduploadimagePostResponses.EndpointCode200Response castResponse = (PetpetiduploadimagePostResponses.EndpointCode200Response) response; } ``` ### Constructor Summary @@ -122,7 +122,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/petpetiduploadimage/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/Responses.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/petpetiduploadimage/post/Responses.md rename to samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md index 9f9a052293c..d51644024d5 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md @@ -1,6 +1,6 @@ -# Responses +# PetpetiduploadimagePostResponses -public class Responses +public class PetpetiduploadimagePostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md index 0b80673a76c..7187e0d97c7 100644 --- a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md +++ b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.solidus.get.responses.Code200Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.solidus.SolidusGet; -import org.openapijsonschematools.client.paths.solidus.get.Responses; +import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; import java.io.IOException; import java.util.Arrays; @@ -68,7 +68,7 @@ SolidusGet.Get apiClient = new SolidusGet.Get(apiConfiguration, schemaConfigurat var request = new SolidusGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +SolidusGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -85,7 +85,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +SolidusGetResponses.EndpointCode200Response castResponse = (SolidusGetResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -95,7 +95,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/solidus/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/solidus/get/Responses.md b/samples/client/petstore/java/docs/paths/solidus/get/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/solidus/get/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/SolidusGetResponses.md b/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md new file mode 100644 index 00000000000..73e4a043723 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/storeinventory/StoreinventoryGet.md b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md index 3c2a3bfdfe1..cee8b7eb4f2 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.storeinventory.get.responses.Code 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.Responses; +import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; import java.io.IOException; import java.util.Arrays; @@ -81,7 +81,7 @@ StoreinventoryGet.Get apiClient = new StoreinventoryGet.Get(apiConfiguration, sc var request = new StoreinventoryGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +StoreinventoryGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -98,7 +98,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +StoreinventoryGetResponses.EndpointCode200Response castResponse = (StoreinventoryGetResponses.EndpointCode200Response) response; } ``` ### Constructor Summary @@ -109,7 +109,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/storeinventory/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/Responses.md b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md similarity index 95% rename from samples/client/petstore/java/docs/paths/storeinventory/get/Responses.md rename to samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md index cc1f6f34df9..fe1806f4060 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# StoreinventoryGetResponses -public class Responses +public class StoreinventoryGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md index d14e9ffb759..9043e1c0f42 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md +++ b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.paths.storeorder.post.responses.Code200 import org.openapijsonschematools.client.paths.storeorder.post.responses.Code400Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.storeorder.StoreorderPost; -import org.openapijsonschematools.client.paths.storeorder.post.Responses; +import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; import java.io.IOException; import java.util.Arrays; @@ -95,7 +95,7 @@ var request = new StoreorderPost.PostRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +StoreorderPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (Code400Response.ResponseApiException e) { @@ -115,7 +115,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +StoreorderPostResponses.EndpointCode200Response castResponse = (StoreorderPostResponses.EndpointCode200Response) response; if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { @@ -131,7 +131,7 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/storeorder/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/Responses.md b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/storeorder/post/Responses.md rename to samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md index b138f0fa617..2040cb7141a 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# StoreorderPostResponses -public class Responses +public class StoreorderPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index 8b0385677a4..df341b396ef 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.delete.response import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidDelete; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.Responses; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; import java.io.IOException; import java.util.Arrays; diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index 3cc0c17c48a..9838b40e82a 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.C import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidGet; -import org.openapijsonschematools.client.paths.storeorderorderid.get.Responses; +import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; import java.io.IOException; import java.util.Arrays; @@ -85,7 +85,7 @@ var request = new StoreorderorderidGet.GetRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +StoreorderorderidGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (Code400Response.ResponseApiException | Code404Response.ResponseApiException e) { @@ -105,7 +105,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +StoreorderorderidGetResponses.EndpointCode200Response castResponse = (StoreorderorderidGetResponses.EndpointCode200Response) response; if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { @@ -121,7 +121,7 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/storeorderorderid/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
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/get/Responses.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/storeorderorderid/get/Responses.md rename to samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md index a0f644a0687..e1b54511549 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# StoreorderorderidGetResponses -public class Responses +public class StoreorderorderidGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md index 7ff2b47741d..56e3e6e3583 100644 --- a/samples/client/petstore/java/docs/paths/user/UserPost.md +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.user.post.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.user.UserPost; -import org.openapijsonschematools.client.paths.user.post.Responses; +import org.openapijsonschematools.client.paths.user.post.UserPostResponses; import java.io.IOException; import java.util.Arrays; @@ -100,7 +100,7 @@ var request = new UserPost.PostRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +UserPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -117,7 +117,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefaultResponse) response; +UserPostResponses.EndpointCodedefaultResponse castResponse = (UserPostResponses.EndpointCodedefaultResponse) response; ``` ### Constructor Summary | Constructor and Description | @@ -127,7 +127,7 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/user/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/userlogout/get/Responses.md b/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md similarity index 94% rename from samples/client/petstore/java/docs/paths/userlogout/get/Responses.md rename to samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md index abe0acf775e..d8dc81f6d8d 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# UserPostResponses -public class Responses +public class UserPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md index 7c4acb6e418..b294be9b1a2 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.usercreatewitharray.UsercreatewitharrayPost; -import org.openapijsonschematools.client.paths.usercreatewitharray.post.Responses; +import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; import java.io.IOException; import java.util.Arrays; @@ -122,7 +122,7 @@ var request = new UsercreatewitharrayPost.PostRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +UsercreatewitharrayPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -139,7 +139,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefaultResponse) response; +UsercreatewitharrayPostResponses.EndpointCodedefaultResponse castResponse = (UsercreatewitharrayPostResponses.EndpointCodedefaultResponse) response; ``` ### Constructor Summary | Constructor and Description | @@ -149,7 +149,7 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/usercreatewitharray/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/Responses.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md similarity index 91% rename from samples/client/petstore/java/docs/paths/usercreatewitharray/post/Responses.md rename to samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md index abe0acf775e..c39ef5dab37 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# UsercreatewitharrayPostResponses -public class Responses +public class UsercreatewitharrayPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md index f0d19578ed8..ad790a1d115 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.usercreatewithlist.UsercreatewithlistPost; -import org.openapijsonschematools.client.paths.usercreatewithlist.post.Responses; +import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; import java.io.IOException; import java.util.Arrays; @@ -122,7 +122,7 @@ var request = new UsercreatewithlistPost.PostRequestBuilder() .requestBody(requestBody) .build(); -Responses.EndpointResponse response; +UsercreatewithlistPostResponses.EndpointResponse response; try { response = apiClient.post(request); } catch (ApiException e) { @@ -139,7 +139,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefaultResponse) response; +UsercreatewithlistPostResponses.EndpointCodedefaultResponse castResponse = (UsercreatewithlistPostResponses.EndpointCodedefaultResponse) response; ``` ### Constructor Summary | Constructor and Description | @@ -149,7 +149,7 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/usercreatewithlist/post/Responses.md#endpointresponse) | post([PostRequest](#postrequest) request) | +| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | ## PostRequest public static class PostRequest
diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/Responses.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md similarity index 91% rename from samples/client/petstore/java/docs/paths/usercreatewithlist/post/Responses.md rename to samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md index abe0acf775e..98c216c4969 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md @@ -1,6 +1,6 @@ -# Responses +# UsercreatewithlistPostResponses -public class Responses +public class UsercreatewithlistPostResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index 3f2ebb390d9..8e9d3717f16 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.paths.userlogin.get.responses.code200re import org.openapijsonschematools.client.paths.userlogin.get.responses.Code400Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userlogin.UserloginGet; -import org.openapijsonschematools.client.paths.userlogin.get.Responses; +import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; import java.io.IOException; import java.util.Arrays; @@ -87,7 +87,7 @@ var request = new UserloginGet.GetRequestBuilder() .queryParameters(queryParameters) .build(); -Responses.EndpointResponse response; +UserloginGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (Code400Response.ResponseApiException e) { @@ -107,7 +107,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +UserloginGetResponses.EndpointCode200Response castResponse = (UserloginGetResponses.EndpointCode200Response) response; if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { @@ -123,7 +123,7 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userlogin/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/Responses.md b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md similarity index 95% rename from samples/client/petstore/java/docs/paths/userlogin/get/Responses.md rename to samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md index 3fd3efa6dea..0359b64abd5 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# UserloginGetResponses -public class Responses +public class UserloginGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md index 79e377d49ab..66d4dcdb083 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md +++ b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogout.get.responses.CodedefaultResponse; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userlogout.UserlogoutGet; -import org.openapijsonschematools.client.paths.userlogout.get.Responses; +import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; import java.io.IOException; import java.util.Arrays; @@ -68,7 +68,7 @@ UserlogoutGet.Get apiClient = new UserlogoutGet.Get(apiConfiguration, schemaConf var request = new UserlogoutGet.GetRequestBuilder().build(); -Responses.EndpointResponse response; +UserlogoutGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (ApiException e) { @@ -85,7 +85,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefaultResponse) response; +UserlogoutGetResponses.EndpointCodedefaultResponse castResponse = (UserlogoutGetResponses.EndpointCodedefaultResponse) response; ``` ### Constructor Summary | Constructor and Description | @@ -95,7 +95,7 @@ Responses.EndpointCodedefaultResponse castResponse = (Responses.EndpointCodedefa ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userlogout/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/user/post/Responses.md b/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/user/post/Responses.md rename to samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md index abe0acf775e..1f225c66ac5 100644 --- a/samples/client/petstore/java/docs/paths/user/post/Responses.md +++ b/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# UserlogoutGetResponses -public class Responses +public class UserlogoutGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index 0cfe590d673..8f3de5b62a2 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.userusername.delete.responses.Cod import org.openapijsonschematools.client.paths.userusername.delete.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.UserusernameDelete; -import org.openapijsonschematools.client.paths.userusername.delete.Responses; +import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; import java.io.IOException; import java.util.Arrays; @@ -84,7 +84,7 @@ var request = new UserusernameDelete.DeleteRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +UserusernameDeleteResponses.EndpointResponse response; try { response = apiClient.delete(request); } catch (Code404Response.ResponseApiException e) { @@ -104,7 +104,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +UserusernameDeleteResponses.EndpointCode200Response castResponse = (UserusernameDeleteResponses.EndpointCode200Response) response; ``` ### Constructor Summary | Constructor and Description | @@ -114,7 +114,7 @@ Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Respo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userusername/delete/Responses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | +| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | ## DeleteRequest public static class DeleteRequest
diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index 7a9eb3a773d..955220e3880 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.paths.userusername.get.responses.Code40 import org.openapijsonschematools.client.paths.userusername.get.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.UserusernameGet; -import org.openapijsonschematools.client.paths.userusername.get.Responses; +import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; import java.io.IOException; import java.util.Arrays; @@ -85,7 +85,7 @@ var request = new UserusernameGet.GetRequestBuilder() .pathParameters(pathParameters) .build(); -Responses.EndpointResponse response; +UserusernameGetResponses.EndpointResponse response; try { response = apiClient.get(request); } catch (Code400Response.ResponseApiException | Code404Response.ResponseApiException e) { @@ -105,7 +105,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Responses.EndpointCode200Response castResponse = (Responses.EndpointCode200Response) response; +UserusernameGetResponses.EndpointCode200Response castResponse = (UserusernameGetResponses.EndpointCode200Response) response; if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { @@ -121,7 +121,7 @@ if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody dese ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Responses.EndpointResponse](../../paths/userusername/get/Responses.md#endpointresponse) | get([GetRequest](#getrequest) request) | +| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | ## GetRequest public static class GetRequest
diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index f27f4af7e1b..0cb311d01f7 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.paths.userusername.put.responses.Code40 import org.openapijsonschematools.client.paths.userusername.put.responses.Code404Response; import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.UserusernamePut; -import org.openapijsonschematools.client.paths.userusername.put.Responses; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; import java.io.IOException; import java.util.Arrays; diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/Responses.md b/samples/client/petstore/java/docs/paths/userusername/delete/Responses.md deleted file mode 100644 index d4bf4fdb8f5..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/delete/Responses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Responses - -public class Responses - -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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCode200Response -public record EndpointCode200Response( - 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/UserusernameDeleteResponses.md b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md new file mode 100644 index 00000000000..420e675f171 --- /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 | [EndpointCode200Response](#endpointcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCode200Response](#endpointcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCode200Response +public record EndpointCode200Response( + 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/get/Responses.md b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md similarity index 93% rename from samples/client/petstore/java/docs/paths/userusername/get/Responses.md rename to samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md index 6af1f0c3d9a..2acd38f0a4b 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/Responses.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md @@ -1,6 +1,6 @@ -# Responses +# UserusernameGetResponses -public class Responses +public class UserusernameGetResponses A class that contains necessary responses classes - a sealed interface, EndpointResponse, that stores endpoint responses diff --git a/samples/client/petstore/java/docs/paths/userusername/put/Responses.md b/samples/client/petstore/java/docs/paths/userusername/put/Responses.md deleted file mode 100644 index 5841efd5c37..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/Responses.md +++ /dev/null @@ -1,10 +0,0 @@ -# Responses - -public class Responses - -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/Responses.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md similarity index 72% rename from samples/client/petstore/java/docs/paths/storeorderorderid/delete/Responses.md rename to samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md index 5841efd5c37..13a79a9fefe 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/Responses.md +++ b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md @@ -1,6 +1,6 @@ -# Responses +# UserusernamePutResponses -public class Responses +public class UserusernamePutResponses A class that contains necessary responses classes 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 6fac33a0689..3351c5abf40 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class AnotherfakedummyPatch { private static class PatchProvider { private static final String method = "patch"; - public static Responses.EndpointResponse patch( + public static AnotherfakedummyPatchResponses.EndpointResponse patch( PatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse patch( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new AnotherfakedummyPatchResponses.AnotherfakedummyPatchResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default AnotherfakedummyPatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface Model123TestSpecialTagsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse model123TestSpecialTags(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default AnotherfakedummyPatchResponses.EndpointResponse model123TestSpecialTags(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java index ee80dad1860..9698bf5a703 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class AnotherfakedummyPatchResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class AnotherfakedummyPatchResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public AnotherfakedummyPatchResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 628956b236a..6f600a801d5 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 @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.PathParameters; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Parameters; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Responses; +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; @@ -26,7 +26,7 @@ public class CommonparamsubdirDelete { private static class DeleteProvider { private static final String method = "delete"; - public static Responses.EndpointResponse delete( + public static CommonparamsubdirDeleteResponses.EndpointResponse delete( DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -56,7 +56,7 @@ public static Responses.EndpointResponse delete( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new CommonparamsubdirDeleteResponses.CommonparamsubdirDeleteResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -65,7 +65,7 @@ public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default CommonparamsubdirDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -74,7 +74,7 @@ public interface DeleteCommonParamOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse deleteCommonParam(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default CommonparamsubdirDeleteResponses.EndpointResponse deleteCommonParam(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } 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 90204fdba08..0631a615413 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 @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.get.PathParameters; import org.openapijsonschematools.client.paths.commonparamsubdir.get.Parameters; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.Responses; +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; @@ -26,7 +26,7 @@ public class CommonparamsubdirGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static CommonparamsubdirGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new CommonparamsubdirGetResponses.CommonparamsubdirGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default CommonparamsubdirGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface GetCommonParamOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getCommonParam(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default CommonparamsubdirGetResponses.EndpointResponse getCommonParam(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } 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 8664a895055..808f9715930 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 @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.post.PathParameters; import org.openapijsonschematools.client.paths.commonparamsubdir.post.Parameters; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.Responses; +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; @@ -26,7 +26,7 @@ public class CommonparamsubdirPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static CommonparamsubdirPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -56,7 +56,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new CommonparamsubdirPostResponses.CommonparamsubdirPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -65,7 +65,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default CommonparamsubdirPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -74,7 +74,7 @@ public interface PostCommonParamOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse postCommonParam(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default CommonparamsubdirPostResponses.EndpointResponse postCommonParam(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java index 3a0905419c6..22a8e56a9e8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class CommonparamsubdirDeleteResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class CommonparamsubdirDeleteResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public CommonparamsubdirDeleteResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java index a491608f72f..2f747bbf54b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class CommonparamsubdirGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class CommonparamsubdirGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public CommonparamsubdirGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java index 12bcf6c08de..fe8f2a5e46a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class CommonparamsubdirPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class CommonparamsubdirPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public CommonparamsubdirPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 19cfc7bffe7..3f58cfd42f7 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 @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fake.delete.HeaderParameters; import org.openapijsonschematools.client.paths.fake.delete.QueryParameters; import org.openapijsonschematools.client.paths.fake.delete.Parameters; -import org.openapijsonschematools.client.paths.fake.delete.Responses; +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; @@ -29,7 +29,7 @@ public class FakeDelete { private static class DeleteProvider extends AuthApplier { private static final String method = "delete"; - public static Responses.EndpointResponse delete( + public static FakeDeleteResponses.EndpointResponse delete( DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -68,7 +68,7 @@ public static Responses.EndpointResponse delete( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeDeleteResponses.FakeDeleteResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -77,7 +77,7 @@ public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -86,7 +86,7 @@ public interface GroupParametersOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse groupParameters(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeDeleteResponses.EndpointResponse groupParameters(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } 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 22f5c494bca..5c2f0493dbb 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 @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fake.get.QueryParameters; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fake.get.Parameters; -import org.openapijsonschematools.client.paths.fake.get.Responses; +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; @@ -29,7 +29,7 @@ public class FakeGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakeGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -73,7 +73,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeGetResponses.FakeGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -82,7 +82,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -91,7 +91,7 @@ public interface EnumParametersOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse enumParameters(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeGetResponses.EndpointResponse enumParameters(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } 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 f94ccf45a70..e723af46b95 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class FakePatch { private static class PatchProvider { private static final String method = "patch"; - public static Responses.EndpointResponse patch( + public static FakePatchResponses.EndpointResponse patch( PatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse patch( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakePatchResponses.FakePatchResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakePatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface ClientModelOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse clientModel(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakePatchResponses.EndpointResponse clientModel(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } 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 db7d60d079a..7772656bdfe 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 @@ -4,7 +4,7 @@ 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.Responses; +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; @@ -29,7 +29,7 @@ public class FakePost { private static class PostProvider extends AuthApplier { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakePostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -70,7 +70,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakePostResponses.FakePostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -79,7 +79,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -88,7 +88,7 @@ public interface EndpointParametersOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse endpointParameters(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakePostResponses.EndpointResponse endpointParameters(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java index 1ea719d635f..df054653228 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeDeleteResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeDeleteResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeDeleteResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java index 6027d75594f..5e5dac19f7b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -31,9 +31,9 @@ public static final class StatusCode200ResponseDeserializer extends Code200Respo public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java index 5ea188b2480..a5d94a82299 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakePatchResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakePatchResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakePatchResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java index 7a2562b0a60..8e505c5da84 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakePostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -31,9 +31,9 @@ public static final class StatusCode200ResponseDeserializer extends Code200Respo public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakePostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakePostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) 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 371efc6065e..7cf5a80ec37 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 @@ -3,7 +3,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.paths.fakeadditionalpropertieswitharrayofenums.get.Responses; +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; @@ -26,7 +26,7 @@ public class FakeadditionalpropertieswitharrayofenumsGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeadditionalpropertieswitharrayofenumsGetResponses.FakeadditionalpropertieswitharrayofenumsGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface AdditionalPropertiesWithArrayOfEnumsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse additionalPropertiesWithArrayOfEnums(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse additionalPropertiesWithArrayOfEnums(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java index be8ef287de3..0e0c576c903 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeadditionalpropertieswitharrayofenumsGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeadditionalpropertieswitharrayofenumsGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeadditionalpropertieswitharrayofenumsGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 228853cdda1..7c9a7ce3ef7 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class FakebodywithfileschemaPut { private static class PutProvider { private static final String method = "put"; - public static Responses.EndpointResponse put( + public static FakebodywithfileschemaPutResponses.EndpointResponse put( PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse put( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakebodywithfileschemaPutResponses.FakebodywithfileschemaPutResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakebodywithfileschemaPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface BodyWithFileSchemaOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse bodyWithFileSchema(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakebodywithfileschemaPutResponses.EndpointResponse bodyWithFileSchema(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java index 0beb85a7c98..7451f85ae22 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakebodywithfileschemaPutResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakebodywithfileschemaPutResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakebodywithfileschemaPutResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 47438acbd27..0564a540d91 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 @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.QueryParameters; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Parameters; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Responses; +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; @@ -28,7 +28,7 @@ public class FakebodywithqueryparamsPut { private static class PutProvider { private static final String method = "put"; - public static Responses.EndpointResponse put( + public static FakebodywithqueryparamsPutResponses.EndpointResponse put( PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -59,7 +59,7 @@ public static Responses.EndpointResponse put( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakebodywithqueryparamsPutResponses.FakebodywithqueryparamsPutResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -68,7 +68,7 @@ public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakebodywithqueryparamsPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -77,7 +77,7 @@ public interface BodyWithQueryParamsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse bodyWithQueryParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakebodywithqueryparamsPutResponses.EndpointResponse bodyWithQueryParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java index 6109b533036..e7af87d7721 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakebodywithqueryparamsPutResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakebodywithqueryparamsPutResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakebodywithqueryparamsPutResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 f9f6d846fc0..cf14c2349de 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.QueryParameters; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Parameters; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Responses; +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; @@ -25,7 +25,7 @@ public class FakecasesensitiveparamsPut { private static class PutProvider { private static final String method = "put"; - public static Responses.EndpointResponse put( + public static FakecasesensitiveparamsPutResponses.EndpointResponse put( PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -50,7 +50,7 @@ public static Responses.EndpointResponse put( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakecasesensitiveparamsPutResponses.FakecasesensitiveparamsPutResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -59,7 +59,7 @@ public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakecasesensitiveparamsPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -68,7 +68,7 @@ public interface CaseSensitiveParamsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse caseSensitiveParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakecasesensitiveparamsPutResponses.EndpointResponse caseSensitiveParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java index 657dc7e0feb..52ab88e29c6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakecasesensitiveparamsPutResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakecasesensitiveparamsPutResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakecasesensitiveparamsPutResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 12f4487101b..798f569e7ab 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 @@ -4,7 +4,7 @@ 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.Responses; +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; @@ -29,7 +29,7 @@ public class FakeclassnametestPatch { private static class PatchProvider extends AuthApplier { private static final String method = "patch"; - public static Responses.EndpointResponse patch( + public static FakeclassnametestPatchResponses.EndpointResponse patch( PatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -66,7 +66,7 @@ public static Responses.EndpointResponse patch( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeclassnametestPatchResponses.FakeclassnametestPatchResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -75,7 +75,7 @@ public interface PatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeclassnametestPatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -84,7 +84,7 @@ public interface ClassnameOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse classname(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeclassnametestPatchResponses.EndpointResponse classname(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java index 6c0629531b3..e3549ca88d6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeclassnametestPatchResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeclassnametestPatchResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeclassnametestPatchResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 032a418d196..45ca53df281 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.PathParameters; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Parameters; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Responses; +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; @@ -25,7 +25,7 @@ public class FakedeletecoffeeidDelete { private static class DeleteProvider { private static final String method = "delete"; - public static Responses.EndpointResponse delete( + public static FakedeletecoffeeidDeleteResponses.EndpointResponse delete( DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -49,7 +49,7 @@ public static Responses.EndpointResponse delete( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakedeletecoffeeidDeleteResponses.FakedeletecoffeeidDeleteResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -58,7 +58,7 @@ public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakedeletecoffeeidDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,7 +67,7 @@ public interface DeleteCoffeeOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse deleteCoffee(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakedeletecoffeeidDeleteResponses.EndpointResponse deleteCoffee(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java index 992b7a97bbf..e55d8ef7555 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakedeletecoffeeidDeleteResponses { public sealed interface EndpointResponse permits EndpointCode200Response, EndpointCodedefaultResponse {} public record EndpointCode200Response( @@ -36,10 +36,10 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakedeletecoffeeidDeleteResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; - public Responses1() { + public FakedeletecoffeeidDeleteResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 9623e42dcee..49b0d51d461 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakehealth.get.Responses; +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; @@ -23,7 +23,7 @@ public class FakehealthGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakehealthGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -44,7 +44,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakehealthGetResponses.FakehealthGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -53,7 +53,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakehealthGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,7 +62,7 @@ public interface FakeHealthGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse fakeHealthGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakehealthGetResponses.EndpointResponse fakeHealthGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java index 60cdc4cf144..a8e7a507b81 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakehealthGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakehealthGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakehealthGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 28468b74e80..9eaf3f07fe2 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class FakeinlineadditionalpropertiesPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakeinlineadditionalpropertiesPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeinlineadditionalpropertiesPostResponses.FakeinlineadditionalpropertiesPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeinlineadditionalpropertiesPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface InlineAdditionalPropertiesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse inlineAdditionalProperties(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeinlineadditionalpropertiesPostResponses.EndpointResponse inlineAdditionalProperties(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java index aa94f2fbb73..3e4c0925598 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeinlineadditionalpropertiesPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeinlineadditionalpropertiesPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeinlineadditionalpropertiesPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 22863cb15ff..11e1dbb7ecd 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 @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.QueryParameters; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Parameters; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Responses; +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; @@ -28,7 +28,7 @@ public class FakeinlinecompositionPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakeinlinecompositionPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -66,7 +66,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeinlinecompositionPostResponses.FakeinlinecompositionPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -75,7 +75,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeinlinecompositionPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -84,7 +84,7 @@ public interface InlineCompositionOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse inlineComposition(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeinlinecompositionPostResponses.EndpointResponse inlineComposition(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java index ce85d87ccd8..d25ee082c13 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeinlinecompositionPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeinlinecompositionPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeinlinecompositionPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 2e6b830672c..d0ab6bd7642 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 @@ -3,7 +3,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.paths.fakejsonformdata.get.Responses; +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; @@ -26,7 +26,7 @@ public class FakejsonformdataGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakejsonformdataGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakejsonformdataGetResponses.FakejsonformdataGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakejsonformdataGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface JsonFormDataOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse jsonFormData(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakejsonformdataGetResponses.EndpointResponse jsonFormData(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java index f583e035a7d..3716b7bfd85 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakejsonformdataGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakejsonformdataGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakejsonformdataGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 9b5b85fa38a..a13ac896280 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 @@ -3,7 +3,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.paths.fakejsonpatch.patch.Responses; +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; @@ -26,7 +26,7 @@ public class FakejsonpatchPatch { private static class PatchProvider { private static final String method = "patch"; - public static Responses.EndpointResponse patch( + public static FakejsonpatchPatchResponses.EndpointResponse patch( PatchRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse patch( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakejsonpatchPatchResponses.FakejsonpatchPatchResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakejsonpatchPatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface JsonPatchOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse jsonPatch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakejsonpatchPatchResponses.EndpointResponse jsonPatch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java index 8b8c72ea1e2..b3c6bc9ceed 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakejsonpatchPatchResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakejsonpatchPatchResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakejsonpatchPatchResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 aacd7636845..480a7570011 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 @@ -3,7 +3,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.paths.fakejsonwithcharset.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakejsonwithcharsetPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakejsonwithcharsetPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakejsonwithcharsetPostResponses.FakejsonwithcharsetPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakejsonwithcharsetPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface JsonWithCharsetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse jsonWithCharset(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakejsonwithcharsetPostResponses.EndpointResponse jsonWithCharset(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java index c4ad7ae4d22..c0a29dc3246 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakejsonwithcharsetPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakejsonwithcharsetPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakejsonwithcharsetPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 aeb067533d4..585ea8c5680 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 @@ -3,7 +3,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.paths.fakemultiplerequestbodycontenttypes.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakemultiplerequestbodycontenttypesPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakemultiplerequestbodycontenttypesPostResponses.FakemultiplerequestbodycontenttypesPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface MultipleRequestBodyContentTypesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse multipleRequestBodyContentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse multipleRequestBodyContentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java index 0eeb2290be0..dc86e7c0e80 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakemultiplerequestbodycontenttypesPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakemultiplerequestbodycontenttypesPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakemultiplerequestbodycontenttypesPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 81eb4d02de9..78be3b0ebe6 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.Responses; +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; @@ -23,7 +23,7 @@ public class FakemultipleresponsebodiesGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakemultipleresponsebodiesGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -44,7 +44,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakemultipleresponsebodiesGetResponses.FakemultipleresponsebodiesGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -53,7 +53,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakemultipleresponsebodiesGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,7 +62,7 @@ public interface MultipleResponseBodiesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse multipleResponseBodies(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakemultipleresponsebodiesGetResponses.EndpointResponse multipleResponseBodies(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java index 3325b9085a8..700bc23b9f3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakemultipleresponsebodiesGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response, EndpointCode202Response {} public record EndpointCode200Response( @@ -38,9 +38,9 @@ public static final class StatusCode200ResponseDeserializer extends Code200Respo public static final class StatusCode202ResponseDeserializer extends Code202Response.Code202Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakemultipleresponsebodiesGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakemultipleresponsebodiesGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("202", new StatusCode202ResponseDeserializer()) 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 a1b6265d597..99652396c14 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class FakemultiplesecuritiesGet { private static class GetProvider extends AuthApplier { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakemultiplesecuritiesGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakemultiplesecuritiesGetResponses.FakemultiplesecuritiesGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakemultiplesecuritiesGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface MultipleSecuritiesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse multipleSecurities(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakemultiplesecuritiesGetResponses.EndpointResponse multipleSecurities(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java index 94d796bdc3c..67afb058043 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakemultiplesecuritiesGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakemultiplesecuritiesGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakemultiplesecuritiesGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 921f4f8177d..f5c3932efa6 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.paths.fakeobjinquery.get.QueryParameters; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeobjinquery.get.Parameters; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.Responses; +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; @@ -25,7 +25,7 @@ public class FakeobjinqueryGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakeobjinqueryGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeobjinqueryGetResponses.FakeobjinqueryGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeobjinqueryGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface ObjectInQueryOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse objectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeobjinqueryGetResponses.EndpointResponse objectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java index 1cb6c0ca42e..1ee76ea412f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeobjinqueryGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeobjinqueryGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeobjinqueryGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 763bca01138..95d2d096700 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 @@ -8,7 +8,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.PathParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Parameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Responses; +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; @@ -31,7 +31,7 @@ public class Fakeparametercollisions1ababselfabPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static Fakeparametercollisions1ababselfabPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -85,7 +85,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new Fakeparametercollisions1ababselfabPostResponses.Fakeparametercollisions1ababselfabPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -94,7 +94,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default Fakeparametercollisions1ababselfabPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -103,7 +103,7 @@ public interface ParameterCollisionsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse parameterCollisions(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default Fakeparametercollisions1ababselfabPostResponses.EndpointResponse parameterCollisions(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java index 63bb9a16183..42642e9f177 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class Fakeparametercollisions1ababselfabPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class Fakeparametercollisions1ababselfabPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public Fakeparametercollisions1ababselfabPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 195e13ca9be..5c627fe0093 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 @@ -3,7 +3,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.paths.fakepemcontenttype.get.Responses; +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; @@ -26,7 +26,7 @@ public class FakepemcontenttypeGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakepemcontenttypeGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakepemcontenttypeGetResponses.FakepemcontenttypeGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakepemcontenttypeGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface PemContentTypeOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse pemContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakepemcontenttypeGetResponses.EndpointResponse pemContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java index c0cddd94174..a90fd00d1f3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakepemcontenttypeGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakepemcontenttypeGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakepemcontenttypeGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 b227daaa4bf..362abd6421d 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 @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.PathParameters; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.Parameters; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.Responses; +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; @@ -31,7 +31,7 @@ public class FakepetiduploadimagewithrequiredfilePost { private static class PostProvider extends AuthApplier { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -75,7 +75,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakepetiduploadimagewithrequiredfilePostResponses.FakepetiduploadimagewithrequiredfilePostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -84,7 +84,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -93,7 +93,7 @@ public interface UploadFileWithRequiredFileOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadFileWithRequiredFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse uploadFileWithRequiredFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java index ae1b734dfce..e503a883cc0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakepetiduploadimagewithrequiredfilePostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakepetiduploadimagewithrequiredfilePostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakepetiduploadimagewithrequiredfilePostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 414cd89d670..118e62f87a0 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.QueryParameters; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.Parameters; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.Responses; +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; @@ -25,7 +25,7 @@ public class FakequeryparamwithjsoncontenttypeGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -50,7 +50,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakequeryparamwithjsoncontenttypeGetResponses.FakequeryparamwithjsoncontenttypeGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -59,7 +59,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -68,7 +68,7 @@ public interface QueryParamWithJsonContentTypeOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse queryParamWithJsonContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse queryParamWithJsonContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java index 67fcc96df1a..196c779552e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakequeryparamwithjsoncontenttypeGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakequeryparamwithjsoncontenttypeGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakequeryparamwithjsoncontenttypeGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 354dea5bed2..f73a54d32b6 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeredirection.get.Responses; +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; @@ -23,7 +23,7 @@ public class FakeredirectionGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakeredirectionGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -44,7 +44,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeredirectionGetResponses.FakeredirectionGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -53,7 +53,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeredirectionGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,7 +62,7 @@ public interface RedirectionOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse redirection(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeredirectionGetResponses.EndpointResponse redirection(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java index addd1e3384e..118bb131bc9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeredirectionGetResponses { public sealed interface EndpointResponse permits EndpointCode3XXResponse, EndpointCode303Response {} public record EndpointCode3XXResponse( @@ -40,10 +40,10 @@ public sealed interface WildcardCodeResponseDeserializer permits WildcardCode3XX public static final class WildcardCode3XXResponseDeserializer extends Code3XXResponse.Code3XXResponse1 implements WildcardCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeredirectionGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; private final Map wildcardCodeToResponseDeserializer; - public Responses1() { + public FakeredirectionGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("303", new StatusCode303ResponseDeserializer()) ); 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 5434dd89327..d9363ee1369 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.paths.fakerefobjinquery.get.QueryParameters; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Parameters; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Responses; +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; @@ -25,7 +25,7 @@ public class FakerefobjinqueryGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakerefobjinqueryGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefobjinqueryGetResponses.FakerefobjinqueryGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefobjinqueryGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface RefObjectInQueryOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse refObjectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefobjinqueryGetResponses.EndpointResponse refObjectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java index fa40e5c878e..874c6815d48 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefobjinqueryGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefobjinqueryGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefobjinqueryGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 416917b406e..07af16ea8b6 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 @@ -3,7 +3,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.paths.fakerefsarraymodel.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakerefsarraymodelPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakerefsarraymodelPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefsarraymodelPostResponses.FakerefsarraymodelPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsarraymodelPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface ArrayModelOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse arrayModel(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsarraymodelPostResponses.EndpointResponse arrayModel(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java index dbe304b8a0f..47cd5e8a8a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefsarraymodelPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefsarraymodelPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefsarraymodelPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 3958565aedd..2e562146fb3 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 @@ -3,7 +3,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.paths.fakerefsarrayofenums.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakerefsarrayofenumsPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakerefsarrayofenumsPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefsarrayofenumsPostResponses.FakerefsarrayofenumsPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsarrayofenumsPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface ArrayOfEnumsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse arrayOfEnums(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsarrayofenumsPostResponses.EndpointResponse arrayOfEnums(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java index 4e054707d20..bf77112dbe0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefsarrayofenumsPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefsarrayofenumsPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefsarrayofenumsPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 05f6af36cda..48e40534184 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 @@ -3,7 +3,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.paths.fakerefsboolean.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakerefsbooleanPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakerefsbooleanPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefsbooleanPostResponses.FakerefsbooleanPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsbooleanPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface ModelBooleanOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse modelBoolean(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsbooleanPostResponses.EndpointResponse modelBoolean(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java index 755d4d97568..b390ac324fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefsbooleanPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefsbooleanPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefsbooleanPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 9788d5e1521..6b1f0e40677 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 @@ -3,7 +3,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.paths.fakerefscomposedoneofnumberwithvalidations.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakerefscomposedoneofnumberwithvalidationsPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefscomposedoneofnumberwithvalidationsPostResponses.FakerefscomposedoneofnumberwithvalidationsPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface ComposedOneOfDifferentTypesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse composedOneOfDifferentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse composedOneOfDifferentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java index bdc96d2297e..648d833f435 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefscomposedoneofnumberwithvalidationsPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefscomposedoneofnumberwithvalidationsPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefscomposedoneofnumberwithvalidationsPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 60b2f91704f..83b9713931f 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 @@ -3,7 +3,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.paths.fakerefsenum.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakerefsenumPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakerefsenumPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefsenumPostResponses.FakerefsenumPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsenumPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface StringEnumOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse stringEnum(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsenumPostResponses.EndpointResponse stringEnum(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java index 9668bb4535f..9d5b22f3061 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefsenumPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefsenumPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefsenumPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 8b0b99361b5..1107280199a 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class FakerefsmammalPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakerefsmammalPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefsmammalPostResponses.FakerefsmammalPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsmammalPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface MammalOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse mammal(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsmammalPostResponses.EndpointResponse mammal(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java index 47df1517739..71ca375aa6b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefsmammalPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefsmammalPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefsmammalPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 3ceb87fee4b..1d1a42bd13b 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 @@ -3,7 +3,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.paths.fakerefsnumber.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakerefsnumberPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakerefsnumberPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefsnumberPostResponses.FakerefsnumberPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsnumberPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface NumberWithValidationsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse numberWithValidations(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsnumberPostResponses.EndpointResponse numberWithValidations(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java index 64721d3dfb9..498288dc13a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefsnumberPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefsnumberPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefsnumberPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 2002368e4b7..a0d92eb73a6 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 @@ -3,7 +3,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.paths.fakerefsobjectmodelwithrefprops.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakerefsobjectmodelwithrefpropsPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefsobjectmodelwithrefpropsPostResponses.FakerefsobjectmodelwithrefpropsPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface ObjectModelWithRefPropsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse objectModelWithRefProps(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse objectModelWithRefProps(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java index cf4c1d15769..d92c415eef7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefsobjectmodelwithrefpropsPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefsobjectmodelwithrefpropsPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefsobjectmodelwithrefpropsPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 247f7af301c..adc7818a1fa 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 @@ -3,7 +3,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.paths.fakerefsstring.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakerefsstringPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakerefsstringPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakerefsstringPostResponses.FakerefsstringPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsstringPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface ModelStringOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse modelString(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakerefsstringPostResponses.EndpointResponse modelString(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java index c2d043e5a24..f979f5a867e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakerefsstringPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakerefsstringPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakerefsstringPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 7eb20d8061c..284c2b3309e 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.Responses; +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; @@ -23,7 +23,7 @@ public class FakeresponsewithoutschemaGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakeresponsewithoutschemaGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -44,7 +44,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeresponsewithoutschemaGetResponses.FakeresponsewithoutschemaGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -53,7 +53,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeresponsewithoutschemaGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,7 +62,7 @@ public interface ResponseWithoutSchemaOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse responseWithoutSchema(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeresponsewithoutschemaGetResponses.EndpointResponse responseWithoutSchema(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java index 829ad9e8208..da0b9517ef9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeresponsewithoutschemaGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeresponsewithoutschemaGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeresponsewithoutschemaGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 b8d981cda57..b8084801f10 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.QueryParameters; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Parameters; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Responses; +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; @@ -25,7 +25,7 @@ public class FaketestqueryparamtersPut { private static class PutProvider { private static final String method = "put"; - public static Responses.EndpointResponse put( + public static FaketestqueryparamtersPutResponses.EndpointResponse put( PutRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -50,7 +50,7 @@ public static Responses.EndpointResponse put( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FaketestqueryparamtersPutResponses.FaketestqueryparamtersPutResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -59,7 +59,7 @@ public interface PutOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FaketestqueryparamtersPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -68,7 +68,7 @@ public interface QueryParameterCollectionFormatOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse queryParameterCollectionFormat(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FaketestqueryparamtersPutResponses.EndpointResponse queryParameterCollectionFormat(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java index e24c9f4f38b..220d62e5fdc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FaketestqueryparamtersPutResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FaketestqueryparamtersPutResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FaketestqueryparamtersPutResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 c5149d3221e..40b05b37b3a 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class FakeuploaddownloadfilePost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakeuploaddownloadfilePostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeuploaddownloadfilePostResponses.FakeuploaddownloadfilePostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeuploaddownloadfilePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface UploadDownloadFileOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadDownloadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeuploaddownloadfilePostResponses.EndpointResponse uploadDownloadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java index 2a8598335a0..a05b0ba62b8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeuploaddownloadfilePostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeuploaddownloadfilePostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeuploaddownloadfilePostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 08f38ddc0f6..4a90826a6bd 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 @@ -3,7 +3,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.paths.fakeuploadfile.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakeuploadfilePost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakeuploadfilePostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeuploadfilePostResponses.FakeuploadfilePostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeuploadfilePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface UploadFileOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeuploadfilePostResponses.EndpointResponse uploadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java index d57c98d7c24..df35e516fc2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeuploadfilePostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeuploadfilePostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeuploadfilePostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 e0534c7274e..e35ade51c50 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 @@ -3,7 +3,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.paths.fakeuploadfiles.post.Responses; +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; @@ -26,7 +26,7 @@ public class FakeuploadfilesPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static FakeuploadfilesPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakeuploadfilesPostResponses.FakeuploadfilesPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeuploadfilesPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface UploadFilesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadFiles(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakeuploadfilesPostResponses.EndpointResponse uploadFiles(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java index 2507eff62d3..6fa72c33c62 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakeuploadfilesPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakeuploadfilesPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public FakeuploadfilesPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 efb480b102e..1f7aab70481 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.Responses; +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; @@ -23,7 +23,7 @@ public class FakewildcardresponsesGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FakewildcardresponsesGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -44,7 +44,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FakewildcardresponsesGetResponses.FakewildcardresponsesGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -53,7 +53,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakewildcardresponsesGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,7 +62,7 @@ public interface WildCardResponsesOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse wildCardResponses(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FakewildcardresponsesGetResponses.EndpointResponse wildCardResponses(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java similarity index 97% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java index 70451e1cb4c..bacc1ffae42 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FakewildcardresponsesGetResponses { public sealed interface EndpointResponse permits EndpointCode1XXResponse, EndpointCode2XXResponse, EndpointCode200Response, EndpointCode3XXResponse {} public record EndpointCode1XXResponse( @@ -66,10 +66,10 @@ public static final class WildcardCode4XXResponseDeserializer extends Code4XXRes public static final class WildcardCode5XXResponseDeserializer extends Code5XXResponse.Code5XXResponse1 implements WildcardCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FakewildcardresponsesGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; private final Map wildcardCodeToResponseDeserializer; - public Responses1() { + public FakewildcardresponsesGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 index dfe0fbe7c58..e5828e4cfe5 100644 --- 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; -import org.openapijsonschematools.client.paths.foo.get.Responses; +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; @@ -23,7 +23,7 @@ public class FooGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static FooGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -44,7 +44,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new FooGetResponses.FooGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -53,7 +53,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FooGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,7 +62,7 @@ public interface FooGetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse fooGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default FooGetResponses.EndpointResponse fooGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java index 63a2d1d6c22..f6397269a6b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class FooGetResponses { public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} public record EndpointCodedefaultResponse( @@ -23,9 +23,9 @@ public record EndpointCodedefaultResponse( ) implements EndpointResponse, ApiResponse{ } - public static final class Responses1 implements ResponsesDeserializer { + public static final class FooGetResponses1 implements ResponsesDeserializer { private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; - public Responses1() { + public FooGetResponses1() { this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); } 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 0e520939899..1f9d0dc8431 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 @@ -4,7 +4,7 @@ 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.Responses; +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; @@ -29,7 +29,7 @@ public class PetPost { private static class PostProvider extends AuthApplier { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static PetPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -66,7 +66,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new PetPostResponses.PetPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -75,7 +75,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -84,7 +84,7 @@ public interface AddPetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse addPet(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetPostResponses.EndpointResponse addPet(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } 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 81f1c2a8413..2fbf38a193b 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 @@ -4,7 +4,7 @@ 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.Responses; +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; @@ -66,8 +66,7 @@ public static Void put( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); + return (Void) null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java index 1e44c96d53e..b3d94dbc363 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class PetPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -31,9 +31,9 @@ public static final class StatusCode200ResponseDeserializer extends Code200Respo public static final class StatusCode405ResponseDeserializer extends Code405Response.Code405Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class PetPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public PetPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("405", new StatusCode405ResponseDeserializer()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java similarity index 96% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java index c5ef091d53a..9e2b6008b2b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class PetPutResponses { public sealed interface StatusCodeResponseDeserializer permits StatusCode400ResponseDeserializer, StatusCode404ResponseDeserializer, StatusCode405ResponseDeserializer {} @@ -25,9 +25,9 @@ public static final class StatusCode404ResponseDeserializer extends Code404Respo public static final class StatusCode405ResponseDeserializer extends Code405Response.Code405Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class PetPutResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public PetPutResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()), new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()), 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 e0b092651e7..a077c75b3ad 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 @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetSecurityInfo; import org.openapijsonschematools.client.paths.petfindbystatus.get.QueryParameters; import org.openapijsonschematools.client.paths.petfindbystatus.get.Parameters; -import org.openapijsonschematools.client.paths.petfindbystatus.get.Responses; +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; @@ -28,7 +28,7 @@ public class PetfindbystatusGet { private static class GetProvider extends AuthApplier { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static PetfindbystatusGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -63,7 +63,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new PetfindbystatusGetResponses.PetfindbystatusGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -72,7 +72,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetfindbystatusGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -81,7 +81,7 @@ public interface FindPetsByStatusOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse findPetsByStatus(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetfindbystatusGetResponses.EndpointResponse findPetsByStatus(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java index 4e008e2a33b..e19dffeea05 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class PetfindbystatusGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -31,9 +31,9 @@ public static final class StatusCode200ResponseDeserializer extends Code200Respo public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class PetfindbystatusGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public PetfindbystatusGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()) 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 ff8c9fab572..ddc547969c3 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 @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.QueryParameters; import org.openapijsonschematools.client.paths.petfindbytags.get.Parameters; -import org.openapijsonschematools.client.paths.petfindbytags.get.Responses; +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; @@ -28,7 +28,7 @@ public class PetfindbytagsGet { private static class GetProvider extends AuthApplier { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static PetfindbytagsGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -63,7 +63,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new PetfindbytagsGetResponses.PetfindbytagsGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -72,7 +72,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetfindbytagsGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -81,7 +81,7 @@ public interface FindPetsByTagsOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse findPetsByTags(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetfindbytagsGetResponses.EndpointResponse findPetsByTags(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java index b29be24d716..bacd20a2c40 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class PetfindbytagsGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -31,9 +31,9 @@ public static final class StatusCode200ResponseDeserializer extends Code200Respo public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class PetfindbytagsGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public PetfindbytagsGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()) 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 1873dc9d56e..f0b832611d7 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 @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PathParameters; import org.openapijsonschematools.client.paths.petpetid.delete.Parameters; -import org.openapijsonschematools.client.paths.petpetid.delete.Responses; +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; @@ -69,8 +69,7 @@ public static Void delete( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); + return (Void) null; } } 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 7bb0917492e..a6ff86916b5 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 @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.get.PathParameters; import org.openapijsonschematools.client.paths.petpetid.get.Parameters; -import org.openapijsonschematools.client.paths.petpetid.get.Responses; +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; @@ -28,7 +28,7 @@ public class PetpetidGet { private static class GetProvider extends AuthApplier { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static PetpetidGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -62,7 +62,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new PetpetidGetResponses.PetpetidGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -71,7 +71,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetpetidGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -80,7 +80,7 @@ public interface GetPetByIdOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getPetById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetpetidGetResponses.EndpointResponse getPetById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } 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 933a1bfa54e..dcda03bc600 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 @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.post.PathParameters; import org.openapijsonschematools.client.paths.petpetid.post.Parameters; -import org.openapijsonschematools.client.paths.petpetid.post.Responses; +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; @@ -75,8 +75,7 @@ public static Void post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); + return (Void) null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java index 6c5d7573a1a..84aa9018aac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java @@ -12,16 +12,16 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class PetpetidDeleteResponses { public sealed interface StatusCodeResponseDeserializer permits StatusCode400ResponseDeserializer {} public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class PetpetidDeleteResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public PetpetidDeleteResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()) ); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java index b0be031e585..1c443a27190 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java @@ -15,7 +15,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class PetpetidGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -34,9 +34,9 @@ public static final class StatusCode400ResponseDeserializer extends Code400Respo public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class PetpetidGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public PetpetidGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java index 0f129ddcc1d..8935b3b371b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java @@ -12,16 +12,16 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class PetpetidPostResponses { public sealed interface StatusCodeResponseDeserializer permits StatusCode405ResponseDeserializer {} public static final class StatusCode405ResponseDeserializer extends Code405Response.Code405Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class PetpetidPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public PetpetidPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("405", new StatusCode405ResponseDeserializer()) ); 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 898517c21d7..a78928eb481 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 @@ -6,7 +6,7 @@ import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PathParameters; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Parameters; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Responses; +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; @@ -31,7 +31,7 @@ public class PetpetiduploadimagePost { private static class PostProvider extends AuthApplier { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static PetpetiduploadimagePostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -75,7 +75,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new PetpetiduploadimagePostResponses.PetpetiduploadimagePostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -84,7 +84,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetpetiduploadimagePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -93,7 +93,7 @@ public interface UploadImageOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse uploadImage(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default PetpetiduploadimagePostResponses.EndpointResponse uploadImage(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java index ed5b656f912..45fbcc9ee28 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class PetpetiduploadimagePostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -29,9 +29,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class PetpetiduploadimagePostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public PetpetiduploadimagePostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 3d5509c8613..6d03a9384b5 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.solidus.get.Responses; +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; @@ -23,7 +23,7 @@ public class SolidusGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static SolidusGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -44,7 +44,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new SolidusGetResponses.SolidusGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -53,7 +53,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default SolidusGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,7 +62,7 @@ public interface SlashRouteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse slashRoute(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default SolidusGetResponses.EndpointResponse slashRoute(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java index 2c1b302e62b..57497f411e3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class SolidusGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -28,9 +28,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class SolidusGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public SolidusGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 9376fbc394f..13cf7cda7a6 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class StoreinventoryGet { private static class GetProvider extends AuthApplier { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static StoreinventoryGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -57,7 +57,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new StoreinventoryGetResponses.StoreinventoryGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -66,7 +66,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default StoreinventoryGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -75,7 +75,7 @@ public interface GetInventoryOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getInventory(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default StoreinventoryGetResponses.EndpointResponse getInventory(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java index 1390a3b9d94..d3baa1a1fdf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class StoreinventoryGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -29,9 +29,9 @@ public sealed interface StatusCodeResponseDeserializer permits StatusCode200Resp public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class StoreinventoryGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public StoreinventoryGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) ); 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 0220ab4d481..7a9de50a73b 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class StoreorderPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static StoreorderPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new StoreorderPostResponses.StoreorderPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default StoreorderPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface PlaceOrderOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse placeOrder(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default StoreorderPostResponses.EndpointResponse placeOrder(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java index c62c12edaf2..85261c84562 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class StoreorderPostResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -31,9 +31,9 @@ public static final class StatusCode200ResponseDeserializer extends Code200Respo public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class StoreorderPostResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public StoreorderPostResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()) 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 4f6a0f370d6..8aef6dad6ac 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.delete.PathParameters; import org.openapijsonschematools.client.paths.storeorderorderid.delete.Parameters; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.Responses; +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; @@ -49,8 +49,7 @@ public static Void delete( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); + return (Void) null; } } 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 2618e19f3a9..9c75ea1a25a 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.get.PathParameters; import org.openapijsonschematools.client.paths.storeorderorderid.get.Parameters; -import org.openapijsonschematools.client.paths.storeorderorderid.get.Responses; +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; @@ -25,7 +25,7 @@ public class StoreorderorderidGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static StoreorderorderidGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -49,7 +49,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new StoreorderorderidGetResponses.StoreorderorderidGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -58,7 +58,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default StoreorderorderidGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,7 +67,7 @@ public interface GetOrderByIdOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getOrderById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default StoreorderorderidGetResponses.EndpointResponse getOrderById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java index 5e9f34d93b7..dcf1f68979c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class StoreorderorderidDeleteResponses { public sealed interface StatusCodeResponseDeserializer permits StatusCode400ResponseDeserializer, StatusCode404ResponseDeserializer {} @@ -22,9 +22,9 @@ public static final class StatusCode400ResponseDeserializer extends Code400Respo public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class StoreorderorderidDeleteResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public StoreorderorderidDeleteResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()), new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java index 5c23d3cc14c..bf189d4503f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java @@ -15,7 +15,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class StoreorderorderidGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -34,9 +34,9 @@ public static final class StatusCode400ResponseDeserializer extends Code400Respo public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class StoreorderorderidGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public StoreorderorderidGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()), 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 f073b0a6aac..9881c39c507 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class UserPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static UserPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new UserPostResponses.UserPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface CreateUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse createUser(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserPostResponses.EndpointResponse createUser(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java index c1cc62b43da..51561571bbd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class UserPostResponses { public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} public record EndpointCodedefaultResponse( @@ -23,9 +23,9 @@ public record EndpointCodedefaultResponse( ) implements EndpointResponse, ApiResponse{ } - public static final class Responses1 implements ResponsesDeserializer { + public static final class UserPostResponses1 implements ResponsesDeserializer { private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; - public Responses1() { + public UserPostResponses1() { this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); } 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 8127c78e16b..e3c07ef1234 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class UsercreatewitharrayPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static UsercreatewitharrayPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new UsercreatewitharrayPostResponses.UsercreatewitharrayPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UsercreatewitharrayPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface CreateUsersWithArrayInputOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse createUsersWithArrayInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UsercreatewitharrayPostResponses.EndpointResponse createUsersWithArrayInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java index 79c988e4f1b..75270caea9f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class UsercreatewitharrayPostResponses { public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} public record EndpointCodedefaultResponse( @@ -23,9 +23,9 @@ public record EndpointCodedefaultResponse( ) implements EndpointResponse, ApiResponse{ } - public static final class Responses1 implements ResponsesDeserializer { + public static final class UsercreatewitharrayPostResponses1 implements ResponsesDeserializer { private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; - public Responses1() { + public UsercreatewitharrayPostResponses1() { this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); } 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 f331d91c4af..0d346b0d866 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 @@ -3,7 +3,7 @@ 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.Responses; +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; @@ -26,7 +26,7 @@ public class UsercreatewithlistPost { private static class PostProvider { private static final String method = "post"; - public static Responses.EndpointResponse post( + public static UsercreatewithlistPostResponses.EndpointResponse post( PostRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -53,7 +53,7 @@ public static Responses.EndpointResponse post( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new UsercreatewithlistPostResponses.UsercreatewithlistPostResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -62,7 +62,7 @@ public interface PostOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UsercreatewithlistPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -71,7 +71,7 @@ public interface CreateUsersWithListInputOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse createUsersWithListInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UsercreatewithlistPostResponses.EndpointResponse createUsersWithListInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java index 8c24f5ea31e..b35c3394c5d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class UsercreatewithlistPostResponses { public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} public record EndpointCodedefaultResponse( @@ -23,9 +23,9 @@ public record EndpointCodedefaultResponse( ) implements EndpointResponse, ApiResponse{ } - public static final class Responses1 implements ResponsesDeserializer { + public static final class UsercreatewithlistPostResponses1 implements ResponsesDeserializer { private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; - public Responses1() { + public UsercreatewithlistPostResponses1() { this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); } 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 35880663213..83b4043234d 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userlogin.get.QueryParameters; import org.openapijsonschematools.client.paths.userlogin.get.Parameters; -import org.openapijsonschematools.client.paths.userlogin.get.Responses; +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; @@ -25,7 +25,7 @@ public class UserloginGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static UserloginGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -50,7 +50,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new UserloginGetResponses.UserloginGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -59,7 +59,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserloginGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -68,7 +68,7 @@ public interface LoginUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse loginUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserloginGetResponses.EndpointResponse loginUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java index 0df32af2421..847cf803446 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java @@ -15,7 +15,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class UserloginGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -32,9 +32,9 @@ public static final class StatusCode200ResponseDeserializer extends Code200Respo public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class UserloginGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public UserloginGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()) 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 dbd4459c6bc..b55850dcc33 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.userlogout.get.Responses; +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; @@ -23,7 +23,7 @@ public class UserlogoutGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static UserlogoutGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -44,7 +44,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new UserlogoutGetResponses.UserlogoutGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -53,7 +53,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserlogoutGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -62,7 +62,7 @@ public interface LogoutUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse logoutUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserlogoutGetResponses.EndpointResponse logoutUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java index 0093801140c..224e5c5e986 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class UserlogoutGetResponses { public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} public record EndpointCodedefaultResponse( @@ -23,9 +23,9 @@ public record EndpointCodedefaultResponse( ) implements EndpointResponse, ApiResponse{ } - public static final class Responses1 implements ResponsesDeserializer { + public static final class UserlogoutGetResponses1 implements ResponsesDeserializer { private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; - public Responses1() { + public UserlogoutGetResponses1() { this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); } 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 9b1a81f9a79..baa7e1eea06 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.delete.PathParameters; import org.openapijsonschematools.client.paths.userusername.delete.Parameters; -import org.openapijsonschematools.client.paths.userusername.delete.Responses; +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; @@ -25,7 +25,7 @@ public class UserusernameDelete { private static class DeleteProvider { private static final String method = "delete"; - public static Responses.EndpointResponse delete( + public static UserusernameDeleteResponses.EndpointResponse delete( DeleteRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -49,7 +49,7 @@ public static Responses.EndpointResponse delete( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new UserusernameDeleteResponses.UserusernameDeleteResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -58,7 +58,7 @@ public interface DeleteOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserusernameDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,7 +67,7 @@ public interface DeleteUserOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse deleteUser(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserusernameDeleteResponses.EndpointResponse deleteUser(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } 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 c15f4ad9a8e..5ac6836ba4e 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 @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.get.PathParameters; import org.openapijsonschematools.client.paths.userusername.get.Parameters; -import org.openapijsonschematools.client.paths.userusername.get.Responses; +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; @@ -25,7 +25,7 @@ public class UserusernameGet { private static class GetProvider { private static final String method = "get"; - public static Responses.EndpointResponse get( + public static UserusernameGetResponses.EndpointResponse get( GetRequest request, ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration, @@ -49,7 +49,7 @@ public static Responses.EndpointResponse get( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + var responsesDeserializer = new UserusernameGetResponses.UserusernameGetResponses1(); return responsesDeserializer.deserialize(response, schemaConfiguration); } } @@ -58,7 +58,7 @@ public interface GetOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserusernameGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } @@ -67,7 +67,7 @@ public interface GetUserByNameOperation { ApiConfiguration getApiConfiguration(); SchemaConfiguration getSchemaConfiguration(); HttpClient getClient(); - default Responses.EndpointResponse getUserByName(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + default UserusernameGetResponses.EndpointResponse getUserByName(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); } } 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 dae55f1fa53..3805db491c3 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 @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; import org.openapijsonschematools.client.paths.userusername.put.PathParameters; import org.openapijsonschematools.client.paths.userusername.put.Parameters; -import org.openapijsonschematools.client.paths.userusername.put.Responses; +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; @@ -58,8 +58,7 @@ public static Void put( request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); + return (Void) null; } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java index e5020958495..b414e03b63f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java @@ -14,7 +14,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class UserusernameDeleteResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -31,9 +31,9 @@ public static final class StatusCode200ResponseDeserializer extends Code200Respo public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class UserusernameDeleteResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public UserusernameDeleteResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java similarity index 95% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java index 320fedb631d..f4235252b70 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java @@ -15,7 +15,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class UserusernameGetResponses { public sealed interface EndpointResponse permits EndpointCode200Response {} public record EndpointCode200Response( @@ -34,9 +34,9 @@ public static final class StatusCode400ResponseDeserializer extends Code400Respo public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class UserusernameGetResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public UserusernameGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()), new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Responses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Responses.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java index 732033d8a06..b28806d632c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Responses.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Responses { +public class UserusernamePutResponses { public sealed interface StatusCodeResponseDeserializer permits StatusCode400ResponseDeserializer, StatusCode404ResponseDeserializer {} @@ -22,9 +22,9 @@ public static final class StatusCode400ResponseDeserializer extends Code400Respo public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 implements StatusCodeResponseDeserializer { } - public static final class Responses1 implements ResponsesDeserializer { + public static final class UserusernamePutResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - public Responses1() { + public UserusernamePutResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()), new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index acc02e1600a..b7ba95d02ec 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -2898,7 +2898,7 @@ public CodegenOperation fromOperation(Operation operation, String jsonPath, Link if (wildcardCodeResponses != null) { wildcardCodeResponses = new TreeMap<>(wildcardCodeResponses); } - CodegenKey responsesJsonPathPiece = getKey("responses", "misc", responsesJsonPath); + CodegenKey responsesJsonPathPiece = getKey("responses", "responses", responsesJsonPath); responses = new CodegenMap<>(responsesMap, responsesJsonPathPiece, getSubpackage(responsesJsonPath), getPathFromDocRoot(responsesJsonPath)); } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 2f546258c10..a80f836ed35 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -1159,7 +1159,8 @@ public String toResponseModuleName(String componentName, String jsonPath) { switch (pathPieces.length) { case 5: // #/paths/somePath/verb/responses - return "Responses"; + String prefix = getPathClassNamePrefix(jsonPath); + return prefix + "Responses"; case 6: // #/paths/somePath/verb/responses/200 return toModelName("Code"+componentName+"Response", null); @@ -2624,6 +2625,12 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St if (jsonPath.startsWith("#/components/responses/")) { return toModelName(lastJsonPathFragment, null); } else { + if (jsonPath.endsWith("/responses")) { + String prefix = getPathClassNamePrefix(jsonPath); + // #/paths/somePath/get/responses + return prefix + "Responses"; + } + // #/paths/somePath/get/responses/200 return toModelName("Code"+lastJsonPathFragment+"Response", null); } case SERVER: diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs index 97e731bbef9..9250c991254 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/Operation.hbs @@ -187,8 +187,12 @@ public class {{jsonPathPiece.pascalCase}} { request.timeout ); var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Responses.Responses1(); + {{#if nonErrorResponses }} + var responsesDeserializer = new {{#with responses}}{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1{{/with}}(); return responsesDeserializer.deserialize(response, schemaConfiguration); + {{else}} + return (Void) null; + {{/if}} } } From e3b50edff16bfe32157d30cf7b8cebd6cc41a6e3 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 10 Apr 2024 14:52:02 -0700 Subject: [PATCH 13/21] Updates operation XParameters schema class names for java --- .../petstore/java/.openapi-generator/FILES | 144 +- .../CommonparamsubdirDelete.md | 22 +- .../commonparamsubdir/CommonparamsubdirGet.md | 22 +- .../CommonparamsubdirPost.md | 22 +- ...CommonparamsubdirDeleteHeaderParameters.md | 252 +++ .../CommonparamsubdirDeletePathParameters.md | 269 +++ .../delete/HeaderParameters.md | 252 --- .../delete/PathParameters.md | 269 --- .../get/CommonparamsubdirGetPathParameters.md | 269 +++ .../CommonparamsubdirGetQueryParameters.md | 252 +++ .../commonparamsubdir/get/PathParameters.md | 269 --- .../commonparamsubdir/get/QueryParameters.md | 252 --- .../CommonparamsubdirPostHeaderParameters.md | 252 +++ .../CommonparamsubdirPostPathParameters.md | 269 +++ .../post/HeaderParameters.md | 252 --- .../commonparamsubdir/post/PathParameters.md | 269 --- .../java/docs/paths/fake/FakeDelete.md | 32 +- .../petstore/java/docs/paths/fake/FakeGet.md | 12 +- .../fake/delete/FakeDeleteHeaderParameters.md | 274 +++ .../fake/delete/FakeDeleteQueryParameters.md | 321 ++++ .../paths/fake/delete/HeaderParameters.md | 274 --- .../docs/paths/fake/delete/QueryParameters.md | 321 ---- .../paths/fake/get/FakeGetHeaderParameters.md | 260 +++ .../paths/fake/get/FakeGetQueryParameters.md | 278 +++ .../docs/paths/fake/get/HeaderParameters.md | 260 --- .../docs/paths/fake/get/QueryParameters.md | 278 --- .../FakebodywithqueryparamsPut.md | 16 +- ...kebodywithqueryparamsPutQueryParameters.md | 268 +++ .../put/QueryParameters.md | 268 --- .../FakecasesensitiveparamsPut.md | 14 +- ...kecasesensitiveparamsPutQueryParameters.md | 375 ++++ .../put/QueryParameters.md | 375 ---- .../FakedeletecoffeeidDelete.md | 14 +- .../FakedeletecoffeeidDeletePathParameters.md | 268 +++ .../delete/PathParameters.md | 268 --- .../FakeinlinecompositionPost.md | 6 +- ...akeinlinecompositionPostQueryParameters.md | 264 +++ .../post/QueryParameters.md | 264 --- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 6 +- .../get/FakeobjinqueryGetQueryParameters.md | 258 +++ .../fakeobjinquery/get/QueryParameters.md | 258 --- .../Fakeparametercollisions1ababselfabPost.md | 38 +- .../post/CookieParameters.md | 267 --- ...llisions1ababselfabPostCookieParameters.md | 267 +++ ...llisions1ababselfabPostHeaderParameters.md | 263 +++ ...collisions1ababselfabPostPathParameters.md | 808 +++++++++ ...ollisions1ababselfabPostQueryParameters.md | 267 +++ .../post/HeaderParameters.md | 263 --- .../post/PathParameters.md | 808 --------- .../post/QueryParameters.md | 267 --- ...akepetiduploadimagewithrequiredfilePost.md | 14 +- ...imagewithrequiredfilePostPathParameters.md | 271 +++ .../post/PathParameters.md | 271 --- .../FakequeryparamwithjsoncontenttypeGet.md | 14 +- ...amwithjsoncontenttypeGetQueryParameters.md | 274 +++ .../get/QueryParameters.md | 274 --- .../fakerefobjinquery/FakerefobjinqueryGet.md | 6 +- .../FakerefobjinqueryGetQueryParameters.md | 258 +++ .../fakerefobjinquery/get/QueryParameters.md | 258 --- .../FaketestqueryparamtersPut.md | 14 +- ...aketestqueryparamtersPutQueryParameters.md | 1419 +++++++++++++++ .../put/QueryParameters.md | 1419 --------------- .../petfindbystatus/PetfindbystatusGet.md | 14 +- .../get/PetfindbystatusGetQueryParameters.md | 271 +++ .../petfindbystatus/get/QueryParameters.md | 271 --- .../paths/petfindbytags/PetfindbytagsGet.md | 14 +- .../get/PetfindbytagsGetQueryParameters.md | 271 +++ .../petfindbytags/get/QueryParameters.md | 271 --- .../docs/paths/petpetid/PetpetidDelete.md | 22 +- .../java/docs/paths/petpetid/PetpetidGet.md | 14 +- .../java/docs/paths/petpetid/PetpetidPost.md | 14 +- .../paths/petpetid/delete/HeaderParameters.md | 252 --- .../paths/petpetid/delete/PathParameters.md | 271 --- .../delete/PetpetidDeleteHeaderParameters.md | 252 +++ .../delete/PetpetidDeletePathParameters.md | 271 +++ .../docs/paths/petpetid/get/PathParameters.md | 271 --- .../petpetid/get/PetpetidGetPathParameters.md | 271 +++ .../paths/petpetid/post/PathParameters.md | 271 --- .../post/PetpetidPostPathParameters.md | 271 +++ .../PetpetiduploadimagePost.md | 14 +- .../post/PathParameters.md | 271 --- .../PetpetiduploadimagePostPathParameters.md | 271 +++ .../StoreorderorderidDelete.md | 14 +- .../storeorderorderid/StoreorderorderidGet.md | 14 +- .../delete/PathParameters.md | 268 --- .../StoreorderorderidDeletePathParameters.md | 268 +++ .../storeorderorderid/get/PathParameters.md | 271 --- .../get/StoreorderorderidGetPathParameters.md | 271 +++ .../java/docs/paths/userlogin/UserloginGet.md | 14 +- .../paths/userlogin/get/QueryParameters.md | 304 ---- .../get/UserloginGetQueryParameters.md | 304 ++++ .../paths/userusername/UserusernameDelete.md | 14 +- .../paths/userusername/UserusernameGet.md | 14 +- .../paths/userusername/UserusernamePut.md | 16 +- .../userusername/delete/PathParameters.md | 268 --- .../UserusernameDeletePathParameters.md | 268 +++ .../paths/userusername/get/PathParameters.md | 268 --- .../get/UserusernameGetPathParameters.md | 268 +++ .../paths/userusername/put/PathParameters.md | 268 --- .../put/UserusernamePutPathParameters.md | 268 +++ .../CommonparamsubdirDelete.java | 20 +- .../CommonparamsubdirGet.java | 20 +- .../CommonparamsubdirPost.java | 20 +- ...monparamsubdirDeleteHeaderParameters.java} | 58 +- ...ommonparamsubdirDeletePathParameters.java} | 66 +- ...> CommonparamsubdirGetPathParameters.java} | 66 +- ... CommonparamsubdirGetQueryParameters.java} | 58 +- ...ommonparamsubdirPostHeaderParameters.java} | 58 +- ... CommonparamsubdirPostPathParameters.java} | 66 +- .../client/paths/fake/FakeDelete.java | 20 +- .../client/paths/fake/FakeGet.java | 12 +- ...s.java => FakeDeleteHeaderParameters.java} | 76 +- ...rs.java => FakeDeleteQueryParameters.java} | 118 +- ...ters.java => FakeGetHeaderParameters.java} | 68 +- ...eters.java => FakeGetQueryParameters.java} | 104 +- .../FakebodywithqueryparamsPut.java | 10 +- ...odywithqueryparamsPutQueryParameters.java} | 64 +- .../FakecasesensitiveparamsPut.java | 10 +- ...asesensitiveparamsPutQueryParameters.java} | 144 +- .../FakedeletecoffeeidDelete.java | 10 +- ...kedeletecoffeeidDeletePathParameters.java} | 64 +- .../FakeinlinecompositionPost.java | 6 +- ...inlinecompositionPostQueryParameters.java} | 82 +- .../fakeobjinquery/FakeobjinqueryGet.java | 6 +- ... => FakeobjinqueryGetQueryParameters.java} | 58 +- ...akeparametercollisions1ababselfabPost.java | 40 +- ...sions1ababselfabPostCookieParameters.java} | 90 +- ...sions1ababselfabPostHeaderParameters.java} | 82 +- ...llisions1ababselfabPostPathParameters.java | 819 +++++++++ ...isions1ababselfabPostQueryParameters.java} | 90 +- .../post/PathParameters.java | 819 --------- ...epetiduploadimagewithrequiredfilePost.java | 10 +- ...gewithrequiredfilePostPathParameters.java} | 70 +- .../FakequeryparamwithjsoncontenttypeGet.java | 10 +- ...ithjsoncontenttypeGetQueryParameters.java} | 80 +- .../FakerefobjinqueryGet.java | 6 +- ... FakerefobjinqueryGetQueryParameters.java} | 58 +- .../FaketestqueryparamtersPut.java | 10 +- ...etestqueryparamtersPutQueryParameters.java | 1515 +++++++++++++++++ .../put/QueryParameters.java | 1515 ----------------- .../petfindbystatus/PetfindbystatusGet.java | 10 +- ...=> PetfindbystatusGetQueryParameters.java} | 64 +- .../paths/petfindbytags/PetfindbytagsGet.java | 10 +- ...a => PetfindbytagsGetQueryParameters.java} | 64 +- .../client/paths/petpetid/PetpetidDelete.java | 20 +- .../client/paths/petpetid/PetpetidGet.java | 10 +- .../client/paths/petpetid/PetpetidPost.java | 10 +- ...va => PetpetidDeleteHeaderParameters.java} | 58 +- ...java => PetpetidDeletePathParameters.java} | 70 +- ...rs.java => PetpetidGetPathParameters.java} | 70 +- ...s.java => PetpetidPostPathParameters.java} | 70 +- .../PetpetiduploadimagePost.java | 10 +- ...etpetiduploadimagePostPathParameters.java} | 70 +- .../StoreorderorderidDelete.java | 10 +- .../StoreorderorderidGet.java | 10 +- ...toreorderorderidDeletePathParameters.java} | 64 +- ...> StoreorderorderidGetPathParameters.java} | 70 +- .../client/paths/userlogin/UserloginGet.java | 10 +- ....java => UserloginGetQueryParameters.java} | 90 +- .../userusername/UserusernameDelete.java | 10 +- .../paths/userusername/UserusernameGet.java | 10 +- .../paths/userusername/UserusernamePut.java | 10 +- ... => UserusernameDeletePathParameters.java} | 64 +- ...ava => UserusernameGetPathParameters.java} | 64 +- ...ava => UserusernamePutPathParameters.java} | 64 +- .../codegen/generators/DefaultGenerator.java | 6 +- .../generators/JavaClientGenerator.java | 15 +- 167 files changed, 15538 insertions(+), 15529 deletions(-) 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 delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/HeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/PathParameters.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 delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/PathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/QueryParameters.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 delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/HeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/PathParameters.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 delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/HeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/QueryParameters.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 delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/HeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/QueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.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 delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/QueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/HeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/PathParameters.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 delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/QueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/PathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/{HeaderParameters.java => CommonparamsubdirDeleteHeaderParameters.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/{PathParameters.java => CommonparamsubdirDeletePathParameters.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/{PathParameters.java => CommonparamsubdirGetPathParameters.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/{QueryParameters.java => CommonparamsubdirGetQueryParameters.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/{HeaderParameters.java => CommonparamsubdirPostHeaderParameters.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/{PathParameters.java => CommonparamsubdirPostPathParameters.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/{HeaderParameters.java => FakeDeleteHeaderParameters.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/{QueryParameters.java => FakeDeleteQueryParameters.java} (65%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/{HeaderParameters.java => FakeGetHeaderParameters.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/{QueryParameters.java => FakeGetQueryParameters.java} (71%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/{QueryParameters.java => FakebodywithqueryparamsPutQueryParameters.java} (65%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/{QueryParameters.java => FakecasesensitiveparamsPutQueryParameters.java} (51%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/{PathParameters.java => FakedeletecoffeeidDeletePathParameters.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/{QueryParameters.java => FakeinlinecompositionPostQueryParameters.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/{QueryParameters.java => FakeobjinqueryGetQueryParameters.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/{CookieParameters.java => Fakeparametercollisions1ababselfabPostCookieParameters.java} (60%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/{HeaderParameters.java => Fakeparametercollisions1ababselfabPostHeaderParameters.java} (60%) create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/{QueryParameters.java => Fakeparametercollisions1ababselfabPostQueryParameters.java} (60%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/{PathParameters.java => FakepetiduploadimagewithrequiredfilePostPathParameters.java} (62%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/{QueryParameters.java => FakequeryparamwithjsoncontenttypeGetQueryParameters.java} (62%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/{QueryParameters.java => FakerefobjinqueryGetQueryParameters.java} (67%) create 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/QueryParameters.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/{QueryParameters.java => PetfindbystatusGetQueryParameters.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/{QueryParameters.java => PetfindbytagsGetQueryParameters.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/{HeaderParameters.java => PetpetidDeleteHeaderParameters.java} (69%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/{PathParameters.java => PetpetidDeletePathParameters.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/{PathParameters.java => PetpetidGetPathParameters.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/{PathParameters.java => PetpetidPostPathParameters.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/{PathParameters.java => PetpetiduploadimagePostPathParameters.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/{PathParameters.java => StoreorderorderidDeletePathParameters.java} (66%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/{PathParameters.java => StoreorderorderidGetPathParameters.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/{QueryParameters.java => UserloginGetQueryParameters.java} (64%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/{PathParameters.java => UserusernameDeletePathParameters.java} (67%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/{PathParameters.java => UserusernameGetPathParameters.java} (68%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/{PathParameters.java => UserusernamePutPathParameters.java} (68%) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 93aa25f97c3..09f87383e10 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -198,31 +198,31 @@ docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationj docs/paths/commonparamsubdir/CommonparamsubdirDelete.md docs/paths/commonparamsubdir/CommonparamsubdirGet.md docs/paths/commonparamsubdir/CommonparamsubdirPost.md +docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md +docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md -docs/paths/commonparamsubdir/delete/HeaderParameters.md -docs/paths/commonparamsubdir/delete/PathParameters.md docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md docs/paths/commonparamsubdir/delete/responses/Code200Response.md +docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md +docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md -docs/paths/commonparamsubdir/get/PathParameters.md -docs/paths/commonparamsubdir/get/QueryParameters.md docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md docs/paths/commonparamsubdir/get/responses/Code200Response.md docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md +docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md +docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md -docs/paths/commonparamsubdir/post/HeaderParameters.md -docs/paths/commonparamsubdir/post/PathParameters.md docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md docs/paths/commonparamsubdir/post/responses/Code200Response.md docs/paths/fake/FakeDelete.md docs/paths/fake/FakeGet.md docs/paths/fake/FakePatch.md docs/paths/fake/FakePost.md +docs/paths/fake/delete/FakeDeleteHeaderParameters.md +docs/paths/fake/delete/FakeDeleteQueryParameters.md docs/paths/fake/delete/FakeDeleteResponses.md docs/paths/fake/delete/FakeDeleteSecurityInfo.md -docs/paths/fake/delete/HeaderParameters.md -docs/paths/fake/delete/QueryParameters.md docs/paths/fake/delete/parameters/parameter0/Schema0.md docs/paths/fake/delete/parameters/parameter1/Schema1.md docs/paths/fake/delete/parameters/parameter2/Schema2.md @@ -231,10 +231,10 @@ docs/paths/fake/delete/parameters/parameter4/Schema4.md docs/paths/fake/delete/parameters/parameter5/Schema5.md docs/paths/fake/delete/responses/Code200Response.md docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md +docs/paths/fake/get/FakeGetHeaderParameters.md +docs/paths/fake/get/FakeGetQueryParameters.md docs/paths/fake/get/FakeGetRequestBody.md docs/paths/fake/get/FakeGetResponses.md -docs/paths/fake/get/HeaderParameters.md -docs/paths/fake/get/QueryParameters.md docs/paths/fake/get/parameters/parameter0/Schema0.md docs/paths/fake/get/parameters/parameter1/Schema1.md docs/paths/fake/get/parameters/parameter2/Schema2.md @@ -268,15 +268,15 @@ docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithfileschema/put/responses/Code200Response.md docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md -docs/paths/fakebodywithqueryparams/put/QueryParameters.md docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithqueryparams/put/responses/Code200Response.md docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md -docs/paths/fakecasesensitiveparams/put/QueryParameters.md docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md @@ -289,8 +289,8 @@ docs/paths/fakeclassnametest/patch/responses/Code200Response.md docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md -docs/paths/fakedeletecoffeeid/delete/PathParameters.md docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md docs/paths/fakedeletecoffeeid/delete/responses/Code200Response.md docs/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.md @@ -304,9 +304,9 @@ docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPos docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlineadditionalproperties/post/responses/Code200Response.md docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md -docs/paths/fakeinlinecomposition/post/QueryParameters.md docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -352,17 +352,17 @@ docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurity docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md docs/paths/fakeobjinquery/FakeobjinqueryGet.md +docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md -docs/paths/fakeobjinquery/get/QueryParameters.md docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakeobjinquery/get/responses/Code200Response.md docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md -docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md +docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md +docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md +docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md +docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md -docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md -docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md -docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md @@ -392,18 +392,18 @@ docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/Applic docs/paths/fakepemcontenttype/get/responses/Code200Response.md docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md -docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md -docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -412,8 +412,8 @@ docs/paths/fakeredirection/get/FakeredirectionGetResponses.md docs/paths/fakeredirection/get/responses/Code303Response.md docs/paths/fakeredirection/get/responses/Code3XXResponse.md docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md -docs/paths/fakerefobjinquery/get/QueryParameters.md docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md docs/paths/fakerefobjinquery/get/responses/Code200Response.md docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -474,8 +474,8 @@ docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md docs/paths/fakeresponsewithoutschema/get/responses/Code200Response.md docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md -docs/paths/faketestqueryparamters/put/QueryParameters.md docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md @@ -543,9 +543,9 @@ docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md docs/paths/petfindbystatus/PetfindbystatusGet.md docs/paths/petfindbystatus/PetfindbystatusServerInfo.md +docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md -docs/paths/petfindbystatus/get/QueryParameters.md docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md docs/paths/petfindbystatus/get/responses/Code200Response.md docs/paths/petfindbystatus/get/responses/Code400Response.md @@ -556,9 +556,9 @@ docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md docs/paths/petfindbystatus/servers/server1/Variables.md docs/paths/petfindbytags/PetfindbytagsGet.md +docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md -docs/paths/petfindbytags/get/QueryParameters.md docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md docs/paths/petfindbytags/get/responses/Code200Response.md docs/paths/petfindbytags/get/responses/Code400Response.md @@ -567,8 +567,8 @@ docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1 docs/paths/petpetid/PetpetidDelete.md docs/paths/petpetid/PetpetidGet.md docs/paths/petpetid/PetpetidPost.md -docs/paths/petpetid/delete/HeaderParameters.md -docs/paths/petpetid/delete/PathParameters.md +docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md +docs/paths/petpetid/delete/PetpetidDeletePathParameters.md docs/paths/petpetid/delete/PetpetidDeleteResponses.md docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md docs/paths/petpetid/delete/parameters/parameter0/Schema0.md @@ -576,7 +576,7 @@ docs/paths/petpetid/delete/parameters/parameter1/Schema1.md docs/paths/petpetid/delete/responses/Code400Response.md docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md -docs/paths/petpetid/get/PathParameters.md +docs/paths/petpetid/get/PetpetidGetPathParameters.md docs/paths/petpetid/get/PetpetidGetResponses.md docs/paths/petpetid/get/PetpetidGetSecurityInfo.md docs/paths/petpetid/get/parameters/parameter0/Schema0.md @@ -586,7 +586,7 @@ docs/paths/petpetid/get/responses/Code404Response.md docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md -docs/paths/petpetid/post/PathParameters.md +docs/paths/petpetid/post/PetpetidPostPathParameters.md docs/paths/petpetid/post/PetpetidPostRequestBody.md docs/paths/petpetid/post/PetpetidPostResponses.md docs/paths/petpetid/post/PetpetidPostSecurityInfo.md @@ -596,7 +596,7 @@ docs/paths/petpetid/post/responses/Code405Response.md docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md -docs/paths/petpetiduploadimage/post/PathParameters.md +docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md @@ -622,12 +622,12 @@ docs/paths/storeorder/post/responses/code200response/content/applicationjson/App docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/storeorderorderid/StoreorderorderidDelete.md docs/paths/storeorderorderid/StoreorderorderidGet.md -docs/paths/storeorderorderid/delete/PathParameters.md +docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md docs/paths/storeorderorderid/delete/responses/Code400Response.md docs/paths/storeorderorderid/delete/responses/Code404Response.md -docs/paths/storeorderorderid/get/PathParameters.md +docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md docs/paths/storeorderorderid/get/responses/Code200Response.md @@ -649,7 +649,7 @@ docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md docs/paths/usercreatewithlist/post/responses/CodedefaultResponse.md docs/paths/userlogin/UserloginGet.md -docs/paths/userlogin/get/QueryParameters.md +docs/paths/userlogin/get/UserloginGetQueryParameters.md docs/paths/userlogin/get/UserloginGetResponses.md docs/paths/userlogin/get/parameters/parameter0/Schema0.md docs/paths/userlogin/get/parameters/parameter1/Schema1.md @@ -666,18 +666,18 @@ docs/paths/userlogout/get/responses/CodedefaultResponse.md docs/paths/userusername/UserusernameDelete.md docs/paths/userusername/UserusernameGet.md docs/paths/userusername/UserusernamePut.md -docs/paths/userusername/delete/PathParameters.md +docs/paths/userusername/delete/UserusernameDeletePathParameters.md docs/paths/userusername/delete/UserusernameDeleteResponses.md docs/paths/userusername/delete/responses/Code200Response.md docs/paths/userusername/delete/responses/Code404Response.md -docs/paths/userusername/get/PathParameters.md +docs/paths/userusername/get/UserusernameGetPathParameters.md docs/paths/userusername/get/UserusernameGetResponses.md docs/paths/userusername/get/responses/Code200Response.md docs/paths/userusername/get/responses/Code400Response.md docs/paths/userusername/get/responses/Code404Response.md docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md -docs/paths/userusername/put/PathParameters.md +docs/paths/userusername/put/UserusernamePutPathParameters.md docs/paths/userusername/put/UserusernamePutRequestBody.md docs/paths/userusername/put/UserusernamePutResponses.md docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -1049,28 +1049,28 @@ src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/res src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java @@ -1078,11 +1078,11 @@ src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java +src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java +src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java @@ -1097,11 +1097,11 @@ src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/par src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java -src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java @@ -1141,18 +1141,18 @@ src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java +src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java @@ -1168,9 +1168,9 @@ src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/re src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java +src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java @@ -1185,10 +1185,10 @@ src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproper src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java @@ -1236,20 +1236,20 @@ src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java +src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java @@ -1298,11 +1298,11 @@ src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/req src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java +src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -1310,9 +1310,9 @@ src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithre src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java +src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java @@ -1322,9 +1322,9 @@ src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/Fakere src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java +src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java @@ -1386,9 +1386,9 @@ src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/ src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java +src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java @@ -1463,9 +1463,9 @@ src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSec src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java @@ -1478,9 +1478,9 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/Pe src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.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 src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java @@ -1490,9 +1490,9 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java @@ -1503,7 +1503,7 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/ src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java @@ -1515,7 +1515,7 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/cod src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java @@ -1527,7 +1527,7 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/Pet src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java @@ -1555,14 +1555,14 @@ src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/ src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java @@ -1586,7 +1586,7 @@ src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/Us src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java @@ -1612,13 +1612,13 @@ src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameD src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java @@ -1627,7 +1627,7 @@ src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java -src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java +src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index 6605ed4dd39..fb1c6c427ad 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -33,9 +33,9 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.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.HeaderParameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.PathParameters; +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; @@ -71,9 +71,9 @@ CommonparamsubdirDelete.Delete apiClient = new CommonparamsubdirDelete.Delete(ap // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters = + CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( + new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMapBuilder() .subDir("c") .build(), @@ -121,8 +121,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/commonparamsubdir/delete/PathParameters.md#pathparametersmap) | pathParameters | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/delete/HeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -134,8 +134,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/delete/PathParameters.md#pathparametersmap) | pathParameters | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/delete/HeaderParameters.md#headerparametersmap) | headerParameters | +| [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 | | @Nullable Duration | timeout | @@ -153,7 +153,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([HeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/delete/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [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) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -170,6 +170,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/commonparamsubdir/delete/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([CommonparamsubdirDeletePathParametersCommonparamsubdirDeletePathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparametersmap) 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 3feaf7e279c..1b15b9d782d 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -33,9 +33,9 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.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.QueryParameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.PathParameters; +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; @@ -71,9 +71,9 @@ CommonparamsubdirGet.Get apiClient = new CommonparamsubdirGet.Get(apiConfigurati // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters = + CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( + new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMapBuilder() .subDir("a") .build(), @@ -121,8 +121,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/commonparamsubdir/get/PathParameters.md#pathparametersmap) | pathParameters | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/commonparamsubdir/get/QueryParameters.md#queryparametersmap) | queryParameters
optional | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -134,8 +134,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/get/PathParameters.md#pathparametersmap) | pathParameters | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/commonparamsubdir/get/QueryParameters.md#queryparametersmap) | queryParameters | +| [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 | | @Nullable Duration | timeout | @@ -153,7 +153,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([QueryParametersQueryParametersMap](../../paths/commonparamsubdir/get/QueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [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) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -170,6 +170,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/commonparamsubdir/get/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([CommonparamsubdirGetPathParametersCommonparamsubdirGetPathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparametersmap) 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 e75a7d94af7..68387dce675 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -33,9 +33,9 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.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.HeaderParameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.PathParameters; +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; @@ -71,9 +71,9 @@ CommonparamsubdirPost.Post apiClient = new CommonparamsubdirPost.Post(apiConfigu // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters = + CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( + new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMapBuilder() .subDir("a") .build(), @@ -121,8 +121,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/commonparamsubdir/post/PathParameters.md#pathparametersmap) | pathParameters | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/post/HeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -134,8 +134,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/post/PathParameters.md#pathparametersmap) | pathParameters | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/post/HeaderParameters.md#headerparametersmap) | headerParameters | +| [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 | | @Nullable Duration | timeout | @@ -153,7 +153,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([HeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/post/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [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) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -170,6 +170,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/commonparamsubdir/post/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([CommonparamsubdirPostPathParametersCommonparamsubdirPostPathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparametersmap) 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..1acedc6bca7 --- /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.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 | + +## 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([CommonparamsubdirDeleteHeaderParametersMap](#commonparamsubdirdeleteheaderparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirDeleteHeaderParametersMap](#commonparamsubdirdeleteheaderparametersmap) | 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.CommonparamsubdirDeleteHeaderParametersMap validatedPayload = + CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1.validate( + new CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParametersMapBuilder() + .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 = [CommonparamsubdirDeleteadditionalProperties.class](#commonparamsubdirdeleteadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirDeleteHeaderParametersMap](#commonparamsubdirdeleteheaderparametersmap) | validate([Map<?, ?>](#commonparamsubdirdeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirdeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## CommonparamsubdirDeleteHeaderParametersMapBuilder +public class CommonparamsubdirDeleteHeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteHeaderParametersMapBuilder()
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) | + +## CommonparamsubdirDeleteHeaderParametersMap +public static class CommonparamsubdirDeleteHeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [CommonparamsubdirDeleteHeaderParametersMap](#commonparamsubdirdeleteheaderparametersmap) | of([Map](#commonparamsubdirdeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | someHeader()
[optional] | + +## CommonparamsubdirDeleteadditionalPropertiesBoxed +public sealed interface CommonparamsubdirDeleteadditionalPropertiesBoxed
+permits
+[CommonparamsubdirDeleteadditionalPropertiesBoxedVoid](#commonparamsubdirdeleteadditionalpropertiesboxedvoid), +[CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean](#commonparamsubdirdeleteadditionalpropertiesboxedboolean), +[CommonparamsubdirDeleteadditionalPropertiesBoxedNumber](#commonparamsubdirdeleteadditionalpropertiesboxednumber), +[CommonparamsubdirDeleteadditionalPropertiesBoxedString](#commonparamsubdirdeleteadditionalpropertiesboxedstring), +[CommonparamsubdirDeleteadditionalPropertiesBoxedList](#commonparamsubdirdeleteadditionalpropertiesboxedlist), +[CommonparamsubdirDeleteadditionalPropertiesBoxedMap](#commonparamsubdirdeleteadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirDeleteadditionalPropertiesBoxedVoid +public record CommonparamsubdirDeleteadditionalPropertiesBoxedVoid
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean +public record CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedNumber +public record CommonparamsubdirDeleteadditionalPropertiesBoxedNumber
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedString +public record CommonparamsubdirDeleteadditionalPropertiesBoxedString
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedList +public record CommonparamsubdirDeleteadditionalPropertiesBoxedList
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedList(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 | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedMap +public record CommonparamsubdirDeleteadditionalPropertiesBoxedMap
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedMap(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 | + +## CommonparamsubdirDeleteadditionalProperties +public static class CommonparamsubdirDeleteadditionalProperties
+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..62e02ea4ad8 --- /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.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 | + +## 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([CommonparamsubdirDeletePathParametersMap](#commonparamsubdirdeletepathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirDeletePathParametersMap](#commonparamsubdirdeletepathparametersmap) | 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.CommonparamsubdirDeletePathParametersMap validatedPayload = + CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( + new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMapBuilder() + .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 = [CommonparamsubdirDeleteadditionalProperties.class](#commonparamsubdirdeleteadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirDeletePathParametersMap](#commonparamsubdirdeletepathparametersmap) | validate([Map<?, ?>](#commonparamsubdirdeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirdeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## CommonparamsubdirDeletePathParametersMap0Builder +public class CommonparamsubdirDeletePathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeletePathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeletePathParametersMapBuilder()
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) | + +## CommonparamsubdirDeletePathParametersMap +public static class CommonparamsubdirDeletePathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [CommonparamsubdirDeletePathParametersMap](#commonparamsubdirdeletepathparametersmap) | of([Map](#commonparamsubdirdeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | subDir()
| + +## CommonparamsubdirDeleteadditionalPropertiesBoxed +public sealed interface CommonparamsubdirDeleteadditionalPropertiesBoxed
+permits
+[CommonparamsubdirDeleteadditionalPropertiesBoxedVoid](#commonparamsubdirdeleteadditionalpropertiesboxedvoid), +[CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean](#commonparamsubdirdeleteadditionalpropertiesboxedboolean), +[CommonparamsubdirDeleteadditionalPropertiesBoxedNumber](#commonparamsubdirdeleteadditionalpropertiesboxednumber), +[CommonparamsubdirDeleteadditionalPropertiesBoxedString](#commonparamsubdirdeleteadditionalpropertiesboxedstring), +[CommonparamsubdirDeleteadditionalPropertiesBoxedList](#commonparamsubdirdeleteadditionalpropertiesboxedlist), +[CommonparamsubdirDeleteadditionalPropertiesBoxedMap](#commonparamsubdirdeleteadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirDeleteadditionalPropertiesBoxedVoid +public record CommonparamsubdirDeleteadditionalPropertiesBoxedVoid
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean +public record CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedNumber +public record CommonparamsubdirDeleteadditionalPropertiesBoxedNumber
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedString +public record CommonparamsubdirDeleteadditionalPropertiesBoxedString
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedList +public record CommonparamsubdirDeleteadditionalPropertiesBoxedList
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedList(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 | + +## CommonparamsubdirDeleteadditionalPropertiesBoxedMap +public record CommonparamsubdirDeleteadditionalPropertiesBoxedMap
+implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteadditionalPropertiesBoxedMap(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 | + +## CommonparamsubdirDeleteadditionalProperties +public static class CommonparamsubdirDeleteadditionalProperties
+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/HeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/HeaderParameters.md deleted file mode 100644 index 8f0f25e94e3..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/HeaderParameters.md +++ /dev/null @@ -1,252 +0,0 @@ -# HeaderParameters -public class HeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [HeaderParameters.HeaderParameters1Boxed](#headerparameters1boxed)
sealed interface for validated payloads | -| record | [HeaderParameters.HeaderParameters1BoxedMap](#headerparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.HeaderParameters1](#headerparameters1)
schema class | -| static class | [HeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [HeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [HeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## HeaderParameters1Boxed -public sealed interface HeaderParameters1Boxed
-permits
-[HeaderParameters1BoxedMap](#headerparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## HeaderParameters1BoxedMap -public record HeaderParameters1BoxedMap
-implements [HeaderParameters1Boxed](#headerparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParameters1BoxedMap([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 | - -## HeaderParameters1 -public static class HeaderParameters1
-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.HeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -HeaderParameters.HeaderParametersMap validatedPayload = - HeaderParameters.HeaderParameters1.validate( - new HeaderParameters.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) | -| [HeaderParameters1BoxedMap](#headerparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [HeaderParameters1Boxed](#headerparameters1boxed) | 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/PathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/PathParameters.md deleted file mode 100644 index 87f833e6a58..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/PathParameters.md +++ /dev/null @@ -1,269 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/get/CommonparamsubdirGetPathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md new file mode 100644 index 00000000000..eed90e0e7c1 --- /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.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 | + +## 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([CommonparamsubdirGetPathParametersMap](#commonparamsubdirgetpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirGetPathParametersMap](#commonparamsubdirgetpathparametersmap) | 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.CommonparamsubdirGetPathParametersMap validatedPayload = + CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( + new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMapBuilder() + .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 = [CommonparamsubdirGetadditionalProperties.class](#commonparamsubdirgetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirGetPathParametersMap](#commonparamsubdirgetpathparametersmap) | validate([Map<?, ?>](#commonparamsubdirgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## CommonparamsubdirGetPathParametersMap0Builder +public class CommonparamsubdirGetPathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetPathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetPathParametersMapBuilder()
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) | + +## CommonparamsubdirGetPathParametersMap +public static class CommonparamsubdirGetPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [CommonparamsubdirGetPathParametersMap](#commonparamsubdirgetpathparametersmap) | of([Map](#commonparamsubdirgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | subDir()
| + +## CommonparamsubdirGetadditionalPropertiesBoxed +public sealed interface CommonparamsubdirGetadditionalPropertiesBoxed
+permits
+[CommonparamsubdirGetadditionalPropertiesBoxedVoid](#commonparamsubdirgetadditionalpropertiesboxedvoid), +[CommonparamsubdirGetadditionalPropertiesBoxedBoolean](#commonparamsubdirgetadditionalpropertiesboxedboolean), +[CommonparamsubdirGetadditionalPropertiesBoxedNumber](#commonparamsubdirgetadditionalpropertiesboxednumber), +[CommonparamsubdirGetadditionalPropertiesBoxedString](#commonparamsubdirgetadditionalpropertiesboxedstring), +[CommonparamsubdirGetadditionalPropertiesBoxedList](#commonparamsubdirgetadditionalpropertiesboxedlist), +[CommonparamsubdirGetadditionalPropertiesBoxedMap](#commonparamsubdirgetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirGetadditionalPropertiesBoxedVoid +public record CommonparamsubdirGetadditionalPropertiesBoxedVoid
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetadditionalPropertiesBoxedBoolean +public record CommonparamsubdirGetadditionalPropertiesBoxedBoolean
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetadditionalPropertiesBoxedNumber +public record CommonparamsubdirGetadditionalPropertiesBoxedNumber
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetadditionalPropertiesBoxedString +public record CommonparamsubdirGetadditionalPropertiesBoxedString
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetadditionalPropertiesBoxedList +public record CommonparamsubdirGetadditionalPropertiesBoxedList
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedList(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 | + +## CommonparamsubdirGetadditionalPropertiesBoxedMap +public record CommonparamsubdirGetadditionalPropertiesBoxedMap
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedMap(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 | + +## CommonparamsubdirGetadditionalProperties +public static class CommonparamsubdirGetadditionalProperties
+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..32a24a2bd57 --- /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.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 | + +## 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([CommonparamsubdirGetQueryParametersMap](#commonparamsubdirgetqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirGetQueryParametersMap](#commonparamsubdirgetqueryparametersmap) | 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.CommonparamsubdirGetQueryParametersMap validatedPayload = + CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1.validate( + new CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParametersMapBuilder() + .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 = [CommonparamsubdirGetadditionalProperties.class](#commonparamsubdirgetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirGetQueryParametersMap](#commonparamsubdirgetqueryparametersmap) | validate([Map<?, ?>](#commonparamsubdirgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## CommonparamsubdirGetQueryParametersMapBuilder +public class CommonparamsubdirGetQueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetQueryParametersMapBuilder()
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) | + +## CommonparamsubdirGetQueryParametersMap +public static class CommonparamsubdirGetQueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [CommonparamsubdirGetQueryParametersMap](#commonparamsubdirgetqueryparametersmap) | of([Map](#commonparamsubdirgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | searchStr()
[optional] | + +## CommonparamsubdirGetadditionalPropertiesBoxed +public sealed interface CommonparamsubdirGetadditionalPropertiesBoxed
+permits
+[CommonparamsubdirGetadditionalPropertiesBoxedVoid](#commonparamsubdirgetadditionalpropertiesboxedvoid), +[CommonparamsubdirGetadditionalPropertiesBoxedBoolean](#commonparamsubdirgetadditionalpropertiesboxedboolean), +[CommonparamsubdirGetadditionalPropertiesBoxedNumber](#commonparamsubdirgetadditionalpropertiesboxednumber), +[CommonparamsubdirGetadditionalPropertiesBoxedString](#commonparamsubdirgetadditionalpropertiesboxedstring), +[CommonparamsubdirGetadditionalPropertiesBoxedList](#commonparamsubdirgetadditionalpropertiesboxedlist), +[CommonparamsubdirGetadditionalPropertiesBoxedMap](#commonparamsubdirgetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirGetadditionalPropertiesBoxedVoid +public record CommonparamsubdirGetadditionalPropertiesBoxedVoid
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetadditionalPropertiesBoxedBoolean +public record CommonparamsubdirGetadditionalPropertiesBoxedBoolean
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetadditionalPropertiesBoxedNumber +public record CommonparamsubdirGetadditionalPropertiesBoxedNumber
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetadditionalPropertiesBoxedString +public record CommonparamsubdirGetadditionalPropertiesBoxedString
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetadditionalPropertiesBoxedList +public record CommonparamsubdirGetadditionalPropertiesBoxedList
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedList(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 | + +## CommonparamsubdirGetadditionalPropertiesBoxedMap +public record CommonparamsubdirGetadditionalPropertiesBoxedMap
+implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetadditionalPropertiesBoxedMap(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 | + +## CommonparamsubdirGetadditionalProperties +public static class CommonparamsubdirGetadditionalProperties
+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/PathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/PathParameters.md deleted file mode 100644 index bb7ece676f5..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/PathParameters.md +++ /dev/null @@ -1,269 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/QueryParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/QueryParameters.md deleted file mode 100644 index b7a7775bc7d..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/QueryParameters.md +++ /dev/null @@ -1,252 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/post/CommonparamsubdirPostHeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md new file mode 100644 index 00000000000..8e6e4dc7616 --- /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.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 | + +## 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([CommonparamsubdirPostHeaderParametersMap](#commonparamsubdirpostheaderparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirPostHeaderParametersMap](#commonparamsubdirpostheaderparametersmap) | 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.CommonparamsubdirPostHeaderParametersMap validatedPayload = + CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1.validate( + new CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParametersMapBuilder() + .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 = [CommonparamsubdirPostadditionalProperties.class](#commonparamsubdirpostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirPostHeaderParametersMap](#commonparamsubdirpostheaderparametersmap) | validate([Map<?, ?>](#commonparamsubdirpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## CommonparamsubdirPostHeaderParametersMapBuilder +public class CommonparamsubdirPostHeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostHeaderParametersMapBuilder()
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) | + +## CommonparamsubdirPostHeaderParametersMap +public static class CommonparamsubdirPostHeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [CommonparamsubdirPostHeaderParametersMap](#commonparamsubdirpostheaderparametersmap) | of([Map](#commonparamsubdirpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | someHeader()
[optional] | + +## CommonparamsubdirPostadditionalPropertiesBoxed +public sealed interface CommonparamsubdirPostadditionalPropertiesBoxed
+permits
+[CommonparamsubdirPostadditionalPropertiesBoxedVoid](#commonparamsubdirpostadditionalpropertiesboxedvoid), +[CommonparamsubdirPostadditionalPropertiesBoxedBoolean](#commonparamsubdirpostadditionalpropertiesboxedboolean), +[CommonparamsubdirPostadditionalPropertiesBoxedNumber](#commonparamsubdirpostadditionalpropertiesboxednumber), +[CommonparamsubdirPostadditionalPropertiesBoxedString](#commonparamsubdirpostadditionalpropertiesboxedstring), +[CommonparamsubdirPostadditionalPropertiesBoxedList](#commonparamsubdirpostadditionalpropertiesboxedlist), +[CommonparamsubdirPostadditionalPropertiesBoxedMap](#commonparamsubdirpostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirPostadditionalPropertiesBoxedVoid +public record CommonparamsubdirPostadditionalPropertiesBoxedVoid
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostadditionalPropertiesBoxedBoolean +public record CommonparamsubdirPostadditionalPropertiesBoxedBoolean
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostadditionalPropertiesBoxedNumber +public record CommonparamsubdirPostadditionalPropertiesBoxedNumber
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostadditionalPropertiesBoxedString +public record CommonparamsubdirPostadditionalPropertiesBoxedString
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostadditionalPropertiesBoxedList +public record CommonparamsubdirPostadditionalPropertiesBoxedList
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedList(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 | + +## CommonparamsubdirPostadditionalPropertiesBoxedMap +public record CommonparamsubdirPostadditionalPropertiesBoxedMap
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedMap(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 | + +## CommonparamsubdirPostadditionalProperties +public static class CommonparamsubdirPostadditionalProperties
+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..7693f93a48b --- /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.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 | + +## 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([CommonparamsubdirPostPathParametersMap](#commonparamsubdirpostpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirPostPathParametersMap](#commonparamsubdirpostpathparametersmap) | 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.CommonparamsubdirPostPathParametersMap validatedPayload = + CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( + new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMapBuilder() + .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 = [CommonparamsubdirPostadditionalProperties.class](#commonparamsubdirpostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirPostPathParametersMap](#commonparamsubdirpostpathparametersmap) | validate([Map<?, ?>](#commonparamsubdirpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## CommonparamsubdirPostPathParametersMap0Builder +public class CommonparamsubdirPostPathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostPathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostPathParametersMapBuilder()
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) | + +## CommonparamsubdirPostPathParametersMap +public static class CommonparamsubdirPostPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [CommonparamsubdirPostPathParametersMap](#commonparamsubdirpostpathparametersmap) | of([Map](#commonparamsubdirpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | subDir()
| + +## CommonparamsubdirPostadditionalPropertiesBoxed +public sealed interface CommonparamsubdirPostadditionalPropertiesBoxed
+permits
+[CommonparamsubdirPostadditionalPropertiesBoxedVoid](#commonparamsubdirpostadditionalpropertiesboxedvoid), +[CommonparamsubdirPostadditionalPropertiesBoxedBoolean](#commonparamsubdirpostadditionalpropertiesboxedboolean), +[CommonparamsubdirPostadditionalPropertiesBoxedNumber](#commonparamsubdirpostadditionalpropertiesboxednumber), +[CommonparamsubdirPostadditionalPropertiesBoxedString](#commonparamsubdirpostadditionalpropertiesboxedstring), +[CommonparamsubdirPostadditionalPropertiesBoxedList](#commonparamsubdirpostadditionalpropertiesboxedlist), +[CommonparamsubdirPostadditionalPropertiesBoxedMap](#commonparamsubdirpostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirPostadditionalPropertiesBoxedVoid +public record CommonparamsubdirPostadditionalPropertiesBoxedVoid
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostadditionalPropertiesBoxedBoolean +public record CommonparamsubdirPostadditionalPropertiesBoxedBoolean
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostadditionalPropertiesBoxedNumber +public record CommonparamsubdirPostadditionalPropertiesBoxedNumber
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostadditionalPropertiesBoxedString +public record CommonparamsubdirPostadditionalPropertiesBoxedString
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostadditionalPropertiesBoxedList +public record CommonparamsubdirPostadditionalPropertiesBoxedList
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedList(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 | + +## CommonparamsubdirPostadditionalPropertiesBoxedMap +public record CommonparamsubdirPostadditionalPropertiesBoxedMap
+implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostadditionalPropertiesBoxedMap(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 | + +## CommonparamsubdirPostadditionalProperties +public static class CommonparamsubdirPostadditionalProperties
+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/HeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/HeaderParameters.md deleted file mode 100644 index ee5f95055d9..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/HeaderParameters.md +++ /dev/null @@ -1,252 +0,0 @@ -# HeaderParameters -public class HeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [HeaderParameters.HeaderParameters1Boxed](#headerparameters1boxed)
sealed interface for validated payloads | -| record | [HeaderParameters.HeaderParameters1BoxedMap](#headerparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.HeaderParameters1](#headerparameters1)
schema class | -| static class | [HeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [HeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [HeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## HeaderParameters1Boxed -public sealed interface HeaderParameters1Boxed
-permits
-[HeaderParameters1BoxedMap](#headerparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## HeaderParameters1BoxedMap -public record HeaderParameters1BoxedMap
-implements [HeaderParameters1Boxed](#headerparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParameters1BoxedMap([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 | - -## HeaderParameters1 -public static class HeaderParameters1
-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.HeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -HeaderParameters.HeaderParametersMap validatedPayload = - HeaderParameters.HeaderParameters1.validate( - new HeaderParameters.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) | -| [HeaderParameters1BoxedMap](#headerparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [HeaderParameters1Boxed](#headerparameters1boxed) | 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/PathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/PathParameters.md deleted file mode 100644 index 241d933e5b7..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/PathParameters.md +++ /dev/null @@ -1,269 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md index 293944d5f9b..caa22572bb4 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -37,8 +37,8 @@ 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.HeaderParameters; -import org.openapijsonschematools.client.paths.fake.delete.QueryParameters; +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; @@ -85,9 +85,9 @@ FakeDelete.Delete apiClient = new FakeDelete.Delete(apiConfiguration, schemaConf // Map validation -HeaderParameters.HeaderParametersMap headerParameters = - HeaderParameters.HeaderParameters1.validate( - new HeaderParameters.HeaderParametersMapBuilder() +FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters = + FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( + new FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMapBuilder() .required_boolean_group("true") .boolean_group("true") @@ -97,9 +97,9 @@ HeaderParameters.HeaderParametersMap headerParameters = ); // Map validation -QueryParameters.QueryParametersMap queryParameters = - QueryParameters.QueryParameters1.validate( - new QueryParameters.QueryParametersMapBuilder() +FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters = + FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( + new FakeDeleteQueryParameters.FakeDeleteQueryParametersMapBuilder() .required_int64_group(1L) .required_string_group("a") @@ -154,8 +154,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [HeaderParameters.HeaderParametersMap](../../paths/fake/delete/HeaderParameters.md#headerparametersmap) | headerParameters | -| [QueryParameters.QueryParametersMap](../../paths/fake/delete/QueryParameters.md#queryparametersmap) | queryParameters | +| [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 | | [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 | @@ -168,8 +168,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/fake/delete/HeaderParameters.md#headerparametersmap) | headerParameters | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fake/delete/QueryParameters.md#queryparametersmap) | queryParameters | +| [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 | | [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -205,7 +205,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete00RequestBuilder](#delete00requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fake/delete/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [Delete00RequestBuilder](#delete00requestbuilder) | queryParameters([FakeDeleteQueryParametersFakeDeleteQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparametersmap) queryParameters)
sets the property | ## Delete10RequestBuilder public static class Delete10RequestBuilder
@@ -220,7 +220,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete00RequestBuilder](#delete00requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/fake/delete/HeaderParameters.md#headerparametersmap) headerParameters)
sets the property | +| [Delete00RequestBuilder](#delete00requestbuilder) | headerParameters([FakeDeleteHeaderParametersFakeDeleteHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparametersmap) headerParameters)
sets the property | ## DeleteRequestBuilder public static class DeleteRequestBuilder
@@ -235,7 +235,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete01RequestBuilder](#delete01requestbuilder) | headerParameters([HeaderParametersHeaderParametersMap](../../paths/fake/delete/HeaderParameters.md#headerparametersmap) headerParameters)
sets the property | -| [Delete10RequestBuilder](#delete10requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fake/delete/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [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 | [[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 6793d85cfaf..83923858abc 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -33,8 +33,8 @@ 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.HeaderParameters; -import org.openapijsonschematools.client.paths.fake.get.QueryParameters; +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.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -114,8 +114,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 | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/fake/get/HeaderParameters.md#headerparametersmap) | headerParameters
optional | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fake/get/QueryParameters.md#queryparametersmap) | queryParameters
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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -134,8 +134,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([HeaderParametersHeaderParametersMap](../../paths/fake/get/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fake/get/QueryParameters.md#queryparametersmap) queryParameters)
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) | 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 new file mode 100644 index 00000000000..c39d5ece8b9 --- /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.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 | + +## 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([FakeDeleteHeaderParametersMap](#fakedeleteheaderparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeDeleteHeaderParametersMap](#fakedeleteheaderparametersmap) | 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.FakeDeleteHeaderParametersMap validatedPayload = + FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( + new FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMapBuilder() + .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 = [FakeDeleteadditionalProperties.class](#fakedeleteadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeDeleteHeaderParametersMap](#fakedeleteheaderparametersmap) | validate([Map<?, ?>](#fakedeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakeDeleteHeaderParametersMap0Builder +public class FakeDeleteHeaderParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteHeaderParametersMap0Builder(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) | + +## FakeDeleteHeaderParametersMapBuilder +public class FakeDeleteHeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteHeaderParametersMapBuilder()
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) | + +## FakeDeleteHeaderParametersMap +public static class FakeDeleteHeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakeDeleteHeaderParametersMap](#fakedeleteheaderparametersmap) | of([Map](#fakedeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | required_boolean_group()
| +| String | boolean_group()
[optional] | + +## FakeDeleteadditionalPropertiesBoxed +public sealed interface FakeDeleteadditionalPropertiesBoxed
+permits
+[FakeDeleteadditionalPropertiesBoxedVoid](#fakedeleteadditionalpropertiesboxedvoid), +[FakeDeleteadditionalPropertiesBoxedBoolean](#fakedeleteadditionalpropertiesboxedboolean), +[FakeDeleteadditionalPropertiesBoxedNumber](#fakedeleteadditionalpropertiesboxednumber), +[FakeDeleteadditionalPropertiesBoxedString](#fakedeleteadditionalpropertiesboxedstring), +[FakeDeleteadditionalPropertiesBoxedList](#fakedeleteadditionalpropertiesboxedlist), +[FakeDeleteadditionalPropertiesBoxedMap](#fakedeleteadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeDeleteadditionalPropertiesBoxedVoid +public record FakeDeleteadditionalPropertiesBoxedVoid
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteadditionalPropertiesBoxedBoolean +public record FakeDeleteadditionalPropertiesBoxedBoolean
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteadditionalPropertiesBoxedNumber +public record FakeDeleteadditionalPropertiesBoxedNumber
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteadditionalPropertiesBoxedString +public record FakeDeleteadditionalPropertiesBoxedString
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteadditionalPropertiesBoxedList +public record FakeDeleteadditionalPropertiesBoxedList
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedList(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 | + +## FakeDeleteadditionalPropertiesBoxedMap +public record FakeDeleteadditionalPropertiesBoxedMap
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedMap(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 | + +## FakeDeleteadditionalProperties +public static class FakeDeleteadditionalProperties
+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..ebaddcc38c2 --- /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.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 | + +## 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([FakeDeleteQueryParametersMap](#fakedeletequeryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeDeleteQueryParametersMap](#fakedeletequeryparametersmap) | 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.FakeDeleteQueryParametersMap validatedPayload = + FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( + new FakeDeleteQueryParameters.FakeDeleteQueryParametersMapBuilder() + .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 = [FakeDeleteadditionalProperties.class](#fakedeleteadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeDeleteQueryParametersMap](#fakedeletequeryparametersmap) | validate([Map<?, ?>](#fakedeletequeryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeletequeryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakeDeleteQueryParametersMap00Builder +public class FakeDeleteQueryParametersMap00Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteQueryParametersMap00Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteQueryParametersMap01Builder(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) | + +## FakeDeleteQueryParametersMap10Builder +public class FakeDeleteQueryParametersMap10Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteQueryParametersMap10Builder(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) | + +## FakeDeleteQueryParametersMapBuilder +public class FakeDeleteQueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteQueryParametersMapBuilder()
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
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakeDeleteQueryParametersMap](#fakedeletequeryparametersmap) | of([Map](#fakedeletequeryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | required_int64_group()
| +| String | required_string_group()
| +| Number | int64_group()
[optional] | +| String | string_group()
[optional] | + +## FakeDeleteadditionalPropertiesBoxed +public sealed interface FakeDeleteadditionalPropertiesBoxed
+permits
+[FakeDeleteadditionalPropertiesBoxedVoid](#fakedeleteadditionalpropertiesboxedvoid), +[FakeDeleteadditionalPropertiesBoxedBoolean](#fakedeleteadditionalpropertiesboxedboolean), +[FakeDeleteadditionalPropertiesBoxedNumber](#fakedeleteadditionalpropertiesboxednumber), +[FakeDeleteadditionalPropertiesBoxedString](#fakedeleteadditionalpropertiesboxedstring), +[FakeDeleteadditionalPropertiesBoxedList](#fakedeleteadditionalpropertiesboxedlist), +[FakeDeleteadditionalPropertiesBoxedMap](#fakedeleteadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeDeleteadditionalPropertiesBoxedVoid +public record FakeDeleteadditionalPropertiesBoxedVoid
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteadditionalPropertiesBoxedBoolean +public record FakeDeleteadditionalPropertiesBoxedBoolean
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteadditionalPropertiesBoxedNumber +public record FakeDeleteadditionalPropertiesBoxedNumber
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteadditionalPropertiesBoxedString +public record FakeDeleteadditionalPropertiesBoxedString
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteadditionalPropertiesBoxedList +public record FakeDeleteadditionalPropertiesBoxedList
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedList(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 | + +## FakeDeleteadditionalPropertiesBoxedMap +public record FakeDeleteadditionalPropertiesBoxedMap
+implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteadditionalPropertiesBoxedMap(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 | + +## FakeDeleteadditionalProperties +public static class FakeDeleteadditionalProperties
+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/HeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/HeaderParameters.md deleted file mode 100644 index 2950f661f66..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/HeaderParameters.md +++ /dev/null @@ -1,274 +0,0 @@ -# HeaderParameters -public class HeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [HeaderParameters.HeaderParameters1Boxed](#headerparameters1boxed)
sealed interface for validated payloads | -| record | [HeaderParameters.HeaderParameters1BoxedMap](#headerparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.HeaderParameters1](#headerparameters1)
schema class | -| static class | [HeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [HeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [HeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## HeaderParameters1Boxed -public sealed interface HeaderParameters1Boxed
-permits
-[HeaderParameters1BoxedMap](#headerparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## HeaderParameters1BoxedMap -public record HeaderParameters1BoxedMap
-implements [HeaderParameters1Boxed](#headerparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParameters1BoxedMap([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 | - -## HeaderParameters1 -public static class HeaderParameters1
-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.HeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -HeaderParameters.HeaderParametersMap validatedPayload = - HeaderParameters.HeaderParameters1.validate( - new HeaderParameters.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) | -| [HeaderParameters1BoxedMap](#headerparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [HeaderParameters1Boxed](#headerparameters1boxed) | 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/QueryParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/QueryParameters.md deleted file mode 100644 index 455f2a77379..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/QueryParameters.md +++ /dev/null @@ -1,321 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/get/FakeGetHeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md new file mode 100644 index 00000000000..786bd606a2d --- /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.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 | + +## 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([FakeGetHeaderParametersMap](#fakegetheaderparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeGetHeaderParametersMap](#fakegetheaderparametersmap) | 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.FakeGetHeaderParametersMap validatedPayload = + FakeGetHeaderParameters.FakeGetHeaderParameters1.validate( + new FakeGetHeaderParameters.FakeGetHeaderParametersMapBuilder() + .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 = [FakeGetadditionalProperties.class](#fakegetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeGetHeaderParametersMap](#fakegetheaderparametersmap) | validate([Map<?, ?>](#fakegetheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakegetheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakeGetHeaderParametersMapBuilder +public class FakeGetHeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetHeaderParametersMapBuilder()
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) | + +## FakeGetHeaderParametersMap +public static class FakeGetHeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakeGetHeaderParametersMap](#fakegetheaderparametersmap) | of([Map](#fakegetheaderparametersmapbuilder) 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
+permits
+[FakeGetadditionalPropertiesBoxedVoid](#fakegetadditionalpropertiesboxedvoid), +[FakeGetadditionalPropertiesBoxedBoolean](#fakegetadditionalpropertiesboxedboolean), +[FakeGetadditionalPropertiesBoxedNumber](#fakegetadditionalpropertiesboxednumber), +[FakeGetadditionalPropertiesBoxedString](#fakegetadditionalpropertiesboxedstring), +[FakeGetadditionalPropertiesBoxedList](#fakegetadditionalpropertiesboxedlist), +[FakeGetadditionalPropertiesBoxedMap](#fakegetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeGetadditionalPropertiesBoxedVoid +public record FakeGetadditionalPropertiesBoxedVoid
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetadditionalPropertiesBoxedBoolean +public record FakeGetadditionalPropertiesBoxedBoolean
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetadditionalPropertiesBoxedNumber +public record FakeGetadditionalPropertiesBoxedNumber
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetadditionalPropertiesBoxedString +public record FakeGetadditionalPropertiesBoxedString
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetadditionalPropertiesBoxedList +public record FakeGetadditionalPropertiesBoxedList
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedList(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 | + +## FakeGetadditionalPropertiesBoxedMap +public record FakeGetadditionalPropertiesBoxedMap
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedMap(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 | + +## FakeGetadditionalProperties +public static class FakeGetadditionalProperties
+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..83475a59e39 --- /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.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 | + +## 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([FakeGetQueryParametersMap](#fakegetqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeGetQueryParametersMap](#fakegetqueryparametersmap) | 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.FakeGetQueryParametersMap validatedPayload = + FakeGetQueryParameters.FakeGetQueryParameters1.validate( + new FakeGetQueryParameters.FakeGetQueryParametersMapBuilder() + .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 = [FakeGetadditionalProperties.class](#fakegetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeGetQueryParametersMap](#fakegetqueryparametersmap) | validate([Map<?, ?>](#fakegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakeGetQueryParametersMapBuilder +public class FakeGetQueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetQueryParametersMapBuilder()
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
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakeGetQueryParametersMap](#fakegetqueryparametersmap) | of([Map](#fakegetqueryparametersmapbuilder) 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
+permits
+[FakeGetadditionalPropertiesBoxedVoid](#fakegetadditionalpropertiesboxedvoid), +[FakeGetadditionalPropertiesBoxedBoolean](#fakegetadditionalpropertiesboxedboolean), +[FakeGetadditionalPropertiesBoxedNumber](#fakegetadditionalpropertiesboxednumber), +[FakeGetadditionalPropertiesBoxedString](#fakegetadditionalpropertiesboxedstring), +[FakeGetadditionalPropertiesBoxedList](#fakegetadditionalpropertiesboxedlist), +[FakeGetadditionalPropertiesBoxedMap](#fakegetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeGetadditionalPropertiesBoxedVoid +public record FakeGetadditionalPropertiesBoxedVoid
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetadditionalPropertiesBoxedBoolean +public record FakeGetadditionalPropertiesBoxedBoolean
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetadditionalPropertiesBoxedNumber +public record FakeGetadditionalPropertiesBoxedNumber
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetadditionalPropertiesBoxedString +public record FakeGetadditionalPropertiesBoxedString
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetadditionalPropertiesBoxedList +public record FakeGetadditionalPropertiesBoxedList
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedList(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 | + +## FakeGetadditionalPropertiesBoxedMap +public record FakeGetadditionalPropertiesBoxedMap
+implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetadditionalPropertiesBoxedMap(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 | + +## FakeGetadditionalProperties +public static class FakeGetadditionalProperties
+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/HeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/get/HeaderParameters.md deleted file mode 100644 index ffb2035d0d7..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/HeaderParameters.md +++ /dev/null @@ -1,260 +0,0 @@ -# HeaderParameters -public class HeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [HeaderParameters.HeaderParameters1Boxed](#headerparameters1boxed)
sealed interface for validated payloads | -| record | [HeaderParameters.HeaderParameters1BoxedMap](#headerparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.HeaderParameters1](#headerparameters1)
schema class | -| static class | [HeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [HeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [HeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## HeaderParameters1Boxed -public sealed interface HeaderParameters1Boxed
-permits
-[HeaderParameters1BoxedMap](#headerparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## HeaderParameters1BoxedMap -public record HeaderParameters1BoxedMap
-implements [HeaderParameters1Boxed](#headerparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParameters1BoxedMap([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 | - -## HeaderParameters1 -public static class HeaderParameters1
-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.HeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -HeaderParameters.HeaderParametersMap validatedPayload = - HeaderParameters.HeaderParameters1.validate( - new HeaderParameters.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) | -| [HeaderParameters1BoxedMap](#headerparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [HeaderParameters1Boxed](#headerparameters1boxed) | 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/QueryParameters.md b/samples/client/petstore/java/docs/paths/fake/get/QueryParameters.md deleted file mode 100644 index a15587d326b..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/QueryParameters.md +++ /dev/null @@ -1,278 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index f793762a771..ba99c486eda 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -38,7 +38,7 @@ 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.QueryParameters; +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; @@ -100,9 +100,9 @@ User1BoxedMap requestBodyPayload = FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -QueryParameters.QueryParametersMap queryParameters = - QueryParameters.QueryParameters1.validate( - new QueryParameters.QueryParametersMapBuilder() +FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters = + FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( + new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMapBuilder() .query("a") .build(), @@ -152,7 +152,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | -| [QueryParameters.QueryParametersMap](../../paths/fakebodywithqueryparams/put/QueryParameters.md#queryparametersmap) | queryParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -165,7 +165,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 | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fakebodywithqueryparams/put/QueryParameters.md#queryparametersmap) | queryParameters | +| [FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparametersmap) | queryParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -199,7 +199,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakebodywithqueryparams/put/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [Put00RequestBuilder](#put00requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersFakebodywithqueryparamsPutQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparametersmap) queryParameters)
sets the property | ## Put10RequestBuilder public static class Put10RequestBuilder
@@ -230,6 +230,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([QueryParametersQueryParametersMap](../../paths/fakebodywithqueryparams/put/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [Put10RequestBuilder](#put10requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersFakebodywithqueryparamsPutQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparametersmap) 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..2820848ff8d --- /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.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 | + +## 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([FakebodywithqueryparamsPutQueryParametersMap](#fakebodywithqueryparamsputqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakebodywithqueryparamsPutQueryParametersMap](#fakebodywithqueryparamsputqueryparametersmap) | 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.FakebodywithqueryparamsPutQueryParametersMap validatedPayload = + FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( + new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMapBuilder() + .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 = [FakebodywithqueryparamsPutadditionalProperties.class](#fakebodywithqueryparamsputadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakebodywithqueryparamsPutQueryParametersMap](#fakebodywithqueryparamsputqueryparametersmap) | validate([Map<?, ?>](#fakebodywithqueryparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakebodywithqueryparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakebodywithqueryparamsPutQueryParametersMap0Builder +public class FakebodywithqueryparamsPutQueryParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutQueryParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutQueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakebodywithqueryparamsPutQueryParametersMap0Builder](#fakebodywithqueryparamsputqueryparametersmap0builder) | query(String value) | + +## FakebodywithqueryparamsPutQueryParametersMap +public static class FakebodywithqueryparamsPutQueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakebodywithqueryparamsPutQueryParametersMap](#fakebodywithqueryparamsputqueryparametersmap) | of([Map](#fakebodywithqueryparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | query()
| + +## FakebodywithqueryparamsPutadditionalPropertiesBoxed +public sealed interface FakebodywithqueryparamsPutadditionalPropertiesBoxed
+permits
+[FakebodywithqueryparamsPutadditionalPropertiesBoxedVoid](#fakebodywithqueryparamsputadditionalpropertiesboxedvoid), +[FakebodywithqueryparamsPutadditionalPropertiesBoxedBoolean](#fakebodywithqueryparamsputadditionalpropertiesboxedboolean), +[FakebodywithqueryparamsPutadditionalPropertiesBoxedNumber](#fakebodywithqueryparamsputadditionalpropertiesboxednumber), +[FakebodywithqueryparamsPutadditionalPropertiesBoxedString](#fakebodywithqueryparamsputadditionalpropertiesboxedstring), +[FakebodywithqueryparamsPutadditionalPropertiesBoxedList](#fakebodywithqueryparamsputadditionalpropertiesboxedlist), +[FakebodywithqueryparamsPutadditionalPropertiesBoxedMap](#fakebodywithqueryparamsputadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakebodywithqueryparamsPutadditionalPropertiesBoxedVoid +public record FakebodywithqueryparamsPutadditionalPropertiesBoxedVoid
+implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakebodywithqueryparamsPutadditionalPropertiesBoxedBoolean +public record FakebodywithqueryparamsPutadditionalPropertiesBoxedBoolean
+implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakebodywithqueryparamsPutadditionalPropertiesBoxedNumber +public record FakebodywithqueryparamsPutadditionalPropertiesBoxedNumber
+implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakebodywithqueryparamsPutadditionalPropertiesBoxedString +public record FakebodywithqueryparamsPutadditionalPropertiesBoxedString
+implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakebodywithqueryparamsPutadditionalPropertiesBoxedList +public record FakebodywithqueryparamsPutadditionalPropertiesBoxedList
+implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutadditionalPropertiesBoxedList(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 | + +## FakebodywithqueryparamsPutadditionalPropertiesBoxedMap +public record FakebodywithqueryparamsPutadditionalPropertiesBoxedMap
+implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutadditionalPropertiesBoxedMap(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 | + +## FakebodywithqueryparamsPutadditionalProperties +public static class FakebodywithqueryparamsPutadditionalProperties
+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/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/QueryParameters.md deleted file mode 100644 index 73898106516..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/QueryParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index c51dc4166a9..486d74d3d19 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.QueryParameters; +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; @@ -70,9 +70,9 @@ FakecasesensitiveparamsPut.Put apiClient = new FakecasesensitiveparamsPut.Put(ap // Map validation -QueryParameters.QueryParametersMap queryParameters = - QueryParameters.QueryParameters1.validate( - new QueryParameters.QueryParametersMapBuilder() +FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters = + FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( + new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMapBuilder() .SomeVar("a") .someVar("a") @@ -124,7 +124,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.QueryParametersMap](../../paths/fakecasesensitiveparams/put/QueryParameters.md#queryparametersmap) | queryParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -136,7 +136,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fakecasesensitiveparams/put/QueryParameters.md#queryparametersmap) | queryParameters | +| [FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparametersmap) | queryParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -170,6 +170,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakecasesensitiveparams/put/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FakecasesensitiveparamsPutQueryParametersFakecasesensitiveparamsPutQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparametersmap) 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..5f7234f94b2 --- /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.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 | + +## 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([FakecasesensitiveparamsPutQueryParametersMap](#fakecasesensitiveparamsputqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakecasesensitiveparamsPutQueryParametersMap](#fakecasesensitiveparamsputqueryparametersmap) | 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.FakecasesensitiveparamsPutQueryParametersMap validatedPayload = + FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( + new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMapBuilder() + .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 = [FakecasesensitiveparamsPutadditionalProperties.class](#fakecasesensitiveparamsputadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakecasesensitiveparamsPutQueryParametersMap](#fakecasesensitiveparamsputqueryparametersmap) | validate([Map<?, ?>](#fakecasesensitiveparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakecasesensitiveparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakecasesensitiveparamsPutQueryParametersMap000Builder +public class FakecasesensitiveparamsPutQueryParametersMap000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutQueryParametersMap000Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutQueryParametersMap001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakecasesensitiveparamsPutQueryParametersMap000Builder](#fakecasesensitiveparamsputqueryparametersmap000builder) | some_var(String value) | + +## FakecasesensitiveparamsPutQueryParametersMap010Builder +public class FakecasesensitiveparamsPutQueryParametersMap010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutQueryParametersMap010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakecasesensitiveparamsPutQueryParametersMap000Builder](#fakecasesensitiveparamsputqueryparametersmap000builder) | someVar(String value) | + +## FakecasesensitiveparamsPutQueryParametersMap011Builder +public class FakecasesensitiveparamsPutQueryParametersMap011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutQueryParametersMap011Builder(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) | + +## FakecasesensitiveparamsPutQueryParametersMap100Builder +public class FakecasesensitiveparamsPutQueryParametersMap100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutQueryParametersMap100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakecasesensitiveparamsPutQueryParametersMap000Builder](#fakecasesensitiveparamsputqueryparametersmap000builder) | SomeVar(String value) | + +## FakecasesensitiveparamsPutQueryParametersMap101Builder +public class FakecasesensitiveparamsPutQueryParametersMap101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutQueryParametersMap101Builder(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) | + +## FakecasesensitiveparamsPutQueryParametersMap110Builder +public class FakecasesensitiveparamsPutQueryParametersMap110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutQueryParametersMap110Builder(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) | + +## FakecasesensitiveparamsPutQueryParametersMapBuilder +public class FakecasesensitiveparamsPutQueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutQueryParametersMapBuilder()
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) | + +## FakecasesensitiveparamsPutQueryParametersMap +public static class FakecasesensitiveparamsPutQueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakecasesensitiveparamsPutQueryParametersMap](#fakecasesensitiveparamsputqueryparametersmap) | of([Map](#fakecasesensitiveparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | SomeVar()
| +| String | someVar()
| +| String | some_var()
| + +## FakecasesensitiveparamsPutadditionalPropertiesBoxed +public sealed interface FakecasesensitiveparamsPutadditionalPropertiesBoxed
+permits
+[FakecasesensitiveparamsPutadditionalPropertiesBoxedVoid](#fakecasesensitiveparamsputadditionalpropertiesboxedvoid), +[FakecasesensitiveparamsPutadditionalPropertiesBoxedBoolean](#fakecasesensitiveparamsputadditionalpropertiesboxedboolean), +[FakecasesensitiveparamsPutadditionalPropertiesBoxedNumber](#fakecasesensitiveparamsputadditionalpropertiesboxednumber), +[FakecasesensitiveparamsPutadditionalPropertiesBoxedString](#fakecasesensitiveparamsputadditionalpropertiesboxedstring), +[FakecasesensitiveparamsPutadditionalPropertiesBoxedList](#fakecasesensitiveparamsputadditionalpropertiesboxedlist), +[FakecasesensitiveparamsPutadditionalPropertiesBoxedMap](#fakecasesensitiveparamsputadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakecasesensitiveparamsPutadditionalPropertiesBoxedVoid +public record FakecasesensitiveparamsPutadditionalPropertiesBoxedVoid
+implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakecasesensitiveparamsPutadditionalPropertiesBoxedBoolean +public record FakecasesensitiveparamsPutadditionalPropertiesBoxedBoolean
+implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakecasesensitiveparamsPutadditionalPropertiesBoxedNumber +public record FakecasesensitiveparamsPutadditionalPropertiesBoxedNumber
+implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakecasesensitiveparamsPutadditionalPropertiesBoxedString +public record FakecasesensitiveparamsPutadditionalPropertiesBoxedString
+implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakecasesensitiveparamsPutadditionalPropertiesBoxedList +public record FakecasesensitiveparamsPutadditionalPropertiesBoxedList
+implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutadditionalPropertiesBoxedList(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 | + +## FakecasesensitiveparamsPutadditionalPropertiesBoxedMap +public record FakecasesensitiveparamsPutadditionalPropertiesBoxedMap
+implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutadditionalPropertiesBoxedMap(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 | + +## FakecasesensitiveparamsPutadditionalProperties +public static class FakecasesensitiveparamsPutadditionalProperties
+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/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/QueryParameters.md deleted file mode 100644 index f374bd91398..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/QueryParameters.md +++ /dev/null @@ -1,375 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index 58f198ade9d..b7d8e7d5ea2 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.PathParameters; +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; @@ -71,9 +71,9 @@ FakedeletecoffeeidDelete.Delete apiClient = new FakedeletecoffeeidDelete.Delete( // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters = + FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( + new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMapBuilder() .id("a") .build(), @@ -124,7 +124,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/fakedeletecoffeeid/delete/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -136,7 +136,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/fakedeletecoffeeid/delete/PathParameters.md#pathparametersmap) | pathParameters | +| [FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparametersmap) | pathParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -170,6 +170,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/fakedeletecoffeeid/delete/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([FakedeletecoffeeidDeletePathParametersFakedeletecoffeeidDeletePathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparametersmap) 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..eb755ab6b0d --- /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.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 | + +## 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([FakedeletecoffeeidDeletePathParametersMap](#fakedeletecoffeeiddeletepathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakedeletecoffeeidDeletePathParametersMap](#fakedeletecoffeeiddeletepathparametersmap) | 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.FakedeletecoffeeidDeletePathParametersMap validatedPayload = + FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( + new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMapBuilder() + .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 = [FakedeletecoffeeidDeleteadditionalProperties.class](#fakedeletecoffeeiddeleteadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakedeletecoffeeidDeletePathParametersMap](#fakedeletecoffeeiddeletepathparametersmap) | validate([Map<?, ?>](#fakedeletecoffeeiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeletecoffeeiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakedeletecoffeeidDeletePathParametersMap0Builder +public class FakedeletecoffeeidDeletePathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeletePathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeletePathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakedeletecoffeeidDeletePathParametersMap0Builder](#fakedeletecoffeeiddeletepathparametersmap0builder) | id(String value) | + +## FakedeletecoffeeidDeletePathParametersMap +public static class FakedeletecoffeeidDeletePathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakedeletecoffeeidDeletePathParametersMap](#fakedeletecoffeeiddeletepathparametersmap) | of([Map](#fakedeletecoffeeiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | id()
| + +## FakedeletecoffeeidDeleteadditionalPropertiesBoxed +public sealed interface FakedeletecoffeeidDeleteadditionalPropertiesBoxed
+permits
+[FakedeletecoffeeidDeleteadditionalPropertiesBoxedVoid](#fakedeletecoffeeiddeleteadditionalpropertiesboxedvoid), +[FakedeletecoffeeidDeleteadditionalPropertiesBoxedBoolean](#fakedeletecoffeeiddeleteadditionalpropertiesboxedboolean), +[FakedeletecoffeeidDeleteadditionalPropertiesBoxedNumber](#fakedeletecoffeeiddeleteadditionalpropertiesboxednumber), +[FakedeletecoffeeidDeleteadditionalPropertiesBoxedString](#fakedeletecoffeeiddeleteadditionalpropertiesboxedstring), +[FakedeletecoffeeidDeleteadditionalPropertiesBoxedList](#fakedeletecoffeeiddeleteadditionalpropertiesboxedlist), +[FakedeletecoffeeidDeleteadditionalPropertiesBoxedMap](#fakedeletecoffeeiddeleteadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakedeletecoffeeidDeleteadditionalPropertiesBoxedVoid +public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedVoid
+implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakedeletecoffeeidDeleteadditionalPropertiesBoxedBoolean +public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedBoolean
+implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakedeletecoffeeidDeleteadditionalPropertiesBoxedNumber +public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedNumber
+implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakedeletecoffeeidDeleteadditionalPropertiesBoxedString +public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedString
+implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakedeletecoffeeidDeleteadditionalPropertiesBoxedList +public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedList
+implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeleteadditionalPropertiesBoxedList(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 | + +## FakedeletecoffeeidDeleteadditionalPropertiesBoxedMap +public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedMap
+implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeleteadditionalPropertiesBoxedMap(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 | + +## FakedeletecoffeeidDeleteadditionalProperties +public static class FakedeletecoffeeidDeleteadditionalProperties
+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/PathParameters.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/PathParameters.md deleted file mode 100644 index 7f4d342867e..00000000000 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/PathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index 0f1e6640e42..ee21aab0ead 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -33,7 +33,7 @@ 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.QueryParameters; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -115,7 +115,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 | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fakeinlinecomposition/post/QueryParameters.md#queryparametersmap) | queryParameters
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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -134,7 +134,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([QueryParametersQueryParametersMap](../../paths/fakeinlinecomposition/post/QueryParameters.md#queryparametersmap) queryParameters)
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) | 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 new file mode 100644 index 00000000000..c741dbb86a4 --- /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.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 | + +## 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([FakeinlinecompositionPostQueryParametersMap](#fakeinlinecompositionpostqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeinlinecompositionPostQueryParametersMap](#fakeinlinecompositionpostqueryparametersmap) | 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.FakeinlinecompositionPostQueryParametersMap validatedPayload = + FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1.validate( + new FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParametersMapBuilder() + .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 = [FakeinlinecompositionPostadditionalProperties.class](#fakeinlinecompositionpostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeinlinecompositionPostQueryParametersMap](#fakeinlinecompositionpostqueryparametersmap) | validate([Map<?, ?>](#fakeinlinecompositionpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeinlinecompositionpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakeinlinecompositionPostQueryParametersMapBuilder +public class FakeinlinecompositionPostQueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostQueryParametersMapBuilder()
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
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakeinlinecompositionPostQueryParametersMap](#fakeinlinecompositionpostqueryparametersmap) | of([Map](#fakeinlinecompositionpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | compositionAtRoot()
[optional] | +| [Schema1.SchemaMap1](../../../paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md#schemamap1) | compositionInProperty()
[optional] | + +## FakeinlinecompositionPostadditionalPropertiesBoxed +public sealed interface FakeinlinecompositionPostadditionalPropertiesBoxed
+permits
+[FakeinlinecompositionPostadditionalPropertiesBoxedVoid](#fakeinlinecompositionpostadditionalpropertiesboxedvoid), +[FakeinlinecompositionPostadditionalPropertiesBoxedBoolean](#fakeinlinecompositionpostadditionalpropertiesboxedboolean), +[FakeinlinecompositionPostadditionalPropertiesBoxedNumber](#fakeinlinecompositionpostadditionalpropertiesboxednumber), +[FakeinlinecompositionPostadditionalPropertiesBoxedString](#fakeinlinecompositionpostadditionalpropertiesboxedstring), +[FakeinlinecompositionPostadditionalPropertiesBoxedList](#fakeinlinecompositionpostadditionalpropertiesboxedlist), +[FakeinlinecompositionPostadditionalPropertiesBoxedMap](#fakeinlinecompositionpostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeinlinecompositionPostadditionalPropertiesBoxedVoid +public record FakeinlinecompositionPostadditionalPropertiesBoxedVoid
+implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeinlinecompositionPostadditionalPropertiesBoxedBoolean +public record FakeinlinecompositionPostadditionalPropertiesBoxedBoolean
+implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeinlinecompositionPostadditionalPropertiesBoxedNumber +public record FakeinlinecompositionPostadditionalPropertiesBoxedNumber
+implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeinlinecompositionPostadditionalPropertiesBoxedString +public record FakeinlinecompositionPostadditionalPropertiesBoxedString
+implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeinlinecompositionPostadditionalPropertiesBoxedList +public record FakeinlinecompositionPostadditionalPropertiesBoxedList
+implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostadditionalPropertiesBoxedList(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 | + +## FakeinlinecompositionPostadditionalPropertiesBoxedMap +public record FakeinlinecompositionPostadditionalPropertiesBoxedMap
+implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostadditionalPropertiesBoxedMap(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 | + +## FakeinlinecompositionPostadditionalProperties +public static class FakeinlinecompositionPostadditionalProperties
+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/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/QueryParameters.md deleted file mode 100644 index 49af6fa33c5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/QueryParameters.md +++ /dev/null @@ -1,264 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index 55c2a541881..6aca3f74487 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -31,7 +31,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.paths.fakeobjinquery.get.QueryParameters; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -106,7 +106,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fakeobjinquery/get/QueryParameters.md#queryparametersmap) | queryParameters
optional | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -124,7 +124,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([QueryParametersQueryParametersMap](../../paths/fakeobjinquery/get/QueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [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) | 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 new file mode 100644 index 00000000000..454d5ae13a2 --- /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.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 | + +## 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([FakeobjinqueryGetQueryParametersMap](#fakeobjinquerygetqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeobjinqueryGetQueryParametersMap](#fakeobjinquerygetqueryparametersmap) | 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.FakeobjinqueryGetQueryParametersMap validatedPayload = + FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1.validate( + new FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParametersMapBuilder() + .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 = [FakeobjinqueryGetadditionalProperties.class](#fakeobjinquerygetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeobjinqueryGetQueryParametersMap](#fakeobjinquerygetqueryparametersmap) | validate([Map<?, ?>](#fakeobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakeobjinqueryGetQueryParametersMapBuilder +public class FakeobjinqueryGetQueryParametersMapBuilder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeobjinqueryGetQueryParametersMapBuilder()
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) | + +## FakeobjinqueryGetQueryParametersMap +public static class FakeobjinqueryGetQueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakeobjinqueryGetQueryParametersMap](#fakeobjinquerygetqueryparametersmap) | of([Map>](#fakeobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Schema0.SchemaMap0](../../../paths/fakeobjinquery/get/parameters/parameter0/Schema0.md#schemamap0) | mapBean()
[optional] | + +## FakeobjinqueryGetadditionalPropertiesBoxed +public sealed interface FakeobjinqueryGetadditionalPropertiesBoxed
+permits
+[FakeobjinqueryGetadditionalPropertiesBoxedVoid](#fakeobjinquerygetadditionalpropertiesboxedvoid), +[FakeobjinqueryGetadditionalPropertiesBoxedBoolean](#fakeobjinquerygetadditionalpropertiesboxedboolean), +[FakeobjinqueryGetadditionalPropertiesBoxedNumber](#fakeobjinquerygetadditionalpropertiesboxednumber), +[FakeobjinqueryGetadditionalPropertiesBoxedString](#fakeobjinquerygetadditionalpropertiesboxedstring), +[FakeobjinqueryGetadditionalPropertiesBoxedList](#fakeobjinquerygetadditionalpropertiesboxedlist), +[FakeobjinqueryGetadditionalPropertiesBoxedMap](#fakeobjinquerygetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeobjinqueryGetadditionalPropertiesBoxedVoid +public record FakeobjinqueryGetadditionalPropertiesBoxedVoid
+implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeobjinqueryGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeobjinqueryGetadditionalPropertiesBoxedBoolean +public record FakeobjinqueryGetadditionalPropertiesBoxedBoolean
+implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeobjinqueryGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeobjinqueryGetadditionalPropertiesBoxedNumber +public record FakeobjinqueryGetadditionalPropertiesBoxedNumber
+implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeobjinqueryGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeobjinqueryGetadditionalPropertiesBoxedString +public record FakeobjinqueryGetadditionalPropertiesBoxedString
+implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeobjinqueryGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeobjinqueryGetadditionalPropertiesBoxedList +public record FakeobjinqueryGetadditionalPropertiesBoxedList
+implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeobjinqueryGetadditionalPropertiesBoxedList(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 | + +## FakeobjinqueryGetadditionalPropertiesBoxedMap +public record FakeobjinqueryGetadditionalPropertiesBoxedMap
+implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeobjinqueryGetadditionalPropertiesBoxedMap(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 | + +## FakeobjinqueryGetadditionalProperties +public static class FakeobjinqueryGetadditionalProperties
+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/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/QueryParameters.md deleted file mode 100644 index 4c6bb23a701..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/QueryParameters.md +++ /dev/null @@ -1,258 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index ca576036873..f6e7cddf863 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -34,11 +34,11 @@ import org.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.HeaderParameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.QueryParameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.CookieParameters; +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.PathParameters; +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; @@ -74,9 +74,9 @@ Fakeparametercollisions1ababselfabPost.Post apiClient = new Fakeparametercollisi // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters = + Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( + new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() .positive1("a") .aHyphenMinusB("a") @@ -134,11 +134,11 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/PathParameters.md#pathparametersmap) | pathParameters | +| [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparametersmap) | pathParameters | | [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md#headerparametersmap) | headerParameters
optional | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/QueryParameters.md#queryparametersmap) | queryParameters
optional | -| [CookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/CookieParameters.md#cookieparametersmap) | cookieParameters
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 | | [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 | @@ -150,11 +150,11 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/PathParameters.md#pathparametersmap) | pathParameters | +| [Fakeparametercollisions1ababselfabPostPathParameters.@Nullable Fakeparametercollisions1ababselfabPostPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparametersmap) | pathParameters | | [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md#headerparametersmap) | headerParameters | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/QueryParameters.md#queryparametersmap) | queryParameters | -| [CookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/CookieParameters.md#cookieparametersmap) | cookieParameters | +| [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 | | @Nullable Duration | timeout | @@ -173,9 +173,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([HeaderParametersHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/QueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | cookieParameters([CookieParametersCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/CookieParameters.md#cookieparametersmap) cookieParameters)
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) | 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 | @@ -192,6 +192,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([Fakeparametercollisions1ababselfabPostPathParametersFakeparametercollisions1ababselfabPostPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md deleted file mode 100644 index bb7f88699c9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md +++ /dev/null @@ -1,267 +0,0 @@ -# CookieParameters -public class CookieParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [CookieParameters.CookieParameters1Boxed](#cookieparameters1boxed)
sealed interface for validated payloads | -| record | [CookieParameters.CookieParameters1BoxedMap](#cookieparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [CookieParameters.CookieParameters1](#cookieparameters1)
schema class | -| static class | [CookieParameters.CookieParametersMapBuilder](#cookieparametersmapbuilder)
builder for Map payloads | -| static class | [CookieParameters.CookieParametersMap](#cookieparametersmap)
output class for Map payloads | -| sealed interface | [CookieParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CookieParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CookieParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CookieParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CookieParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CookieParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CookieParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CookieParameters.AdditionalProperties](#additionalproperties)
schema class | - -## CookieParameters1Boxed -public sealed interface CookieParameters1Boxed
-permits
-[CookieParameters1BoxedMap](#cookieparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## CookieParameters1BoxedMap -public record CookieParameters1BoxedMap
-implements [CookieParameters1Boxed](#cookieparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CookieParameters1BoxedMap([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 | - -## CookieParameters1 -public static class CookieParameters1
-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.CookieParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -CookieParameters.CookieParametersMap validatedPayload = - CookieParameters.CookieParameters1.validate( - new CookieParameters.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) | -| [CookieParameters1BoxedMap](#cookieparameters1boxedmap) | validateAndBox([Map<?, ?>](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CookieParameters1Boxed](#cookieparameters1boxed) | 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/Fakeparametercollisions1ababselfabPostCookieParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md new file mode 100644 index 00000000000..aa5cbc51772 --- /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.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 | + +## 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([Fakeparametercollisions1ababselfabPostCookieParametersMap](#fakeparametercollisions1ababselfabpostcookieparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostCookieParametersMap](#fakeparametercollisions1ababselfabpostcookieparametersmap) | 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.Fakeparametercollisions1ababselfabPostCookieParametersMap validatedPayload = + Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1.validate( + new Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder() + .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 = [Fakeparametercollisions1ababselfabPostadditionalProperties.class](#fakeparametercollisions1ababselfabpostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostCookieParametersMap](#fakeparametercollisions1ababselfabpostcookieparametersmap) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder +public class Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder()
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
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [Fakeparametercollisions1ababselfabPostCookieParametersMap](#fakeparametercollisions1ababselfabpostcookieparametersmap) | of([Map](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) 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
+permits
+[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList(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 | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap(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 | + +## Fakeparametercollisions1ababselfabPostadditionalProperties +public static class Fakeparametercollisions1ababselfabPostadditionalProperties
+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..469ac3b89ee --- /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.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 | + +## 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([Fakeparametercollisions1ababselfabPostHeaderParametersMap](#fakeparametercollisions1ababselfabpostheaderparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostHeaderParametersMap](#fakeparametercollisions1ababselfabpostheaderparametersmap) | 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.Fakeparametercollisions1ababselfabPostHeaderParametersMap validatedPayload = + Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1.validate( + new Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder() + .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 = [Fakeparametercollisions1ababselfabPostadditionalProperties.class](#fakeparametercollisions1ababselfabpostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostHeaderParametersMap](#fakeparametercollisions1ababselfabpostheaderparametersmap) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder +public class Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder()
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) | + +## Fakeparametercollisions1ababselfabPostHeaderParametersMap +public static class Fakeparametercollisions1ababselfabPostHeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [Fakeparametercollisions1ababselfabPostHeaderParametersMap](#fakeparametercollisions1ababselfabpostheaderparametersmap) | of([Map](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) 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
+permits
+[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList(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 | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap(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 | + +## Fakeparametercollisions1ababselfabPostadditionalProperties +public static class Fakeparametercollisions1ababselfabPostadditionalProperties
+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..7585710f95e --- /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.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 | + +## 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([Fakeparametercollisions1ababselfabPostPathParametersMap](#fakeparametercollisions1ababselfabpostpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostPathParametersMap](#fakeparametercollisions1ababselfabpostpathparametersmap) | 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.Fakeparametercollisions1ababselfabPostPathParametersMap validatedPayload = + Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( + new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() + .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 = [Fakeparametercollisions1ababselfabPostadditionalProperties.class](#fakeparametercollisions1ababselfabpostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostPathParametersMap](#fakeparametercollisions1ababselfabpostpathparametersmap) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | self(String value) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | aB(String value) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | Ab(String value) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | aHyphenMinusB(String value) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | positive1(String value) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder +public class Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder(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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMapBuilder +public class Fakeparametercollisions1ababselfabPostPathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParametersMapBuilder()
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) | + +## Fakeparametercollisions1ababselfabPostPathParametersMap +public static class Fakeparametercollisions1ababselfabPostPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [Fakeparametercollisions1ababselfabPostPathParametersMap](#fakeparametercollisions1ababselfabpostpathparametersmap) | of([Map](#fakeparametercollisions1ababselfabpostpathparametersmapbuilder) 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
+permits
+[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList(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 | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap(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 | + +## Fakeparametercollisions1ababselfabPostadditionalProperties +public static class Fakeparametercollisions1ababselfabPostadditionalProperties
+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..e791e7eae15 --- /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.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 | + +## 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([Fakeparametercollisions1ababselfabPostQueryParametersMap](#fakeparametercollisions1ababselfabpostqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostQueryParametersMap](#fakeparametercollisions1ababselfabpostqueryparametersmap) | 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.Fakeparametercollisions1ababselfabPostQueryParametersMap validatedPayload = + Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1.validate( + new Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder() + .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 = [Fakeparametercollisions1ababselfabPostadditionalProperties.class](#fakeparametercollisions1ababselfabpostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostQueryParametersMap](#fakeparametercollisions1ababselfabpostqueryparametersmap) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder +public class Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder()
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
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [Fakeparametercollisions1ababselfabPostQueryParametersMap](#fakeparametercollisions1ababselfabpostqueryparametersmap) | of([Map](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) 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
+permits
+[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist), +[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList(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 | + +## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap +public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap
+implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap(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 | + +## Fakeparametercollisions1ababselfabPostadditionalProperties +public static class Fakeparametercollisions1ababselfabPostadditionalProperties
+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/HeaderParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md deleted file mode 100644 index 2a5dbe5fed5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md +++ /dev/null @@ -1,263 +0,0 @@ -# HeaderParameters -public class HeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [HeaderParameters.HeaderParameters1Boxed](#headerparameters1boxed)
sealed interface for validated payloads | -| record | [HeaderParameters.HeaderParameters1BoxedMap](#headerparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.HeaderParameters1](#headerparameters1)
schema class | -| static class | [HeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [HeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [HeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## HeaderParameters1Boxed -public sealed interface HeaderParameters1Boxed
-permits
-[HeaderParameters1BoxedMap](#headerparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## HeaderParameters1BoxedMap -public record HeaderParameters1BoxedMap
-implements [HeaderParameters1Boxed](#headerparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParameters1BoxedMap([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 | - -## HeaderParameters1 -public static class HeaderParameters1
-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.HeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -HeaderParameters.HeaderParametersMap validatedPayload = - HeaderParameters.HeaderParameters1.validate( - new HeaderParameters.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) | -| [HeaderParameters1BoxedMap](#headerparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [HeaderParameters1Boxed](#headerparameters1boxed) | 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/PathParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md deleted file mode 100644 index 0a3a341c225..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md +++ /dev/null @@ -1,808 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md deleted file mode 100644 index a4c08e40129..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md +++ /dev/null @@ -1,267 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index 046aeb224fd..fd2056ca06d 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -36,7 +36,7 @@ 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.PathParameters; +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; @@ -80,9 +80,9 @@ FakepetiduploadimagewithrequiredfilePost.Post apiClient = new Fakepetiduploadima // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters = + FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( + new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() .petId(1L) .build(), @@ -132,7 +132,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex
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 | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([FakepetiduploadimagewithrequiredfilePostPathParametersFakepetiduploadimagewithrequiredfilePostPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparametersmap) 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..d22af4b6f75 --- /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.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 | + +## 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([FakepetiduploadimagewithrequiredfilePostPathParametersMap](#fakepetiduploadimagewithrequiredfilepostpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakepetiduploadimagewithrequiredfilePostPathParametersMap](#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | 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.FakepetiduploadimagewithrequiredfilePostPathParametersMap validatedPayload = + FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( + new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() + .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 = [FakepetiduploadimagewithrequiredfilePostadditionalProperties.class](#fakepetiduploadimagewithrequiredfilepostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakepetiduploadimagewithrequiredfilePostPathParametersMap](#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | validate([Map<?, ?>](#fakepetiduploadimagewithrequiredfilepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakepetiduploadimagewithrequiredfilepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder +public class FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder()
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) | + +## FakepetiduploadimagewithrequiredfilePostPathParametersMap +public static class FakepetiduploadimagewithrequiredfilePostPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakepetiduploadimagewithrequiredfilePostPathParametersMap](#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | of([Map](#fakepetiduploadimagewithrequiredfilepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed +public sealed interface FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed
+permits
+[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedVoid](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedvoid), +[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedBoolean](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedboolean), +[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedNumber](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxednumber), +[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedString](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedstring), +[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedList](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedlist), +[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedMap](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedVoid +public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedVoid
+implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedBoolean +public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedBoolean
+implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedNumber +public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedNumber
+implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedString +public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedString
+implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedList +public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedList
+implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedList(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 | + +## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedMap +public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedMap
+implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedMap(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 | + +## FakepetiduploadimagewithrequiredfilePostadditionalProperties +public static class FakepetiduploadimagewithrequiredfilePostadditionalProperties
+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/PathParameters.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md deleted file mode 100644 index fc76860f3f1..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index c5ee599926a..c8c66e94c89 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.QueryParameters; +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; @@ -70,9 +70,9 @@ FakequeryparamwithjsoncontenttypeGet.Get apiClient = new Fakequeryparamwithjsonc // Map validation -QueryParameters.QueryParametersMap queryParameters = - QueryParameters.QueryParameters1.validate( - new QueryParameters.QueryParametersMapBuilder() +FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters = + FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( + new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() .build(), schemaConfiguration ); @@ -120,7 +120,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.QueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md#queryparametersmap) | queryParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -132,7 +132,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md#queryparametersmap) | queryParameters | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | queryParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -166,6 +166,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([FakequeryparamwithjsoncontenttypeGetQueryParametersFakequeryparamwithjsoncontenttypeGetQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparametersmap) 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..da87a34b4ff --- /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.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 | + +## 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([FakequeryparamwithjsoncontenttypeGetQueryParametersMap](#fakequeryparamwithjsoncontenttypegetqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap](#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | 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.FakequeryparamwithjsoncontenttypeGetQueryParametersMap validatedPayload = + FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( + new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() + .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 = [FakequeryparamwithjsoncontenttypeGetadditionalProperties.class](#fakequeryparamwithjsoncontenttypegetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap](#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | validate([Map<?, ?>](#fakequeryparamwithjsoncontenttypegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakequeryparamwithjsoncontenttypegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder +public class FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder()
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
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakequeryparamwithjsoncontenttypeGetQueryParametersMap](#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | of([Map](#fakequeryparamwithjsoncontenttypegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | someParam()
| + +## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed +public sealed interface FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed
+permits
+[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedVoid](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedvoid), +[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedBoolean](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedboolean), +[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedNumber](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxednumber), +[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedString](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedstring), +[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedList](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedlist), +[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedMap](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedVoid +public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedVoid
+implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedBoolean +public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedBoolean
+implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedNumber +public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedNumber
+implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedString +public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedString
+implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedList +public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedList
+implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedList(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 | + +## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedMap +public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedMap
+implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedMap(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 | + +## FakequeryparamwithjsoncontenttypeGetadditionalProperties +public static class FakequeryparamwithjsoncontenttypeGetadditionalProperties
+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/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md deleted file mode 100644 index e5511de70d1..00000000000 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md +++ /dev/null @@ -1,274 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index 4a189c1c7bf..63d38f5671d 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -31,7 +31,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.paths.fakerefobjinquery.get.QueryParameters; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -106,7 +106,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/fakerefobjinquery/get/QueryParameters.md#queryparametersmap) | queryParameters
optional | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -124,7 +124,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([QueryParametersQueryParametersMap](../../paths/fakerefobjinquery/get/QueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [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) | 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 new file mode 100644 index 00000000000..53a2d3b33d2 --- /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.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 | + +## 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([FakerefobjinqueryGetQueryParametersMap](#fakerefobjinquerygetqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefobjinqueryGetQueryParametersMap](#fakerefobjinquerygetqueryparametersmap) | 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.FakerefobjinqueryGetQueryParametersMap validatedPayload = + FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1.validate( + new FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParametersMapBuilder() + .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 = [FakerefobjinqueryGetadditionalProperties.class](#fakerefobjinquerygetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefobjinqueryGetQueryParametersMap](#fakerefobjinquerygetqueryparametersmap) | validate([Map<?, ?>](#fakerefobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakerefobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FakerefobjinqueryGetQueryParametersMapBuilder +public class FakerefobjinqueryGetQueryParametersMapBuilder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefobjinqueryGetQueryParametersMapBuilder()
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) | + +## FakerefobjinqueryGetQueryParametersMap +public static class FakerefobjinqueryGetQueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FakerefobjinqueryGetQueryParametersMap](#fakerefobjinquerygetqueryparametersmap) | of([Map>](#fakerefobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Foo.FooMap](../../../components/schemas/Foo.md#foomap) | mapBean()
[optional] | + +## FakerefobjinqueryGetadditionalPropertiesBoxed +public sealed interface FakerefobjinqueryGetadditionalPropertiesBoxed
+permits
+[FakerefobjinqueryGetadditionalPropertiesBoxedVoid](#fakerefobjinquerygetadditionalpropertiesboxedvoid), +[FakerefobjinqueryGetadditionalPropertiesBoxedBoolean](#fakerefobjinquerygetadditionalpropertiesboxedboolean), +[FakerefobjinqueryGetadditionalPropertiesBoxedNumber](#fakerefobjinquerygetadditionalpropertiesboxednumber), +[FakerefobjinqueryGetadditionalPropertiesBoxedString](#fakerefobjinquerygetadditionalpropertiesboxedstring), +[FakerefobjinqueryGetadditionalPropertiesBoxedList](#fakerefobjinquerygetadditionalpropertiesboxedlist), +[FakerefobjinqueryGetadditionalPropertiesBoxedMap](#fakerefobjinquerygetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakerefobjinqueryGetadditionalPropertiesBoxedVoid +public record FakerefobjinqueryGetadditionalPropertiesBoxedVoid
+implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefobjinqueryGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakerefobjinqueryGetadditionalPropertiesBoxedBoolean +public record FakerefobjinqueryGetadditionalPropertiesBoxedBoolean
+implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefobjinqueryGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakerefobjinqueryGetadditionalPropertiesBoxedNumber +public record FakerefobjinqueryGetadditionalPropertiesBoxedNumber
+implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefobjinqueryGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakerefobjinqueryGetadditionalPropertiesBoxedString +public record FakerefobjinqueryGetadditionalPropertiesBoxedString
+implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefobjinqueryGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakerefobjinqueryGetadditionalPropertiesBoxedList +public record FakerefobjinqueryGetadditionalPropertiesBoxedList
+implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefobjinqueryGetadditionalPropertiesBoxedList(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 | + +## FakerefobjinqueryGetadditionalPropertiesBoxedMap +public record FakerefobjinqueryGetadditionalPropertiesBoxedMap
+implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefobjinqueryGetadditionalPropertiesBoxedMap(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 | + +## FakerefobjinqueryGetadditionalProperties +public static class FakerefobjinqueryGetadditionalProperties
+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/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/QueryParameters.md deleted file mode 100644 index 8af143cb246..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/QueryParameters.md +++ /dev/null @@ -1,258 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index f10ec6b8395..c14bbbebf72 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.QueryParameters; +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; @@ -70,9 +70,9 @@ FaketestqueryparamtersPut.Put apiClient = new FaketestqueryparamtersPut.Put(apiC // Map validation -QueryParameters.QueryParametersMap queryParameters = - QueryParameters.QueryParameters1.validate( - new QueryParameters.QueryParametersMapBuilder() +FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters = + FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( + new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMapBuilder() .context( Arrays.asList( "a" @@ -145,7 +145,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.QueryParametersMap](../../paths/faketestqueryparamters/put/QueryParameters.md#queryparametersmap) | queryParameters | +| [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 | | @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 | | ----------------- | --------------------- | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/faketestqueryparamters/put/QueryParameters.md#queryparametersmap) | queryParameters | +| [FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparametersmap) | queryParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -191,6 +191,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/faketestqueryparamters/put/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FaketestqueryparamtersPutQueryParametersFaketestqueryparamtersPutQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparametersmap) 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..4e6592928d0 --- /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.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 | + +## 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([FaketestqueryparamtersPutQueryParametersMap](#faketestqueryparamtersputqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutQueryParametersMap](#faketestqueryparamtersputqueryparametersmap) | 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.FaketestqueryparamtersPutQueryParametersMap validatedPayload = + FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( + new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMapBuilder() + .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 = [FaketestqueryparamtersPutadditionalProperties.class](#faketestqueryparamtersputadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutQueryParametersMap](#faketestqueryparamtersputqueryparametersmap) | validate([Map<?, ?>](#faketestqueryparamtersputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#faketestqueryparamtersputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## FaketestqueryparamtersPutQueryParametersMap000000Builder +public class FaketestqueryparamtersPutQueryParametersMap000000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap000000Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap000001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | url(List value) | + +## FaketestqueryparamtersPutQueryParametersMap000010Builder +public class FaketestqueryparamtersPutQueryParametersMap000010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap000010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | refParam(String value) | + +## FaketestqueryparamtersPutQueryParametersMap000011Builder +public class FaketestqueryparamtersPutQueryParametersMap000011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap000011Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap000100Builder +public class FaketestqueryparamtersPutQueryParametersMap000100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap000100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | pipe(List value) | + +## FaketestqueryparamtersPutQueryParametersMap000101Builder +public class FaketestqueryparamtersPutQueryParametersMap000101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap000101Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap000110Builder +public class FaketestqueryparamtersPutQueryParametersMap000110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap000110Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap000111Builder +public class FaketestqueryparamtersPutQueryParametersMap000111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap000111Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap001000Builder +public class FaketestqueryparamtersPutQueryParametersMap001000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap001000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | ioutil(List value) | + +## FaketestqueryparamtersPutQueryParametersMap001001Builder +public class FaketestqueryparamtersPutQueryParametersMap001001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap001001Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap001010Builder +public class FaketestqueryparamtersPutQueryParametersMap001010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap001010Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap001011Builder +public class FaketestqueryparamtersPutQueryParametersMap001011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap001011Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap001100Builder +public class FaketestqueryparamtersPutQueryParametersMap001100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap001100Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap001101Builder +public class FaketestqueryparamtersPutQueryParametersMap001101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap001101Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap001110Builder +public class FaketestqueryparamtersPutQueryParametersMap001110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap001110Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap001111Builder +public class FaketestqueryparamtersPutQueryParametersMap001111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap001111Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap010000Builder +public class FaketestqueryparamtersPutQueryParametersMap010000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap010000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | http(List value) | + +## FaketestqueryparamtersPutQueryParametersMap010001Builder +public class FaketestqueryparamtersPutQueryParametersMap010001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap010001Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap010010Builder +public class FaketestqueryparamtersPutQueryParametersMap010010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap010010Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap010011Builder +public class FaketestqueryparamtersPutQueryParametersMap010011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap010011Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap010100Builder +public class FaketestqueryparamtersPutQueryParametersMap010100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap010100Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap010101Builder +public class FaketestqueryparamtersPutQueryParametersMap010101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap010101Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap010110Builder +public class FaketestqueryparamtersPutQueryParametersMap010110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap010110Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap010111Builder +public class FaketestqueryparamtersPutQueryParametersMap010111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap010111Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap011000Builder +public class FaketestqueryparamtersPutQueryParametersMap011000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap011000Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap011001Builder +public class FaketestqueryparamtersPutQueryParametersMap011001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap011001Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap011010Builder +public class FaketestqueryparamtersPutQueryParametersMap011010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap011010Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap011011Builder +public class FaketestqueryparamtersPutQueryParametersMap011011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap011011Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap011100Builder +public class FaketestqueryparamtersPutQueryParametersMap011100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap011100Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap011101Builder +public class FaketestqueryparamtersPutQueryParametersMap011101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap011101Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap011110Builder +public class FaketestqueryparamtersPutQueryParametersMap011110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap011110Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap011111Builder +public class FaketestqueryparamtersPutQueryParametersMap011111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap011111Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap100000Builder +public class FaketestqueryparamtersPutQueryParametersMap100000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap100000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | context(List value) | + +## FaketestqueryparamtersPutQueryParametersMap100001Builder +public class FaketestqueryparamtersPutQueryParametersMap100001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap100001Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap100010Builder +public class FaketestqueryparamtersPutQueryParametersMap100010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap100010Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap100011Builder +public class FaketestqueryparamtersPutQueryParametersMap100011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap100011Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap100100Builder +public class FaketestqueryparamtersPutQueryParametersMap100100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap100100Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap100101Builder +public class FaketestqueryparamtersPutQueryParametersMap100101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap100101Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap100110Builder +public class FaketestqueryparamtersPutQueryParametersMap100110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap100110Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap100111Builder +public class FaketestqueryparamtersPutQueryParametersMap100111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap100111Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap101000Builder +public class FaketestqueryparamtersPutQueryParametersMap101000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap101000Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap101001Builder +public class FaketestqueryparamtersPutQueryParametersMap101001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap101001Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap101010Builder +public class FaketestqueryparamtersPutQueryParametersMap101010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap101010Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap101011Builder +public class FaketestqueryparamtersPutQueryParametersMap101011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap101011Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap101100Builder +public class FaketestqueryparamtersPutQueryParametersMap101100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap101100Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap101101Builder +public class FaketestqueryparamtersPutQueryParametersMap101101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap101101Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap101110Builder +public class FaketestqueryparamtersPutQueryParametersMap101110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap101110Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap101111Builder +public class FaketestqueryparamtersPutQueryParametersMap101111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap101111Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap110000Builder +public class FaketestqueryparamtersPutQueryParametersMap110000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap110000Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap110001Builder +public class FaketestqueryparamtersPutQueryParametersMap110001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap110001Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap110010Builder +public class FaketestqueryparamtersPutQueryParametersMap110010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap110010Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap110011Builder +public class FaketestqueryparamtersPutQueryParametersMap110011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap110011Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap110100Builder +public class FaketestqueryparamtersPutQueryParametersMap110100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap110100Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap110101Builder +public class FaketestqueryparamtersPutQueryParametersMap110101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap110101Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap110110Builder +public class FaketestqueryparamtersPutQueryParametersMap110110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap110110Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap110111Builder +public class FaketestqueryparamtersPutQueryParametersMap110111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap110111Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap111000Builder +public class FaketestqueryparamtersPutQueryParametersMap111000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap111000Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap111001Builder +public class FaketestqueryparamtersPutQueryParametersMap111001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap111001Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap111010Builder +public class FaketestqueryparamtersPutQueryParametersMap111010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap111010Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap111011Builder +public class FaketestqueryparamtersPutQueryParametersMap111011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap111011Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap111100Builder +public class FaketestqueryparamtersPutQueryParametersMap111100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap111100Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap111101Builder +public class FaketestqueryparamtersPutQueryParametersMap111101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap111101Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMap111110Builder +public class FaketestqueryparamtersPutQueryParametersMap111110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMap111110Builder(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) | + +## FaketestqueryparamtersPutQueryParametersMapBuilder +public class FaketestqueryparamtersPutQueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParametersMapBuilder()
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) | + +## FaketestqueryparamtersPutQueryParametersMap +public static class FaketestqueryparamtersPutQueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [FaketestqueryparamtersPutQueryParametersMap](#faketestqueryparamtersputqueryparametersmap) | of([Map](#faketestqueryparamtersputqueryparametersmapbuilder) 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()
| + +## FaketestqueryparamtersPutadditionalPropertiesBoxed +public sealed interface FaketestqueryparamtersPutadditionalPropertiesBoxed
+permits
+[FaketestqueryparamtersPutadditionalPropertiesBoxedVoid](#faketestqueryparamtersputadditionalpropertiesboxedvoid), +[FaketestqueryparamtersPutadditionalPropertiesBoxedBoolean](#faketestqueryparamtersputadditionalpropertiesboxedboolean), +[FaketestqueryparamtersPutadditionalPropertiesBoxedNumber](#faketestqueryparamtersputadditionalpropertiesboxednumber), +[FaketestqueryparamtersPutadditionalPropertiesBoxedString](#faketestqueryparamtersputadditionalpropertiesboxedstring), +[FaketestqueryparamtersPutadditionalPropertiesBoxedList](#faketestqueryparamtersputadditionalpropertiesboxedlist), +[FaketestqueryparamtersPutadditionalPropertiesBoxedMap](#faketestqueryparamtersputadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FaketestqueryparamtersPutadditionalPropertiesBoxedVoid +public record FaketestqueryparamtersPutadditionalPropertiesBoxedVoid
+implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FaketestqueryparamtersPutadditionalPropertiesBoxedBoolean +public record FaketestqueryparamtersPutadditionalPropertiesBoxedBoolean
+implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FaketestqueryparamtersPutadditionalPropertiesBoxedNumber +public record FaketestqueryparamtersPutadditionalPropertiesBoxedNumber
+implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FaketestqueryparamtersPutadditionalPropertiesBoxedString +public record FaketestqueryparamtersPutadditionalPropertiesBoxedString
+implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FaketestqueryparamtersPutadditionalPropertiesBoxedList +public record FaketestqueryparamtersPutadditionalPropertiesBoxedList
+implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutadditionalPropertiesBoxedList(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 | + +## FaketestqueryparamtersPutadditionalPropertiesBoxedMap +public record FaketestqueryparamtersPutadditionalPropertiesBoxedMap
+implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutadditionalPropertiesBoxedMap(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 | + +## FaketestqueryparamtersPutadditionalProperties +public static class FaketestqueryparamtersPutadditionalProperties
+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/QueryParameters.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/QueryParameters.md deleted file mode 100644 index bec63067e78..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/QueryParameters.md +++ /dev/null @@ -1,1419 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index 79fa24c2b98..edf395e711c 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -35,7 +35,7 @@ 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.QueryParameters; +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; @@ -84,9 +84,9 @@ PetfindbystatusGet.Get apiClient = new PetfindbystatusGet.Get(apiConfiguration, // Map validation -QueryParameters.QueryParametersMap queryParameters = - QueryParameters.QueryParameters1.validate( - new QueryParameters.QueryParametersMapBuilder() +PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters = + PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( + new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMapBuilder() .status( Arrays.asList( "available" @@ -141,7 +141,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.QueryParametersMap](../../paths/petfindbystatus/get/QueryParameters.md#queryparametersmap) | queryParameters | +| [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparametersmap) | 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 | @@ -154,7 +154,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/petfindbystatus/get/QueryParameters.md#queryparametersmap) | queryParameters | +| [PetfindbystatusGetQueryParameters.@Nullable PetfindbystatusGetQueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparametersmap) | queryParameters | | [PetfindbystatusServerInfo.@Nullable ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) | serverIndex | | [PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -190,6 +190,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/petfindbystatus/get/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbystatusGetQueryParametersPetfindbystatusGetQueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparametersmap) 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 new file mode 100644 index 00000000000..1162afec791 --- /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.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 | + +## 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([PetfindbystatusGetQueryParametersMap](#petfindbystatusgetqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbystatusGetQueryParametersMap](#petfindbystatusgetqueryparametersmap) | 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.PetfindbystatusGetQueryParametersMap validatedPayload = + PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( + new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMapBuilder() + .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 = [PetfindbystatusGetadditionalProperties.class](#petfindbystatusgetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbystatusGetQueryParametersMap](#petfindbystatusgetqueryparametersmap) | validate([Map<?, ?>](#petfindbystatusgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#petfindbystatusgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PetfindbystatusGetQueryParametersMap0Builder +public class PetfindbystatusGetQueryParametersMap0Builder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetQueryParametersMap0Builder(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
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbystatusGetQueryParametersMap0Builder](#petfindbystatusgetqueryparametersmap0builder) | status(List value) | + +## PetfindbystatusGetQueryParametersMap +public static class PetfindbystatusGetQueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PetfindbystatusGetQueryParametersMap](#petfindbystatusgetqueryparametersmap) | of([Map>](#petfindbystatusgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Schema0.SchemaList0](../../../paths/petfindbystatus/get/parameters/parameter0/Schema0.md#schemalist0) | status()
| + +## PetfindbystatusGetadditionalPropertiesBoxed +public sealed interface PetfindbystatusGetadditionalPropertiesBoxed
+permits
+[PetfindbystatusGetadditionalPropertiesBoxedVoid](#petfindbystatusgetadditionalpropertiesboxedvoid), +[PetfindbystatusGetadditionalPropertiesBoxedBoolean](#petfindbystatusgetadditionalpropertiesboxedboolean), +[PetfindbystatusGetadditionalPropertiesBoxedNumber](#petfindbystatusgetadditionalpropertiesboxednumber), +[PetfindbystatusGetadditionalPropertiesBoxedString](#petfindbystatusgetadditionalpropertiesboxedstring), +[PetfindbystatusGetadditionalPropertiesBoxedList](#petfindbystatusgetadditionalpropertiesboxedlist), +[PetfindbystatusGetadditionalPropertiesBoxedMap](#petfindbystatusgetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetfindbystatusGetadditionalPropertiesBoxedVoid +public record PetfindbystatusGetadditionalPropertiesBoxedVoid
+implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbystatusGetadditionalPropertiesBoxedBoolean +public record PetfindbystatusGetadditionalPropertiesBoxedBoolean
+implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbystatusGetadditionalPropertiesBoxedNumber +public record PetfindbystatusGetadditionalPropertiesBoxedNumber
+implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbystatusGetadditionalPropertiesBoxedString +public record PetfindbystatusGetadditionalPropertiesBoxedString
+implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbystatusGetadditionalPropertiesBoxedList +public record PetfindbystatusGetadditionalPropertiesBoxedList
+implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetadditionalPropertiesBoxedList(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 | + +## PetfindbystatusGetadditionalPropertiesBoxedMap +public record PetfindbystatusGetadditionalPropertiesBoxedMap
+implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetadditionalPropertiesBoxedMap(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 | + +## PetfindbystatusGetadditionalProperties +public static class PetfindbystatusGetadditionalProperties
+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/QueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/QueryParameters.md deleted file mode 100644 index 30fac1aadbc..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/QueryParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index 81fffdcd4a5..f24881f9c6f 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -35,7 +35,7 @@ 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.QueryParameters; +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; @@ -81,9 +81,9 @@ PetfindbytagsGet.Get apiClient = new PetfindbytagsGet.Get(apiConfiguration, sche // Map validation -QueryParameters.QueryParametersMap queryParameters = - QueryParameters.QueryParameters1.validate( - new QueryParameters.QueryParametersMapBuilder() +PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters = + PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( + new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMapBuilder() .tags( Arrays.asList( "a" @@ -138,7 +138,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.QueryParametersMap](../../paths/petfindbytags/get/QueryParameters.md#queryparametersmap) | queryParameters | +| [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 | | [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 | @@ -151,7 +151,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/petfindbytags/get/QueryParameters.md#queryparametersmap) | queryParameters | +| [PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparametersmap) | queryParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -187,6 +187,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/petfindbytags/get/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbytagsGetQueryParametersPetfindbytagsGetQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparametersmap) 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..efe1cd154c0 --- /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.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 | + +## 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([PetfindbytagsGetQueryParametersMap](#petfindbytagsgetqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbytagsGetQueryParametersMap](#petfindbytagsgetqueryparametersmap) | 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.PetfindbytagsGetQueryParametersMap validatedPayload = + PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( + new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMapBuilder() + .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 = [PetfindbytagsGetadditionalProperties.class](#petfindbytagsgetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbytagsGetQueryParametersMap](#petfindbytagsgetqueryparametersmap) | validate([Map<?, ?>](#petfindbytagsgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#petfindbytagsgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PetfindbytagsGetQueryParametersMap0Builder +public class PetfindbytagsGetQueryParametersMap0Builder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetQueryParametersMap0Builder(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
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbytagsGetQueryParametersMap0Builder](#petfindbytagsgetqueryparametersmap0builder) | tags(List value) | + +## PetfindbytagsGetQueryParametersMap +public static class PetfindbytagsGetQueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PetfindbytagsGetQueryParametersMap](#petfindbytagsgetqueryparametersmap) | of([Map>](#petfindbytagsgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Schema0.SchemaList0](../../../paths/petfindbytags/get/parameters/parameter0/Schema0.md#schemalist0) | tags()
| + +## PetfindbytagsGetadditionalPropertiesBoxed +public sealed interface PetfindbytagsGetadditionalPropertiesBoxed
+permits
+[PetfindbytagsGetadditionalPropertiesBoxedVoid](#petfindbytagsgetadditionalpropertiesboxedvoid), +[PetfindbytagsGetadditionalPropertiesBoxedBoolean](#petfindbytagsgetadditionalpropertiesboxedboolean), +[PetfindbytagsGetadditionalPropertiesBoxedNumber](#petfindbytagsgetadditionalpropertiesboxednumber), +[PetfindbytagsGetadditionalPropertiesBoxedString](#petfindbytagsgetadditionalpropertiesboxedstring), +[PetfindbytagsGetadditionalPropertiesBoxedList](#petfindbytagsgetadditionalpropertiesboxedlist), +[PetfindbytagsGetadditionalPropertiesBoxedMap](#petfindbytagsgetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetfindbytagsGetadditionalPropertiesBoxedVoid +public record PetfindbytagsGetadditionalPropertiesBoxedVoid
+implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbytagsGetadditionalPropertiesBoxedBoolean +public record PetfindbytagsGetadditionalPropertiesBoxedBoolean
+implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbytagsGetadditionalPropertiesBoxedNumber +public record PetfindbytagsGetadditionalPropertiesBoxedNumber
+implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbytagsGetadditionalPropertiesBoxedString +public record PetfindbytagsGetadditionalPropertiesBoxedString
+implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbytagsGetadditionalPropertiesBoxedList +public record PetfindbytagsGetadditionalPropertiesBoxedList
+implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetadditionalPropertiesBoxedList(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 | + +## PetfindbytagsGetadditionalPropertiesBoxedMap +public record PetfindbytagsGetadditionalPropertiesBoxedMap
+implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetadditionalPropertiesBoxedMap(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 | + +## PetfindbytagsGetadditionalProperties +public static class PetfindbytagsGetadditionalProperties
+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/QueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/QueryParameters.md deleted file mode 100644 index afd39beba64..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/QueryParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index 5a5fec27ebf..97d98fae0d0 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -33,10 +33,10 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.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.HeaderParameters; +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.PathParameters; +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; @@ -84,9 +84,9 @@ PetpetidDelete.Delete apiClient = new PetpetidDelete.Delete(apiConfiguration, sc // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters = + PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( + new PetpetidDeletePathParameters.PetpetidDeletePathParametersMapBuilder() .petId(1L) .build(), @@ -136,8 +136,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/petpetid/delete/PathParameters.md#pathparametersmap) | pathParameters | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/petpetid/delete/HeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [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 | | [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 | @@ -150,8 +150,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/petpetid/delete/PathParameters.md#pathparametersmap) | pathParameters | -| [HeaderParameters.@Nullable HeaderParametersMap](../../paths/petpetid/delete/HeaderParameters.md#headerparametersmap) | headerParameters | +| [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 | | [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -170,7 +170,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([HeaderParametersHeaderParametersMap](../../paths/petpetid/delete/HeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [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) | 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 | @@ -188,6 +188,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/petpetid/delete/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PetpetidDeletePathParametersPetpetidDeletePathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparametersmap) 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 2e618fac915..c57cb31991b 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -35,7 +35,7 @@ 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.PathParameters; +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; @@ -84,9 +84,9 @@ PetpetidGet.Get apiClient = new PetpetidGet.Get(apiConfiguration, schemaConfigur // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters = + PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( + new PetpetidGetPathParameters.PetpetidGetPathParametersMapBuilder() .petId(1L) .build(), @@ -143,7 +143,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/petpetid/get/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | [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 | @@ -156,7 +156,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/petpetid/get/PathParameters.md#pathparametersmap) | pathParameters | +| [PetpetidGetPathParameters.@Nullable PetpetidGetPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparametersmap) | pathParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -192,6 +192,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/petpetid/get/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PetpetidGetPathParametersPetpetidGetPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparametersmap) 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 fc721b83c88..c0487ebce9b 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -36,7 +36,7 @@ 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.PathParameters; +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; @@ -84,9 +84,9 @@ PetpetidPost.Post apiClient = new PetpetidPost.Post(apiConfiguration, schemaConf // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters = + PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( + new PetpetidPostPathParameters.PetpetidPostPathParametersMapBuilder() .petId(1L) .build(), @@ -136,7 +136,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/petpetid/post/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex
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 | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/petpetid/post/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex | @@ -188,6 +188,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/petpetid/post/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetidPostPathParametersPetpetidPostPathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/HeaderParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/HeaderParameters.md deleted file mode 100644 index cdeba72d7d8..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/HeaderParameters.md +++ /dev/null @@ -1,252 +0,0 @@ -# HeaderParameters -public class HeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [HeaderParameters.HeaderParameters1Boxed](#headerparameters1boxed)
sealed interface for validated payloads | -| record | [HeaderParameters.HeaderParameters1BoxedMap](#headerparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.HeaderParameters1](#headerparameters1)
schema class | -| static class | [HeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [HeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [HeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [HeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [HeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## HeaderParameters1Boxed -public sealed interface HeaderParameters1Boxed
-permits
-[HeaderParameters1BoxedMap](#headerparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## HeaderParameters1BoxedMap -public record HeaderParameters1BoxedMap
-implements [HeaderParameters1Boxed](#headerparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParameters1BoxedMap([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 | - -## HeaderParameters1 -public static class HeaderParameters1
-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.HeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -HeaderParameters.HeaderParametersMap validatedPayload = - HeaderParameters.HeaderParameters1.validate( - new HeaderParameters.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) | -| [HeaderParameters1BoxedMap](#headerparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [HeaderParameters1Boxed](#headerparameters1boxed) | 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/PathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PathParameters.md deleted file mode 100644 index 6b382baec6c..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/PetpetidDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md new file mode 100644 index 00000000000..c0851ac1cee --- /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.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 | + +## 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([PetpetidDeleteHeaderParametersMap](#petpetiddeleteheaderparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidDeleteHeaderParametersMap](#petpetiddeleteheaderparametersmap) | 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.PetpetidDeleteHeaderParametersMap validatedPayload = + PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1.validate( + new PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParametersMapBuilder() + .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 = [PetpetidDeleteadditionalProperties.class](#petpetiddeleteadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidDeleteHeaderParametersMap](#petpetiddeleteheaderparametersmap) | validate([Map<?, ?>](#petpetiddeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiddeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PetpetidDeleteHeaderParametersMapBuilder +public class PetpetidDeleteHeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteHeaderParametersMapBuilder()
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) | + +## PetpetidDeleteHeaderParametersMap +public static class PetpetidDeleteHeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PetpetidDeleteHeaderParametersMap](#petpetiddeleteheaderparametersmap) | of([Map](#petpetiddeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | api_key()
[optional] | + +## PetpetidDeleteadditionalPropertiesBoxed +public sealed interface PetpetidDeleteadditionalPropertiesBoxed
+permits
+[PetpetidDeleteadditionalPropertiesBoxedVoid](#petpetiddeleteadditionalpropertiesboxedvoid), +[PetpetidDeleteadditionalPropertiesBoxedBoolean](#petpetiddeleteadditionalpropertiesboxedboolean), +[PetpetidDeleteadditionalPropertiesBoxedNumber](#petpetiddeleteadditionalpropertiesboxednumber), +[PetpetidDeleteadditionalPropertiesBoxedString](#petpetiddeleteadditionalpropertiesboxedstring), +[PetpetidDeleteadditionalPropertiesBoxedList](#petpetiddeleteadditionalpropertiesboxedlist), +[PetpetidDeleteadditionalPropertiesBoxedMap](#petpetiddeleteadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetidDeleteadditionalPropertiesBoxedVoid +public record PetpetidDeleteadditionalPropertiesBoxedVoid
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeleteadditionalPropertiesBoxedBoolean +public record PetpetidDeleteadditionalPropertiesBoxedBoolean
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeleteadditionalPropertiesBoxedNumber +public record PetpetidDeleteadditionalPropertiesBoxedNumber
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeleteadditionalPropertiesBoxedString +public record PetpetidDeleteadditionalPropertiesBoxedString
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeleteadditionalPropertiesBoxedList +public record PetpetidDeleteadditionalPropertiesBoxedList
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedList(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 | + +## PetpetidDeleteadditionalPropertiesBoxedMap +public record PetpetidDeleteadditionalPropertiesBoxedMap
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedMap(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 | + +## PetpetidDeleteadditionalProperties +public static class PetpetidDeleteadditionalProperties
+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..27a84ab6be8 --- /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.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 | + +## 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([PetpetidDeletePathParametersMap](#petpetiddeletepathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidDeletePathParametersMap](#petpetiddeletepathparametersmap) | 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.PetpetidDeletePathParametersMap validatedPayload = + PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( + new PetpetidDeletePathParameters.PetpetidDeletePathParametersMapBuilder() + .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 = [PetpetidDeleteadditionalProperties.class](#petpetiddeleteadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidDeletePathParametersMap](#petpetiddeletepathparametersmap) | validate([Map<?, ?>](#petpetiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PetpetidDeletePathParametersMap0Builder +public class PetpetidDeletePathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeletePathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeletePathParametersMapBuilder()
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) | + +## PetpetidDeletePathParametersMap +public static class PetpetidDeletePathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PetpetidDeletePathParametersMap](#petpetiddeletepathparametersmap) | of([Map](#petpetiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## PetpetidDeleteadditionalPropertiesBoxed +public sealed interface PetpetidDeleteadditionalPropertiesBoxed
+permits
+[PetpetidDeleteadditionalPropertiesBoxedVoid](#petpetiddeleteadditionalpropertiesboxedvoid), +[PetpetidDeleteadditionalPropertiesBoxedBoolean](#petpetiddeleteadditionalpropertiesboxedboolean), +[PetpetidDeleteadditionalPropertiesBoxedNumber](#petpetiddeleteadditionalpropertiesboxednumber), +[PetpetidDeleteadditionalPropertiesBoxedString](#petpetiddeleteadditionalpropertiesboxedstring), +[PetpetidDeleteadditionalPropertiesBoxedList](#petpetiddeleteadditionalpropertiesboxedlist), +[PetpetidDeleteadditionalPropertiesBoxedMap](#petpetiddeleteadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetidDeleteadditionalPropertiesBoxedVoid +public record PetpetidDeleteadditionalPropertiesBoxedVoid
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeleteadditionalPropertiesBoxedBoolean +public record PetpetidDeleteadditionalPropertiesBoxedBoolean
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeleteadditionalPropertiesBoxedNumber +public record PetpetidDeleteadditionalPropertiesBoxedNumber
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeleteadditionalPropertiesBoxedString +public record PetpetidDeleteadditionalPropertiesBoxedString
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeleteadditionalPropertiesBoxedList +public record PetpetidDeleteadditionalPropertiesBoxedList
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedList(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 | + +## PetpetidDeleteadditionalPropertiesBoxedMap +public record PetpetidDeleteadditionalPropertiesBoxedMap
+implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteadditionalPropertiesBoxedMap(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 | + +## PetpetidDeleteadditionalProperties +public static class PetpetidDeleteadditionalProperties
+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/PathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/get/PathParameters.md deleted file mode 100644 index 6a08b235aa2..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/PathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/PetpetidGetPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md new file mode 100644 index 00000000000..2ebb0a90120 --- /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.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 | + +## 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([PetpetidGetPathParametersMap](#petpetidgetpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidGetPathParametersMap](#petpetidgetpathparametersmap) | 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.PetpetidGetPathParametersMap validatedPayload = + PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( + new PetpetidGetPathParameters.PetpetidGetPathParametersMapBuilder() + .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 = [PetpetidGetadditionalProperties.class](#petpetidgetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidGetPathParametersMap](#petpetidgetpathparametersmap) | validate([Map<?, ?>](#petpetidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PetpetidGetPathParametersMap0Builder +public class PetpetidGetPathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetPathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetPathParametersMapBuilder()
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) | + +## PetpetidGetPathParametersMap +public static class PetpetidGetPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PetpetidGetPathParametersMap](#petpetidgetpathparametersmap) | of([Map](#petpetidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## PetpetidGetadditionalPropertiesBoxed +public sealed interface PetpetidGetadditionalPropertiesBoxed
+permits
+[PetpetidGetadditionalPropertiesBoxedVoid](#petpetidgetadditionalpropertiesboxedvoid), +[PetpetidGetadditionalPropertiesBoxedBoolean](#petpetidgetadditionalpropertiesboxedboolean), +[PetpetidGetadditionalPropertiesBoxedNumber](#petpetidgetadditionalpropertiesboxednumber), +[PetpetidGetadditionalPropertiesBoxedString](#petpetidgetadditionalpropertiesboxedstring), +[PetpetidGetadditionalPropertiesBoxedList](#petpetidgetadditionalpropertiesboxedlist), +[PetpetidGetadditionalPropertiesBoxedMap](#petpetidgetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetidGetadditionalPropertiesBoxedVoid +public record PetpetidGetadditionalPropertiesBoxedVoid
+implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidGetadditionalPropertiesBoxedBoolean +public record PetpetidGetadditionalPropertiesBoxedBoolean
+implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidGetadditionalPropertiesBoxedNumber +public record PetpetidGetadditionalPropertiesBoxedNumber
+implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidGetadditionalPropertiesBoxedString +public record PetpetidGetadditionalPropertiesBoxedString
+implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidGetadditionalPropertiesBoxedList +public record PetpetidGetadditionalPropertiesBoxedList
+implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetadditionalPropertiesBoxedList(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 | + +## PetpetidGetadditionalPropertiesBoxedMap +public record PetpetidGetadditionalPropertiesBoxedMap
+implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetadditionalPropertiesBoxedMap(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 | + +## PetpetidGetadditionalProperties +public static class PetpetidGetadditionalProperties
+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/PathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/post/PathParameters.md deleted file mode 100644 index 5566ecf62a9..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/PathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/PetpetidPostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md new file mode 100644 index 00000000000..91e891fb65d --- /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.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 | + +## 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([PetpetidPostPathParametersMap](#petpetidpostpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidPostPathParametersMap](#petpetidpostpathparametersmap) | 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.PetpetidPostPathParametersMap validatedPayload = + PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( + new PetpetidPostPathParameters.PetpetidPostPathParametersMapBuilder() + .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 = [PetpetidPostadditionalProperties.class](#petpetidpostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidPostPathParametersMap](#petpetidpostpathparametersmap) | validate([Map<?, ?>](#petpetidpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetidpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PetpetidPostPathParametersMap0Builder +public class PetpetidPostPathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostPathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostPathParametersMapBuilder()
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) | + +## PetpetidPostPathParametersMap +public static class PetpetidPostPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PetpetidPostPathParametersMap](#petpetidpostpathparametersmap) | of([Map](#petpetidpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## PetpetidPostadditionalPropertiesBoxed +public sealed interface PetpetidPostadditionalPropertiesBoxed
+permits
+[PetpetidPostadditionalPropertiesBoxedVoid](#petpetidpostadditionalpropertiesboxedvoid), +[PetpetidPostadditionalPropertiesBoxedBoolean](#petpetidpostadditionalpropertiesboxedboolean), +[PetpetidPostadditionalPropertiesBoxedNumber](#petpetidpostadditionalpropertiesboxednumber), +[PetpetidPostadditionalPropertiesBoxedString](#petpetidpostadditionalpropertiesboxedstring), +[PetpetidPostadditionalPropertiesBoxedList](#petpetidpostadditionalpropertiesboxedlist), +[PetpetidPostadditionalPropertiesBoxedMap](#petpetidpostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetidPostadditionalPropertiesBoxedVoid +public record PetpetidPostadditionalPropertiesBoxedVoid
+implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidPostadditionalPropertiesBoxedBoolean +public record PetpetidPostadditionalPropertiesBoxedBoolean
+implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidPostadditionalPropertiesBoxedNumber +public record PetpetidPostadditionalPropertiesBoxedNumber
+implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidPostadditionalPropertiesBoxedString +public record PetpetidPostadditionalPropertiesBoxedString
+implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidPostadditionalPropertiesBoxedList +public record PetpetidPostadditionalPropertiesBoxedList
+implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostadditionalPropertiesBoxedList(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 | + +## PetpetidPostadditionalPropertiesBoxedMap +public record PetpetidPostadditionalPropertiesBoxedMap
+implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostadditionalPropertiesBoxedMap(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 | + +## PetpetidPostadditionalProperties +public static class PetpetidPostadditionalProperties
+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/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index bd80f30e217..d4a56445d73 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -36,7 +36,7 @@ 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.PathParameters; +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; @@ -81,9 +81,9 @@ PetpetiduploadimagePost.Post apiClient = new PetpetiduploadimagePost.Post(apiCon // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters = + PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( + new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMapBuilder() .petId(1L) .build(), @@ -132,7 +132,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/petpetiduploadimage/post/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex
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 | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/petpetiduploadimage/post/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/petpetiduploadimage/post/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetiduploadimagePostPathParametersPetpetiduploadimagePostPathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PathParameters.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PathParameters.md deleted file mode 100644 index cf8f85caf67..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/PetpetiduploadimagePostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md new file mode 100644 index 00000000000..6c11cddf887 --- /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.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 | + +## 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([PetpetiduploadimagePostPathParametersMap](#petpetiduploadimagepostpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetiduploadimagePostPathParametersMap](#petpetiduploadimagepostpathparametersmap) | 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.PetpetiduploadimagePostPathParametersMap validatedPayload = + PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( + new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMapBuilder() + .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 = [PetpetiduploadimagePostadditionalProperties.class](#petpetiduploadimagepostadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetiduploadimagePostPathParametersMap](#petpetiduploadimagepostpathparametersmap) | validate([Map<?, ?>](#petpetiduploadimagepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiduploadimagepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PetpetiduploadimagePostPathParametersMap0Builder +public class PetpetiduploadimagePostPathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostPathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostPathParametersMapBuilder()
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) | + +## PetpetiduploadimagePostPathParametersMap +public static class PetpetiduploadimagePostPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PetpetiduploadimagePostPathParametersMap](#petpetiduploadimagepostpathparametersmap) | of([Map](#petpetiduploadimagepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## PetpetiduploadimagePostadditionalPropertiesBoxed +public sealed interface PetpetiduploadimagePostadditionalPropertiesBoxed
+permits
+[PetpetiduploadimagePostadditionalPropertiesBoxedVoid](#petpetiduploadimagepostadditionalpropertiesboxedvoid), +[PetpetiduploadimagePostadditionalPropertiesBoxedBoolean](#petpetiduploadimagepostadditionalpropertiesboxedboolean), +[PetpetiduploadimagePostadditionalPropertiesBoxedNumber](#petpetiduploadimagepostadditionalpropertiesboxednumber), +[PetpetiduploadimagePostadditionalPropertiesBoxedString](#petpetiduploadimagepostadditionalpropertiesboxedstring), +[PetpetiduploadimagePostadditionalPropertiesBoxedList](#petpetiduploadimagepostadditionalpropertiesboxedlist), +[PetpetiduploadimagePostadditionalPropertiesBoxedMap](#petpetiduploadimagepostadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetiduploadimagePostadditionalPropertiesBoxedVoid +public record PetpetiduploadimagePostadditionalPropertiesBoxedVoid
+implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetiduploadimagePostadditionalPropertiesBoxedBoolean +public record PetpetiduploadimagePostadditionalPropertiesBoxedBoolean
+implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetiduploadimagePostadditionalPropertiesBoxedNumber +public record PetpetiduploadimagePostadditionalPropertiesBoxedNumber
+implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetiduploadimagePostadditionalPropertiesBoxedString +public record PetpetiduploadimagePostadditionalPropertiesBoxedString
+implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetiduploadimagePostadditionalPropertiesBoxedList +public record PetpetiduploadimagePostadditionalPropertiesBoxedList
+implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostadditionalPropertiesBoxedList(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 | + +## PetpetiduploadimagePostadditionalPropertiesBoxedMap +public record PetpetiduploadimagePostadditionalPropertiesBoxedMap
+implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostadditionalPropertiesBoxedMap(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 | + +## PetpetiduploadimagePostadditionalProperties +public static class PetpetiduploadimagePostadditionalProperties
+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/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index df341b396ef..516d373abd1 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.PathParameters; +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; @@ -71,9 +71,9 @@ StoreorderorderidDelete.Delete apiClient = new StoreorderorderidDelete.Delete(ap // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters = + StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( + new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMapBuilder() .order_id("a") .build(), @@ -123,7 +123,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/storeorderorderid/delete/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -135,7 +135,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/storeorderorderid/delete/PathParameters.md#pathparametersmap) | pathParameters | +| [StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparametersmap) | pathParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -169,6 +169,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/storeorderorderid/delete/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([StoreorderorderidDeletePathParametersStoreorderorderidDeletePathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparametersmap) 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 9838b40e82a..e24d385721e 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.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.PathParameters; +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; @@ -72,9 +72,9 @@ StoreorderorderidGet.Get apiClient = new StoreorderorderidGet.Get(apiConfigurati // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters = + StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( + new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMapBuilder() .order_id(1L) .build(), @@ -131,7 +131,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/storeorderorderid/get/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -143,7 +143,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/storeorderorderid/get/PathParameters.md#pathparametersmap) | pathParameters | +| [StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparametersmap) | pathParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -177,6 +177,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/storeorderorderid/get/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([StoreorderorderidGetPathParametersStoreorderorderidGetPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/PathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/PathParameters.md deleted file mode 100644 index 0708d9f7470..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/PathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/StoreorderorderidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md new file mode 100644 index 00000000000..b7a84fd1a77 --- /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.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 | + +## 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([StoreorderorderidDeletePathParametersMap](#storeorderorderiddeletepathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderorderidDeletePathParametersMap](#storeorderorderiddeletepathparametersmap) | 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.StoreorderorderidDeletePathParametersMap validatedPayload = + StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( + new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMapBuilder() + .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 = [StoreorderorderidDeleteadditionalProperties.class](#storeorderorderiddeleteadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderorderidDeletePathParametersMap](#storeorderorderiddeletepathparametersmap) | validate([Map<?, ?>](#storeorderorderiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#storeorderorderiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StoreorderorderidDeletePathParametersMap0Builder +public class StoreorderorderidDeletePathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeletePathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeletePathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderorderidDeletePathParametersMap0Builder](#storeorderorderiddeletepathparametersmap0builder) | order_id(String value) | + +## StoreorderorderidDeletePathParametersMap +public static class StoreorderorderidDeletePathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [StoreorderorderidDeletePathParametersMap](#storeorderorderiddeletepathparametersmap) | of([Map](#storeorderorderiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | order_id()
| + +## StoreorderorderidDeleteadditionalPropertiesBoxed +public sealed interface StoreorderorderidDeleteadditionalPropertiesBoxed
+permits
+[StoreorderorderidDeleteadditionalPropertiesBoxedVoid](#storeorderorderiddeleteadditionalpropertiesboxedvoid), +[StoreorderorderidDeleteadditionalPropertiesBoxedBoolean](#storeorderorderiddeleteadditionalpropertiesboxedboolean), +[StoreorderorderidDeleteadditionalPropertiesBoxedNumber](#storeorderorderiddeleteadditionalpropertiesboxednumber), +[StoreorderorderidDeleteadditionalPropertiesBoxedString](#storeorderorderiddeleteadditionalpropertiesboxedstring), +[StoreorderorderidDeleteadditionalPropertiesBoxedList](#storeorderorderiddeleteadditionalpropertiesboxedlist), +[StoreorderorderidDeleteadditionalPropertiesBoxedMap](#storeorderorderiddeleteadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## StoreorderorderidDeleteadditionalPropertiesBoxedVoid +public record StoreorderorderidDeleteadditionalPropertiesBoxedVoid
+implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidDeleteadditionalPropertiesBoxedBoolean +public record StoreorderorderidDeleteadditionalPropertiesBoxedBoolean
+implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidDeleteadditionalPropertiesBoxedNumber +public record StoreorderorderidDeleteadditionalPropertiesBoxedNumber
+implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidDeleteadditionalPropertiesBoxedString +public record StoreorderorderidDeleteadditionalPropertiesBoxedString
+implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidDeleteadditionalPropertiesBoxedList +public record StoreorderorderidDeleteadditionalPropertiesBoxedList
+implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeleteadditionalPropertiesBoxedList(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 | + +## StoreorderorderidDeleteadditionalPropertiesBoxedMap +public record StoreorderorderidDeleteadditionalPropertiesBoxedMap
+implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeleteadditionalPropertiesBoxedMap(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 | + +## StoreorderorderidDeleteadditionalProperties +public static class StoreorderorderidDeleteadditionalProperties
+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/PathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/PathParameters.md deleted file mode 100644 index a6522456207..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/PathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/StoreorderorderidGetPathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md new file mode 100644 index 00000000000..eb32ebb7478 --- /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.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 | + +## 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([StoreorderorderidGetPathParametersMap](#storeorderorderidgetpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderorderidGetPathParametersMap](#storeorderorderidgetpathparametersmap) | 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.StoreorderorderidGetPathParametersMap validatedPayload = + StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( + new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMapBuilder() + .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 = [StoreorderorderidGetadditionalProperties.class](#storeorderorderidgetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderorderidGetPathParametersMap](#storeorderorderidgetpathparametersmap) | validate([Map<?, ?>](#storeorderorderidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#storeorderorderidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StoreorderorderidGetPathParametersMap0Builder +public class StoreorderorderidGetPathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetPathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetPathParametersMapBuilder()
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) | + +## StoreorderorderidGetPathParametersMap +public static class StoreorderorderidGetPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [StoreorderorderidGetPathParametersMap](#storeorderorderidgetpathparametersmap) | of([Map](#storeorderorderidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | order_id()
| + +## StoreorderorderidGetadditionalPropertiesBoxed +public sealed interface StoreorderorderidGetadditionalPropertiesBoxed
+permits
+[StoreorderorderidGetadditionalPropertiesBoxedVoid](#storeorderorderidgetadditionalpropertiesboxedvoid), +[StoreorderorderidGetadditionalPropertiesBoxedBoolean](#storeorderorderidgetadditionalpropertiesboxedboolean), +[StoreorderorderidGetadditionalPropertiesBoxedNumber](#storeorderorderidgetadditionalpropertiesboxednumber), +[StoreorderorderidGetadditionalPropertiesBoxedString](#storeorderorderidgetadditionalpropertiesboxedstring), +[StoreorderorderidGetadditionalPropertiesBoxedList](#storeorderorderidgetadditionalpropertiesboxedlist), +[StoreorderorderidGetadditionalPropertiesBoxedMap](#storeorderorderidgetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## StoreorderorderidGetadditionalPropertiesBoxedVoid +public record StoreorderorderidGetadditionalPropertiesBoxedVoid
+implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidGetadditionalPropertiesBoxedBoolean +public record StoreorderorderidGetadditionalPropertiesBoxedBoolean
+implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidGetadditionalPropertiesBoxedNumber +public record StoreorderorderidGetadditionalPropertiesBoxedNumber
+implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidGetadditionalPropertiesBoxedString +public record StoreorderorderidGetadditionalPropertiesBoxedString
+implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidGetadditionalPropertiesBoxedList +public record StoreorderorderidGetadditionalPropertiesBoxedList
+implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetadditionalPropertiesBoxedList(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 | + +## StoreorderorderidGetadditionalPropertiesBoxedMap +public record StoreorderorderidGetadditionalPropertiesBoxedMap
+implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetadditionalPropertiesBoxedMap(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 | + +## StoreorderorderidGetadditionalProperties +public static class StoreorderorderidGetadditionalProperties
+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/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index 8e9d3717f16..d7858b69cc2 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.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.QueryParameters; +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; @@ -72,9 +72,9 @@ UserloginGet.Get apiClient = new UserloginGet.Get(apiConfiguration, schemaConfig // Map validation -QueryParameters.QueryParametersMap queryParameters = - QueryParameters.QueryParameters1.validate( - new QueryParameters.QueryParametersMapBuilder() +UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters = + UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( + new UserloginGetQueryParameters.UserloginGetQueryParametersMapBuilder() .password("a") .username("a") @@ -133,7 +133,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.QueryParametersMap](../../paths/userlogin/get/QueryParameters.md#queryparametersmap) | queryParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -145,7 +145,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [QueryParameters.@Nullable QueryParametersMap](../../paths/userlogin/get/QueryParameters.md#queryparametersmap) | queryParameters | +| [UserloginGetQueryParameters.@Nullable UserloginGetQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparametersmap) | queryParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -179,6 +179,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([QueryParametersQueryParametersMap](../../paths/userlogin/get/QueryParameters.md#queryparametersmap) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([UserloginGetQueryParametersUserloginGetQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparametersmap) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/QueryParameters.md b/samples/client/petstore/java/docs/paths/userlogin/get/QueryParameters.md deleted file mode 100644 index c6893bbeb8b..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/QueryParameters.md +++ /dev/null @@ -1,304 +0,0 @@ -# QueryParameters -public class QueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [QueryParameters.QueryParameters1Boxed](#queryparameters1boxed)
sealed interface for validated payloads | -| record | [QueryParameters.QueryParameters1BoxedMap](#queryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.QueryParameters1](#queryparameters1)
schema class | -| static class | [QueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [QueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [QueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [QueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [QueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## QueryParameters1Boxed -public sealed interface QueryParameters1Boxed
-permits
-[QueryParameters1BoxedMap](#queryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## QueryParameters1BoxedMap -public record QueryParameters1BoxedMap
-implements [QueryParameters1Boxed](#queryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParameters1BoxedMap([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 | - -## QueryParameters1 -public static class QueryParameters1
-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.QueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -QueryParameters.QueryParametersMap validatedPayload = - QueryParameters.QueryParameters1.validate( - new QueryParameters.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) | -| [QueryParameters1BoxedMap](#queryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [QueryParameters1Boxed](#queryparameters1boxed) | 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/UserloginGetQueryParameters.md b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md new file mode 100644 index 00000000000..5d116801e21 --- /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.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 | + +## 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([UserloginGetQueryParametersMap](#userlogingetqueryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetQueryParametersMap](#userlogingetqueryparametersmap) | 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.UserloginGetQueryParametersMap validatedPayload = + UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( + new UserloginGetQueryParameters.UserloginGetQueryParametersMapBuilder() + .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 = [UserloginGetadditionalProperties.class](#userlogingetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetQueryParametersMap](#userlogingetqueryparametersmap) | validate([Map<?, ?>](#userlogingetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#userlogingetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## UserloginGetQueryParametersMap00Builder +public class UserloginGetQueryParametersMap00Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetQueryParametersMap00Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetQueryParametersMap01Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetQueryParametersMap00Builder](#userlogingetqueryparametersmap00builder) | username(String value) | + +## UserloginGetQueryParametersMap10Builder +public class UserloginGetQueryParametersMap10Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetQueryParametersMap10Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetQueryParametersMap00Builder](#userlogingetqueryparametersmap00builder) | password(String value) | + +## UserloginGetQueryParametersMapBuilder +public class UserloginGetQueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetQueryParametersMapBuilder()
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) | + +## UserloginGetQueryParametersMap +public static class UserloginGetQueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [UserloginGetQueryParametersMap](#userlogingetqueryparametersmap) | of([Map](#userlogingetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | password()
| +| String | username()
| + +## UserloginGetadditionalPropertiesBoxed +public sealed interface UserloginGetadditionalPropertiesBoxed
+permits
+[UserloginGetadditionalPropertiesBoxedVoid](#userlogingetadditionalpropertiesboxedvoid), +[UserloginGetadditionalPropertiesBoxedBoolean](#userlogingetadditionalpropertiesboxedboolean), +[UserloginGetadditionalPropertiesBoxedNumber](#userlogingetadditionalpropertiesboxednumber), +[UserloginGetadditionalPropertiesBoxedString](#userlogingetadditionalpropertiesboxedstring), +[UserloginGetadditionalPropertiesBoxedList](#userlogingetadditionalpropertiesboxedlist), +[UserloginGetadditionalPropertiesBoxedMap](#userlogingetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserloginGetadditionalPropertiesBoxedVoid +public record UserloginGetadditionalPropertiesBoxedVoid
+implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetadditionalPropertiesBoxedBoolean +public record UserloginGetadditionalPropertiesBoxedBoolean
+implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetadditionalPropertiesBoxedNumber +public record UserloginGetadditionalPropertiesBoxedNumber
+implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetadditionalPropertiesBoxedString +public record UserloginGetadditionalPropertiesBoxedString
+implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetadditionalPropertiesBoxedList +public record UserloginGetadditionalPropertiesBoxedList
+implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetadditionalPropertiesBoxedList(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 | + +## UserloginGetadditionalPropertiesBoxedMap +public record UserloginGetadditionalPropertiesBoxedMap
+implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetadditionalPropertiesBoxedMap(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 | + +## UserloginGetadditionalProperties +public static class UserloginGetadditionalProperties
+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/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index 8f3de5b62a2..b95e93e6a97 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -34,7 +34,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.RootServerInfo; -import org.openapijsonschematools.client.paths.userusername.delete.PathParameters; +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; @@ -71,9 +71,9 @@ UserusernameDelete.Delete apiClient = new UserusernameDelete.Delete(apiConfigura // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters = + UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( + new UserusernameDeletePathParameters.UserusernameDeletePathParametersMapBuilder() .username("a") .build(), @@ -124,7 +124,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/userusername/delete/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -136,7 +136,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/userusername/delete/PathParameters.md#pathparametersmap) | pathParameters | +| [UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparametersmap) | pathParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -170,6 +170,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/userusername/delete/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([UserusernameDeletePathParametersUserusernameDeletePathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparametersmap) 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 955220e3880..0d0837c7ac1 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.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.PathParameters; +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; @@ -72,9 +72,9 @@ UserusernameGet.Get apiClient = new UserusernameGet.Get(apiConfiguration, schema // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters = + UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( + new UserusernameGetPathParameters.UserusernameGetPathParametersMapBuilder() .username("a") .build(), @@ -131,7 +131,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.PathParametersMap](../../paths/userusername/get/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -143,7 +143,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PathParameters.@Nullable PathParametersMap](../../paths/userusername/get/PathParameters.md#pathparametersmap) | pathParameters | +| [UserusernameGetPathParameters.@Nullable UserusernameGetPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparametersmap) | pathParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -177,6 +177,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/userusername/get/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([UserusernameGetPathParametersUserusernameGetPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparametersmap) 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 0cb311d01f7..4531c33840d 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -38,7 +38,7 @@ 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.PathParameters; +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; @@ -101,9 +101,9 @@ User1BoxedMap requestBodyPayload = UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -PathParameters.PathParametersMap pathParameters = - PathParameters.PathParameters1.validate( - new PathParameters.PathParametersMapBuilder() +UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters = + UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( + new UserusernamePutPathParameters.UserusernamePutPathParametersMapBuilder() .username("a") .build(), @@ -155,7 +155,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | -| [PathParameters.PathParametersMap](../../paths/userusername/put/PathParameters.md#pathparametersmap) | pathParameters | +| [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 | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -168,7 +168,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 | -| [PathParameters.@Nullable PathParametersMap](../../paths/userusername/put/PathParameters.md#pathparametersmap) | pathParameters | +| [UserusernamePutPathParameters.@Nullable UserusernamePutPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparametersmap) | pathParameters | | [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -202,7 +202,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | pathParameters([PathParametersPathParametersMap](../../paths/userusername/put/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Put00RequestBuilder](#put00requestbuilder) | pathParameters([UserusernamePutPathParametersUserusernamePutPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparametersmap) pathParameters)
sets the property | ## Put10RequestBuilder public static class Put10RequestBuilder
@@ -233,6 +233,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([PathParametersPathParametersMap](../../paths/userusername/put/PathParameters.md#pathparametersmap) pathParameters)
sets the property | +| [Put10RequestBuilder](#put10requestbuilder) | pathParameters([UserusernamePutPathParametersUserusernamePutPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/PathParameters.md b/samples/client/petstore/java/docs/paths/userusername/delete/PathParameters.md deleted file mode 100644 index 412ad64ab3a..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/delete/PathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/UserusernameDeletePathParameters.md b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md new file mode 100644 index 00000000000..07fdc670fb1 --- /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.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 | + +## 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([UserusernameDeletePathParametersMap](#userusernamedeletepathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameDeletePathParametersMap](#userusernamedeletepathparametersmap) | 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.UserusernameDeletePathParametersMap validatedPayload = + UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( + new UserusernameDeletePathParameters.UserusernameDeletePathParametersMapBuilder() + .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 = [UserusernameDeleteadditionalProperties.class](#userusernamedeleteadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameDeletePathParametersMap](#userusernamedeletepathparametersmap) | validate([Map<?, ?>](#userusernamedeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernamedeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## UserusernameDeletePathParametersMap0Builder +public class UserusernameDeletePathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeletePathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeletePathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameDeletePathParametersMap0Builder](#userusernamedeletepathparametersmap0builder) | username(String value) | + +## UserusernameDeletePathParametersMap +public static class UserusernameDeletePathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [UserusernameDeletePathParametersMap](#userusernamedeletepathparametersmap) | of([Map](#userusernamedeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | username()
| + +## UserusernameDeleteadditionalPropertiesBoxed +public sealed interface UserusernameDeleteadditionalPropertiesBoxed
+permits
+[UserusernameDeleteadditionalPropertiesBoxedVoid](#userusernamedeleteadditionalpropertiesboxedvoid), +[UserusernameDeleteadditionalPropertiesBoxedBoolean](#userusernamedeleteadditionalpropertiesboxedboolean), +[UserusernameDeleteadditionalPropertiesBoxedNumber](#userusernamedeleteadditionalpropertiesboxednumber), +[UserusernameDeleteadditionalPropertiesBoxedString](#userusernamedeleteadditionalpropertiesboxedstring), +[UserusernameDeleteadditionalPropertiesBoxedList](#userusernamedeleteadditionalpropertiesboxedlist), +[UserusernameDeleteadditionalPropertiesBoxedMap](#userusernamedeleteadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserusernameDeleteadditionalPropertiesBoxedVoid +public record UserusernameDeleteadditionalPropertiesBoxedVoid
+implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameDeleteadditionalPropertiesBoxedBoolean +public record UserusernameDeleteadditionalPropertiesBoxedBoolean
+implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameDeleteadditionalPropertiesBoxedNumber +public record UserusernameDeleteadditionalPropertiesBoxedNumber
+implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameDeleteadditionalPropertiesBoxedString +public record UserusernameDeleteadditionalPropertiesBoxedString
+implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameDeleteadditionalPropertiesBoxedList +public record UserusernameDeleteadditionalPropertiesBoxedList
+implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeleteadditionalPropertiesBoxedList(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 | + +## UserusernameDeleteadditionalPropertiesBoxedMap +public record UserusernameDeleteadditionalPropertiesBoxedMap
+implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeleteadditionalPropertiesBoxedMap(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 | + +## UserusernameDeleteadditionalProperties +public static class UserusernameDeleteadditionalProperties
+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/PathParameters.md b/samples/client/petstore/java/docs/paths/userusername/get/PathParameters.md deleted file mode 100644 index 1e6b20064f5..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/PathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/UserusernameGetPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md new file mode 100644 index 00000000000..4927b37131a --- /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.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 | + +## 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([UserusernameGetPathParametersMap](#userusernamegetpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameGetPathParametersMap](#userusernamegetpathparametersmap) | 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.UserusernameGetPathParametersMap validatedPayload = + UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( + new UserusernameGetPathParameters.UserusernameGetPathParametersMapBuilder() + .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 = [UserusernameGetadditionalProperties.class](#userusernamegetadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameGetPathParametersMap](#userusernamegetpathparametersmap) | validate([Map<?, ?>](#userusernamegetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernamegetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## UserusernameGetPathParametersMap0Builder +public class UserusernameGetPathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetPathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetPathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameGetPathParametersMap0Builder](#userusernamegetpathparametersmap0builder) | username(String value) | + +## UserusernameGetPathParametersMap +public static class UserusernameGetPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [UserusernameGetPathParametersMap](#userusernamegetpathparametersmap) | of([Map](#userusernamegetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | username()
| + +## UserusernameGetadditionalPropertiesBoxed +public sealed interface UserusernameGetadditionalPropertiesBoxed
+permits
+[UserusernameGetadditionalPropertiesBoxedVoid](#userusernamegetadditionalpropertiesboxedvoid), +[UserusernameGetadditionalPropertiesBoxedBoolean](#userusernamegetadditionalpropertiesboxedboolean), +[UserusernameGetadditionalPropertiesBoxedNumber](#userusernamegetadditionalpropertiesboxednumber), +[UserusernameGetadditionalPropertiesBoxedString](#userusernamegetadditionalpropertiesboxedstring), +[UserusernameGetadditionalPropertiesBoxedList](#userusernamegetadditionalpropertiesboxedlist), +[UserusernameGetadditionalPropertiesBoxedMap](#userusernamegetadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserusernameGetadditionalPropertiesBoxedVoid +public record UserusernameGetadditionalPropertiesBoxedVoid
+implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameGetadditionalPropertiesBoxedBoolean +public record UserusernameGetadditionalPropertiesBoxedBoolean
+implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameGetadditionalPropertiesBoxedNumber +public record UserusernameGetadditionalPropertiesBoxedNumber
+implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameGetadditionalPropertiesBoxedString +public record UserusernameGetadditionalPropertiesBoxedString
+implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameGetadditionalPropertiesBoxedList +public record UserusernameGetadditionalPropertiesBoxedList
+implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetadditionalPropertiesBoxedList(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 | + +## UserusernameGetadditionalPropertiesBoxedMap +public record UserusernameGetadditionalPropertiesBoxedMap
+implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetadditionalPropertiesBoxedMap(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 | + +## UserusernameGetadditionalProperties +public static class UserusernameGetadditionalProperties
+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/PathParameters.md b/samples/client/petstore/java/docs/paths/userusername/put/PathParameters.md deleted file mode 100644 index bf2b807c3b8..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/PathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# PathParameters -public class PathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [PathParameters.PathParameters1Boxed](#pathparameters1boxed)
sealed interface for validated payloads | -| record | [PathParameters.PathParameters1BoxedMap](#pathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.PathParameters1](#pathparameters1)
schema class | -| static class | [PathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PathParameters1Boxed -public sealed interface PathParameters1Boxed
-permits
-[PathParameters1BoxedMap](#pathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PathParameters1BoxedMap -public record PathParameters1BoxedMap
-implements [PathParameters1Boxed](#pathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParameters1BoxedMap([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 | - -## PathParameters1 -public static class PathParameters1
-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.PathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PathParameters.PathParametersMap validatedPayload = - PathParameters.PathParameters1.validate( - new PathParameters.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) | -| [PathParameters1BoxedMap](#pathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PathParameters1Boxed](#pathparameters1boxed) | 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/UserusernamePutPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md new file mode 100644 index 00000000000..e9f0fb4260e --- /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.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 | + +## 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([UserusernamePutPathParametersMap](#userusernameputpathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernamePutPathParametersMap](#userusernameputpathparametersmap) | 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.UserusernamePutPathParametersMap validatedPayload = + UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( + new UserusernamePutPathParameters.UserusernamePutPathParametersMapBuilder() + .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 = [UserusernamePutadditionalProperties.class](#userusernameputadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernamePutPathParametersMap](#userusernameputpathparametersmap) | validate([Map<?, ?>](#userusernameputpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernameputpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## UserusernamePutPathParametersMap0Builder +public class UserusernamePutPathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutPathParametersMap0Builder(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
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutPathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernamePutPathParametersMap0Builder](#userusernameputpathparametersmap0builder) | username(String value) | + +## UserusernamePutPathParametersMap +public static class UserusernamePutPathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [UserusernamePutPathParametersMap](#userusernameputpathparametersmap) | of([Map](#userusernameputpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | username()
| + +## UserusernamePutadditionalPropertiesBoxed +public sealed interface UserusernamePutadditionalPropertiesBoxed
+permits
+[UserusernamePutadditionalPropertiesBoxedVoid](#userusernameputadditionalpropertiesboxedvoid), +[UserusernamePutadditionalPropertiesBoxedBoolean](#userusernameputadditionalpropertiesboxedboolean), +[UserusernamePutadditionalPropertiesBoxedNumber](#userusernameputadditionalpropertiesboxednumber), +[UserusernamePutadditionalPropertiesBoxedString](#userusernameputadditionalpropertiesboxedstring), +[UserusernamePutadditionalPropertiesBoxedList](#userusernameputadditionalpropertiesboxedlist), +[UserusernamePutadditionalPropertiesBoxedMap](#userusernameputadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserusernamePutadditionalPropertiesBoxedVoid +public record UserusernamePutadditionalPropertiesBoxedVoid
+implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernamePutadditionalPropertiesBoxedBoolean +public record UserusernamePutadditionalPropertiesBoxedBoolean
+implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernamePutadditionalPropertiesBoxedNumber +public record UserusernamePutadditionalPropertiesBoxedNumber
+implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernamePutadditionalPropertiesBoxedString +public record UserusernamePutadditionalPropertiesBoxedString
+implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernamePutadditionalPropertiesBoxedList +public record UserusernamePutadditionalPropertiesBoxedList
+implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutadditionalPropertiesBoxedList(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 | + +## UserusernamePutadditionalPropertiesBoxedMap +public record UserusernamePutadditionalPropertiesBoxedMap
+implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutadditionalPropertiesBoxedMap(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 | + +## UserusernamePutadditionalProperties +public static class UserusernamePutadditionalProperties
+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/paths/commonparamsubdir/CommonparamsubdirDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java index 6f600a801d5..f4584e4a80a 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 @@ -1,9 +1,9 @@ package org.openapijsonschematools.client.paths.commonparamsubdir; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.HeaderParameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.PathParameters; +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; @@ -86,14 +86,14 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public PathParameters.PathParametersMap pathParameters; - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; + public CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters; + public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - PathParameters.PathParametersMap pathParameters, - HeaderParameters.@Nullable HeaderParametersMap headerParameters, + CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters, + CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap headerParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -105,8 +105,8 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; + public CommonparamsubdirDeletePathParameters.@Nullable CommonparamsubdirDeletePathParametersMap pathParameters; + public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap headerParameters; public RootServerInfo.@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(HeaderParameters.HeaderParametersMap headerParameters) { + default T headerParameters(CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParametersMap 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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap 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 0631a615413..4e9df51675f 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 @@ -1,9 +1,9 @@ package org.openapijsonschematools.client.paths.commonparamsubdir; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.QueryParameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.PathParameters; +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; @@ -87,14 +87,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PathParameters.PathParametersMap pathParameters; - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters; + public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - PathParameters.PathParametersMap pathParameters, - QueryParameters.@Nullable QueryParametersMap queryParameters, + CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters, + CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -106,8 +106,8 @@ public GetRequest( } public static class GetNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public CommonparamsubdirGetPathParameters.@Nullable CommonparamsubdirGetPathParametersMap pathParameters; + public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParametersMap 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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap 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 808f9715930..c1f09488efb 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 @@ -1,9 +1,9 @@ package org.openapijsonschematools.client.paths.commonparamsubdir; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.HeaderParameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.PathParameters; +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; @@ -86,14 +86,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public PathParameters.PathParametersMap pathParameters; - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; + public CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters; + public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - PathParameters.PathParametersMap pathParameters, - HeaderParameters.@Nullable HeaderParametersMap headerParameters, + CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters, + CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap headerParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -105,8 +105,8 @@ public PostRequest( } public static class PostNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; + public CommonparamsubdirPostPathParameters.@Nullable CommonparamsubdirPostPathParametersMap pathParameters; + public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap headerParameters; public RootServerInfo.@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(HeaderParameters.HeaderParametersMap headerParameters) { + default T headerParameters(CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParametersMap 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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap 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/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java index 42d92915420..2d2a4ce8dbd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class HeaderParameters { +public class CommonparamsubdirDeleteHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable CommonparamsubdirDeleteadditionalProperties instance = null; + public static CommonparamsubdirDeleteadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new CommonparamsubdirDeleteadditionalProperties(); } return instance; } } - public static class HeaderParametersMap extends FrozenMap { - protected HeaderParametersMap(FrozenMap m) { + public static class CommonparamsubdirDeleteHeaderParametersMap extends FrozenMap { + protected CommonparamsubdirDeleteHeaderParametersMap(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 HeaderParameters1.getInstance().validate(arg, configuration); + public static CommonparamsubdirDeleteHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirDeleteHeaderParameters1.getInstance().validate(arg, configuration); } public String someHeader() throws UnsetPropertyException { @@ -58,18 +58,18 @@ public String someHeader() throws UnsetPropertyException { } } - public interface SetterForSomeHeader { + public interface SetterForCommonparamsubdirDeletesomeHeader { Map getInstance(); - T getBuilderAfterSomeHeader(Map instance); + T getBuilderAfterCommonparamsubdirDeletesomeHeader(Map instance); default T someHeader(String value) { var instance = getInstance(); instance.put("someHeader", value); - return getBuilderAfterSomeHeader(instance); + return getBuilderAfterCommonparamsubdirDeletesomeHeader(instance); } } - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSomeHeader { + public static class CommonparamsubdirDeleteHeaderParametersMapBuilder implements GenericBuilder>, SetterForCommonparamsubdirDeletesomeHeader { private final Map instance; private static final Set knownKeys = Set.of( "someHeader" @@ -77,7 +77,7 @@ public static class HeaderParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public HeaderParametersMapBuilder() { + public CommonparamsubdirDeleteHeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,17 +86,17 @@ public Map build() { public Map getInstance() { return instance; } - public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map instance) { + public CommonparamsubdirDeleteHeaderParametersMapBuilder getBuilderAfterCommonparamsubdirDeletesomeHeader(Map instance) { return this; } } - public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { + public sealed interface CommonparamsubdirDeleteHeaderParameters1Boxed permits CommonparamsubdirDeleteHeaderParameters1BoxedMap { @Nullable Object getData(); } - public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements HeaderParameters1Boxed { + public record CommonparamsubdirDeleteHeaderParameters1BoxedMap(CommonparamsubdirDeleteHeaderParametersMap data) implements CommonparamsubdirDeleteHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,27 +104,27 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable HeaderParameters1 instance = null; + public static class CommonparamsubdirDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirDeleteHeaderParameters1 instance = null; - protected HeaderParameters1() { + protected CommonparamsubdirDeleteHeaderParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( new PropertyEntry("someHeader", Schema0.Schema01.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(CommonparamsubdirDeleteadditionalProperties.class) ); } - public static HeaderParameters1 getInstance() { + public static CommonparamsubdirDeleteHeaderParameters1 getInstance() { if (instance == null) { - instance = new HeaderParameters1(); + instance = new CommonparamsubdirDeleteHeaderParameters1(); } return instance; } - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirDeleteHeaderParametersMap 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 HeaderParametersMap getNewInstance(Map arg, List pathToItem properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); + return new CommonparamsubdirDeleteHeaderParametersMap(castProperties); } - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirDeleteHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -176,11 +176,11 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new HeaderParameters1BoxedMap(validate(arg, configuration)); + public CommonparamsubdirDeleteHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirDeleteHeaderParameters1BoxedMap(validate(arg, configuration)); } @Override - public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirDeleteHeaderParameters1Boxed 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/commonparamsubdir/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java index 7424543e6c2..69980626b94 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class CommonparamsubdirDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable CommonparamsubdirDeleteadditionalProperties instance = null; + public static CommonparamsubdirDeleteadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new CommonparamsubdirDeleteadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class CommonparamsubdirDeletePathParametersMap extends FrozenMap { + protected CommonparamsubdirDeletePathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static CommonparamsubdirDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirDeletePathParameters1.getInstance().validate(arg, configuration); } public String subDir() { @@ -62,24 +62,24 @@ public String subDir() { } } - public interface SetterForSubDir { + public interface SetterForCommonparamsubdirDeletesubDir { Map getInstance(); - T getBuilderAfterSubDir(Map instance); + T getBuilderAfterCommonparamsubdirDeletesubDir(Map instance); default T subDir(String value) { var instance = getInstance(); instance.put("subDir", value); - return getBuilderAfterSubDir(instance); + return getBuilderAfterCommonparamsubdirDeletesubDir(instance); } default T subDir(Schema1.StringSchemaEnums1 value) { var instance = getInstance(); instance.put("subDir", value.value()); - return getBuilderAfterSubDir(instance); + return getBuilderAfterCommonparamsubdirDeletesubDir(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class CommonparamsubdirDeletePathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "subDir" @@ -87,7 +87,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public CommonparamsubdirDeletePathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -95,25 +95,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForSubDir { + public static class CommonparamsubdirDeletePathParametersMapBuilder implements SetterForCommonparamsubdirDeletesubDir { private final Map instance; - public PathParametersMapBuilder() { + public CommonparamsubdirDeletePathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { - return new PathParametersMap0Builder(instance); + public CommonparamsubdirDeletePathParametersMap0Builder getBuilderAfterCommonparamsubdirDeletesubDir(Map instance) { + return new CommonparamsubdirDeletePathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface CommonparamsubdirDeletePathParameters1Boxed permits CommonparamsubdirDeletePathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record CommonparamsubdirDeletePathParameters1BoxedMap(CommonparamsubdirDeletePathParametersMap data) implements CommonparamsubdirDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -121,10 +121,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class CommonparamsubdirDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirDeletePathParameters1 instance = null; - protected PathParameters1() { + protected CommonparamsubdirDeletePathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -133,18 +133,18 @@ protected PathParameters1() { .required(Set.of( "subDir" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(CommonparamsubdirDeleteadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static CommonparamsubdirDeletePathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new CommonparamsubdirDeletePathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirDeletePathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new CommonparamsubdirDeletePathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -196,11 +196,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public CommonparamsubdirDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirDeletePathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirDeletePathParameters1Boxed 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/commonparamsubdir/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java index 905f41a23ef..cffa50b94f4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class CommonparamsubdirGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable CommonparamsubdirGetadditionalProperties instance = null; + public static CommonparamsubdirGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new CommonparamsubdirGetadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class CommonparamsubdirGetPathParametersMap extends FrozenMap { + protected CommonparamsubdirGetPathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static CommonparamsubdirGetPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirGetPathParameters1.getInstance().validate(arg, configuration); } public String subDir() { @@ -62,24 +62,24 @@ public String subDir() { } } - public interface SetterForSubDir { + public interface SetterForCommonparamsubdirGetsubDir { Map getInstance(); - T getBuilderAfterSubDir(Map instance); + T getBuilderAfterCommonparamsubdirGetsubDir(Map instance); default T subDir(String value) { var instance = getInstance(); instance.put("subDir", value); - return getBuilderAfterSubDir(instance); + return getBuilderAfterCommonparamsubdirGetsubDir(instance); } default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { var instance = getInstance(); instance.put("subDir", value.value()); - return getBuilderAfterSubDir(instance); + return getBuilderAfterCommonparamsubdirGetsubDir(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class CommonparamsubdirGetPathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "subDir" @@ -87,7 +87,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public CommonparamsubdirGetPathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -95,25 +95,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForSubDir { + public static class CommonparamsubdirGetPathParametersMapBuilder implements SetterForCommonparamsubdirGetsubDir { private final Map instance; - public PathParametersMapBuilder() { + public CommonparamsubdirGetPathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { - return new PathParametersMap0Builder(instance); + public CommonparamsubdirGetPathParametersMap0Builder getBuilderAfterCommonparamsubdirGetsubDir(Map instance) { + return new CommonparamsubdirGetPathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface CommonparamsubdirGetPathParameters1Boxed permits CommonparamsubdirGetPathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record CommonparamsubdirGetPathParameters1BoxedMap(CommonparamsubdirGetPathParametersMap data) implements CommonparamsubdirGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -121,10 +121,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class CommonparamsubdirGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirGetPathParameters1 instance = null; - protected PathParameters1() { + protected CommonparamsubdirGetPathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -133,18 +133,18 @@ protected PathParameters1() { .required(Set.of( "subDir" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(CommonparamsubdirGetadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static CommonparamsubdirGetPathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new CommonparamsubdirGetPathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirGetPathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new CommonparamsubdirGetPathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirGetPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -196,11 +196,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public CommonparamsubdirGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirGetPathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirGetPathParameters1Boxed 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/commonparamsubdir/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java index 0fc34a2dfd4..0bcf340194d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class CommonparamsubdirGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable CommonparamsubdirGetadditionalProperties instance = null; + public static CommonparamsubdirGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new CommonparamsubdirGetadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { + public static class CommonparamsubdirGetQueryParametersMap extends FrozenMap { + protected CommonparamsubdirGetQueryParametersMap(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 QueryParameters1.getInstance().validate(arg, configuration); + public static CommonparamsubdirGetQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirGetQueryParameters1.getInstance().validate(arg, configuration); } public String searchStr() throws UnsetPropertyException { @@ -58,18 +58,18 @@ public String searchStr() throws UnsetPropertyException { } } - public interface SetterForSearchStr { + public interface SetterForCommonparamsubdirGetsearchStr { Map getInstance(); - T getBuilderAfterSearchStr(Map instance); + T getBuilderAfterCommonparamsubdirGetsearchStr(Map instance); default T searchStr(String value) { var instance = getInstance(); instance.put("searchStr", value); - return getBuilderAfterSearchStr(instance); + return getBuilderAfterCommonparamsubdirGetsearchStr(instance); } } - public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForSearchStr { + public static class CommonparamsubdirGetQueryParametersMapBuilder implements GenericBuilder>, SetterForCommonparamsubdirGetsearchStr { private final Map instance; private static final Set knownKeys = Set.of( "searchStr" @@ -77,7 +77,7 @@ public static class QueryParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMapBuilder() { + public CommonparamsubdirGetQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,17 +86,17 @@ public Map build() { public Map getInstance() { return instance; } - public QueryParametersMapBuilder getBuilderAfterSearchStr(Map instance) { + public CommonparamsubdirGetQueryParametersMapBuilder getBuilderAfterCommonparamsubdirGetsearchStr(Map instance) { return this; } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface CommonparamsubdirGetQueryParameters1Boxed permits CommonparamsubdirGetQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record CommonparamsubdirGetQueryParameters1BoxedMap(CommonparamsubdirGetQueryParametersMap data) implements CommonparamsubdirGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,27 +104,27 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class CommonparamsubdirGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirGetQueryParameters1 instance = null; - protected QueryParameters1() { + protected CommonparamsubdirGetQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( new PropertyEntry("searchStr", Schema0.Schema01.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(CommonparamsubdirGetadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static CommonparamsubdirGetQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new CommonparamsubdirGetQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirGetQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new CommonparamsubdirGetQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -176,11 +176,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public CommonparamsubdirGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirGetQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirGetQueryParameters1Boxed 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/commonparamsubdir/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java index ff22d5ef1be..96b42d5dccc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class HeaderParameters { +public class CommonparamsubdirPostHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable CommonparamsubdirPostadditionalProperties instance = null; + public static CommonparamsubdirPostadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new CommonparamsubdirPostadditionalProperties(); } return instance; } } - public static class HeaderParametersMap extends FrozenMap { - protected HeaderParametersMap(FrozenMap m) { + public static class CommonparamsubdirPostHeaderParametersMap extends FrozenMap { + protected CommonparamsubdirPostHeaderParametersMap(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 HeaderParameters1.getInstance().validate(arg, configuration); + public static CommonparamsubdirPostHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirPostHeaderParameters1.getInstance().validate(arg, configuration); } public String someHeader() throws UnsetPropertyException { @@ -58,18 +58,18 @@ public String someHeader() throws UnsetPropertyException { } } - public interface SetterForSomeHeader { + public interface SetterForCommonparamsubdirPostsomeHeader { Map getInstance(); - T getBuilderAfterSomeHeader(Map instance); + T getBuilderAfterCommonparamsubdirPostsomeHeader(Map instance); default T someHeader(String value) { var instance = getInstance(); instance.put("someHeader", value); - return getBuilderAfterSomeHeader(instance); + return getBuilderAfterCommonparamsubdirPostsomeHeader(instance); } } - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSomeHeader { + public static class CommonparamsubdirPostHeaderParametersMapBuilder implements GenericBuilder>, SetterForCommonparamsubdirPostsomeHeader { private final Map instance; private static final Set knownKeys = Set.of( "someHeader" @@ -77,7 +77,7 @@ public static class HeaderParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public HeaderParametersMapBuilder() { + public CommonparamsubdirPostHeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,17 +86,17 @@ public Map build() { public Map getInstance() { return instance; } - public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map instance) { + public CommonparamsubdirPostHeaderParametersMapBuilder getBuilderAfterCommonparamsubdirPostsomeHeader(Map instance) { return this; } } - public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { + public sealed interface CommonparamsubdirPostHeaderParameters1Boxed permits CommonparamsubdirPostHeaderParameters1BoxedMap { @Nullable Object getData(); } - public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements HeaderParameters1Boxed { + public record CommonparamsubdirPostHeaderParameters1BoxedMap(CommonparamsubdirPostHeaderParametersMap data) implements CommonparamsubdirPostHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,27 +104,27 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable HeaderParameters1 instance = null; + public static class CommonparamsubdirPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirPostHeaderParameters1 instance = null; - protected HeaderParameters1() { + protected CommonparamsubdirPostHeaderParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( new PropertyEntry("someHeader", Schema0.Schema01.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(CommonparamsubdirPostadditionalProperties.class) ); } - public static HeaderParameters1 getInstance() { + public static CommonparamsubdirPostHeaderParameters1 getInstance() { if (instance == null) { - instance = new HeaderParameters1(); + instance = new CommonparamsubdirPostHeaderParameters1(); } return instance; } - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirPostHeaderParametersMap 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 HeaderParametersMap getNewInstance(Map arg, List pathToItem properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); + return new CommonparamsubdirPostHeaderParametersMap(castProperties); } - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirPostHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -176,11 +176,11 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new HeaderParameters1BoxedMap(validate(arg, configuration)); + public CommonparamsubdirPostHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirPostHeaderParameters1BoxedMap(validate(arg, configuration)); } @Override - public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirPostHeaderParameters1Boxed 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/commonparamsubdir/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java index 10dd3c3509c..d3f0a6c1d9f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class CommonparamsubdirPostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable CommonparamsubdirPostadditionalProperties instance = null; + public static CommonparamsubdirPostadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new CommonparamsubdirPostadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class CommonparamsubdirPostPathParametersMap extends FrozenMap { + protected CommonparamsubdirPostPathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static CommonparamsubdirPostPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirPostPathParameters1.getInstance().validate(arg, configuration); } public String subDir() { @@ -62,24 +62,24 @@ public String subDir() { } } - public interface SetterForSubDir { + public interface SetterForCommonparamsubdirPostsubDir { Map getInstance(); - T getBuilderAfterSubDir(Map instance); + T getBuilderAfterCommonparamsubdirPostsubDir(Map instance); default T subDir(String value) { var instance = getInstance(); instance.put("subDir", value); - return getBuilderAfterSubDir(instance); + return getBuilderAfterCommonparamsubdirPostsubDir(instance); } default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { var instance = getInstance(); instance.put("subDir", value.value()); - return getBuilderAfterSubDir(instance); + return getBuilderAfterCommonparamsubdirPostsubDir(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class CommonparamsubdirPostPathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "subDir" @@ -87,7 +87,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public CommonparamsubdirPostPathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -95,25 +95,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForSubDir { + public static class CommonparamsubdirPostPathParametersMapBuilder implements SetterForCommonparamsubdirPostsubDir { private final Map instance; - public PathParametersMapBuilder() { + public CommonparamsubdirPostPathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { - return new PathParametersMap0Builder(instance); + public CommonparamsubdirPostPathParametersMap0Builder getBuilderAfterCommonparamsubdirPostsubDir(Map instance) { + return new CommonparamsubdirPostPathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface CommonparamsubdirPostPathParameters1Boxed permits CommonparamsubdirPostPathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record CommonparamsubdirPostPathParameters1BoxedMap(CommonparamsubdirPostPathParametersMap data) implements CommonparamsubdirPostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -121,10 +121,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class CommonparamsubdirPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirPostPathParameters1 instance = null; - protected PathParameters1() { + protected CommonparamsubdirPostPathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -133,18 +133,18 @@ protected PathParameters1() { .required(Set.of( "subDir" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(CommonparamsubdirPostadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static CommonparamsubdirPostPathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new CommonparamsubdirPostPathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirPostPathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new CommonparamsubdirPostPathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirPostPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -196,11 +196,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public CommonparamsubdirPostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirPostPathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirPostPathParameters1Boxed 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/fake/FakeDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java index 3f58cfd42f7..61fb91038b5 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 @@ -3,8 +3,8 @@ 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.HeaderParameters; -import org.openapijsonschematools.client.paths.fake.delete.QueryParameters; +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; @@ -98,15 +98,15 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public HeaderParameters.HeaderParametersMap headerParameters; - public QueryParameters.QueryParametersMap queryParameters; + public FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters; + public FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public DeleteRequest( - HeaderParameters.HeaderParametersMap headerParameters, - QueryParameters.QueryParametersMap queryParameters, + FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters, + FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -120,8 +120,8 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public FakeDeleteHeaderParameters.@Nullable FakeDeleteHeaderParametersMap headerParameters; + public FakeDeleteQueryParameters.@Nullable FakeDeleteQueryParametersMap queryParameters; public RootServerInfo.@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(HeaderParameters.HeaderParametersMap headerParameters) { + default T headerParameters(FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -170,7 +170,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters public interface SetterForQueryParameters { DeleteNullableRequest getInstance(); T getBuilderAfterQueryParameters(DeleteNullableRequest instance); - default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(FakeDeleteQueryParameters.FakeDeleteQueryParametersMap 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 5c2f0493dbb..64738201ed4 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 @@ -2,8 +2,8 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; -import org.openapijsonschematools.client.paths.fake.get.HeaderParameters; -import org.openapijsonschematools.client.paths.fake.get.QueryParameters; +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; @@ -104,8 +104,8 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public FakeGetRequestBody.@Nullable SealedRequestBody requestBody; - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public FakeGetHeaderParameters.@Nullable FakeGetHeaderParametersMap headerParameters; + public FakeGetQueryParameters.@Nullable FakeGetQueryParametersMap queryParameters; public RootServerInfo.@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(HeaderParameters.HeaderParametersMap headerParameters) { + default T headerParameters(FakeGetHeaderParameters.FakeGetHeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -133,7 +133,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters public interface SetterForQueryParameters { GetRequest getInstance(); T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(FakeGetQueryParameters.FakeGetQueryParametersMap 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/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java index 67d2c45dff6..64314223dd9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java @@ -26,24 +26,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class HeaderParameters { +public class FakeDeleteHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakeDeleteadditionalProperties instance = null; + public static FakeDeleteadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakeDeleteadditionalProperties(); } return instance; } } - public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { - protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeDeleteHeaderParametersMap extends FrozenMap<@Nullable Object> { + protected FakeDeleteHeaderParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -52,8 +52,8 @@ protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { public static final Set optionalKeys = Set.of( "boolean_group" ); - public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return HeaderParameters1.getInstance().validate(arg, configuration); + public static FakeDeleteHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeDeleteHeaderParameters1.getInstance().validate(arg, configuration); } public String required_boolean_group() { @@ -75,41 +75,41 @@ public String boolean_group() throws UnsetPropertyException { } } - public interface SetterForRequiredBooleanGroup { + public interface SetterForFakeDeleterequiredBooleanGroup { Map getInstance(); - T getBuilderAfterRequiredBooleanGroup(Map instance); + T getBuilderAfterFakeDeleterequiredBooleanGroup(Map instance); default T required_boolean_group(String value) { var instance = getInstance(); instance.put("required_boolean_group", value); - return getBuilderAfterRequiredBooleanGroup(instance); + return getBuilderAfterFakeDeleterequiredBooleanGroup(instance); } default T required_boolean_group(Schema1.StringSchemaEnums1 value) { var instance = getInstance(); instance.put("required_boolean_group", value.value()); - return getBuilderAfterRequiredBooleanGroup(instance); + return getBuilderAfterFakeDeleterequiredBooleanGroup(instance); } } - public interface SetterForBooleanGroup { + public interface SetterForFakeDeletebooleanGroup { Map getInstance(); - T getBuilderAfterBooleanGroup(Map instance); + T getBuilderAfterFakeDeletebooleanGroup(Map instance); default T boolean_group(String value) { var instance = getInstance(); instance.put("boolean_group", value); - return getBuilderAfterBooleanGroup(instance); + return getBuilderAfterFakeDeletebooleanGroup(instance); } default T boolean_group(Schema4.StringSchemaEnums4 value) { var instance = getInstance(); instance.put("boolean_group", value.value()); - return getBuilderAfterBooleanGroup(instance); + return getBuilderAfterFakeDeletebooleanGroup(instance); } } - public static class HeaderParametersMap0Builder implements GenericBuilder>, SetterForBooleanGroup { + public static class FakeDeleteHeaderParametersMap0Builder implements GenericBuilder>, SetterForFakeDeletebooleanGroup { private final Map instance; private static final Set knownKeys = Set.of( "required_boolean_group", @@ -118,7 +118,7 @@ public static class HeaderParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public HeaderParametersMap0Builder(Map instance) { + public FakeDeleteHeaderParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -127,30 +127,30 @@ public HeaderParametersMap0Builder(Map instance) { public Map getInstance() { return instance; } - public HeaderParametersMap0Builder getBuilderAfterBooleanGroup(Map instance) { + public FakeDeleteHeaderParametersMap0Builder getBuilderAfterFakeDeletebooleanGroup(Map instance) { return this; } } - public static class HeaderParametersMapBuilder implements SetterForRequiredBooleanGroup { + public static class FakeDeleteHeaderParametersMapBuilder implements SetterForFakeDeleterequiredBooleanGroup { private final Map instance; - public HeaderParametersMapBuilder() { + public FakeDeleteHeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public HeaderParametersMap0Builder getBuilderAfterRequiredBooleanGroup(Map instance) { - return new HeaderParametersMap0Builder(instance); + public FakeDeleteHeaderParametersMap0Builder getBuilderAfterFakeDeleterequiredBooleanGroup(Map instance) { + return new FakeDeleteHeaderParametersMap0Builder(instance); } } - public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { + public sealed interface FakeDeleteHeaderParameters1Boxed permits FakeDeleteHeaderParameters1BoxedMap { @Nullable Object getData(); } - public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements HeaderParameters1Boxed { + public record FakeDeleteHeaderParameters1BoxedMap(FakeDeleteHeaderParametersMap data) implements FakeDeleteHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -158,10 +158,10 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable HeaderParameters1 instance = null; + public static class FakeDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeDeleteHeaderParameters1 instance = null; - protected HeaderParameters1() { + protected FakeDeleteHeaderParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -171,18 +171,18 @@ protected HeaderParameters1() { .required(Set.of( "required_boolean_group" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakeDeleteadditionalProperties.class) ); } - public static HeaderParameters1 getInstance() { + public static FakeDeleteHeaderParameters1 getInstance() { if (instance == null) { - instance = new HeaderParameters1(); + instance = new FakeDeleteHeaderParameters1(); } return instance; } - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeDeleteHeaderParametersMap 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 HeaderParametersMap getNewInstance(Map arg, List pathToItem properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); + return new FakeDeleteHeaderParametersMap(castProperties); } - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeDeleteHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -231,11 +231,11 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new HeaderParameters1BoxedMap(validate(arg, configuration)); + public FakeDeleteHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeDeleteHeaderParameters1BoxedMap(validate(arg, configuration)); } @Override - public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakeDeleteHeaderParameters1Boxed 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/fake/delete/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java similarity index 65% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java index 3df61763b6a..23fd96460a5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java @@ -28,24 +28,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class FakeDeleteQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakeDeleteadditionalProperties instance = null; + public static FakeDeleteadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakeDeleteadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeDeleteQueryParametersMap extends FrozenMap<@Nullable Object> { + protected FakeDeleteQueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -56,8 +56,8 @@ protected QueryParametersMap(FrozenMap<@Nullable Object> m) { "int64_group", "string_group" ); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return QueryParameters1.getInstance().validate(arg, configuration); + public static FakeDeleteQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeDeleteQueryParameters1.getInstance().validate(arg, configuration); } public Number required_int64_group() { @@ -97,87 +97,87 @@ public String string_group() throws UnsetPropertyException { } } - public interface SetterForRequiredInt64Group { + public interface SetterForFakeDeleterequiredInt64Group { Map getInstance(); - T getBuilderAfterRequiredInt64Group(Map instance); + T getBuilderAfterFakeDeleterequiredInt64Group(Map instance); default T required_int64_group(int value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterRequiredInt64Group(instance); + return getBuilderAfterFakeDeleterequiredInt64Group(instance); } default T required_int64_group(float value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterRequiredInt64Group(instance); + return getBuilderAfterFakeDeleterequiredInt64Group(instance); } default T required_int64_group(long value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterRequiredInt64Group(instance); + return getBuilderAfterFakeDeleterequiredInt64Group(instance); } default T required_int64_group(double value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterRequiredInt64Group(instance); + return getBuilderAfterFakeDeleterequiredInt64Group(instance); } } - public interface SetterForRequiredStringGroup { + public interface SetterForFakeDeleterequiredStringGroup { Map getInstance(); - T getBuilderAfterRequiredStringGroup(Map instance); + T getBuilderAfterFakeDeleterequiredStringGroup(Map instance); default T required_string_group(String value) { var instance = getInstance(); instance.put("required_string_group", value); - return getBuilderAfterRequiredStringGroup(instance); + return getBuilderAfterFakeDeleterequiredStringGroup(instance); } } - public interface SetterForInt64Group { + public interface SetterForFakeDeleteint64Group { Map getInstance(); - T getBuilderAfterInt64Group(Map instance); + T getBuilderAfterFakeDeleteint64Group(Map instance); default T int64_group(int value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterInt64Group(instance); + return getBuilderAfterFakeDeleteint64Group(instance); } default T int64_group(float value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterInt64Group(instance); + return getBuilderAfterFakeDeleteint64Group(instance); } default T int64_group(long value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterInt64Group(instance); + return getBuilderAfterFakeDeleteint64Group(instance); } default T int64_group(double value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterInt64Group(instance); + return getBuilderAfterFakeDeleteint64Group(instance); } } - public interface SetterForStringGroup { + public interface SetterForFakeDeletestringGroup { Map getInstance(); - T getBuilderAfterStringGroup(Map instance); + T getBuilderAfterFakeDeletestringGroup(Map instance); default T string_group(String value) { var instance = getInstance(); instance.put("string_group", value); - return getBuilderAfterStringGroup(instance); + return getBuilderAfterFakeDeletestringGroup(instance); } } - public static class QueryParametersMap00Builder implements GenericBuilder>, SetterForInt64Group, SetterForStringGroup { + public static class FakeDeleteQueryParametersMap00Builder implements GenericBuilder>, SetterForFakeDeleteint64Group, SetterForFakeDeletestringGroup { private final Map instance; private static final Set knownKeys = Set.of( "required_int64_group", @@ -188,7 +188,7 @@ public static class QueryParametersMap00Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMap00Builder(Map instance) { + public FakeDeleteQueryParametersMap00Builder(Map instance) { this.instance = instance; } public Map build() { @@ -197,62 +197,62 @@ public QueryParametersMap00Builder(Map instance) { public Map getInstance() { return instance; } - public QueryParametersMap00Builder getBuilderAfterInt64Group(Map instance) { + public FakeDeleteQueryParametersMap00Builder getBuilderAfterFakeDeleteint64Group(Map instance) { return this; } - public QueryParametersMap00Builder getBuilderAfterStringGroup(Map instance) { + public FakeDeleteQueryParametersMap00Builder getBuilderAfterFakeDeletestringGroup(Map instance) { return this; } } - public static class QueryParametersMap01Builder implements SetterForRequiredStringGroup { + public static class FakeDeleteQueryParametersMap01Builder implements SetterForFakeDeleterequiredStringGroup { private final Map instance; - public QueryParametersMap01Builder(Map instance) { + public FakeDeleteQueryParametersMap01Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap00Builder getBuilderAfterRequiredStringGroup(Map instance) { - return new QueryParametersMap00Builder(instance); + public FakeDeleteQueryParametersMap00Builder getBuilderAfterFakeDeleterequiredStringGroup(Map instance) { + return new FakeDeleteQueryParametersMap00Builder(instance); } } - public static class QueryParametersMap10Builder implements SetterForRequiredInt64Group { + public static class FakeDeleteQueryParametersMap10Builder implements SetterForFakeDeleterequiredInt64Group { private final Map instance; - public QueryParametersMap10Builder(Map instance) { + public FakeDeleteQueryParametersMap10Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap00Builder getBuilderAfterRequiredInt64Group(Map instance) { - return new QueryParametersMap00Builder(instance); + public FakeDeleteQueryParametersMap00Builder getBuilderAfterFakeDeleterequiredInt64Group(Map instance) { + return new FakeDeleteQueryParametersMap00Builder(instance); } } - public static class QueryParametersMapBuilder implements SetterForRequiredInt64Group, SetterForRequiredStringGroup { + public static class FakeDeleteQueryParametersMapBuilder implements SetterForFakeDeleterequiredInt64Group, SetterForFakeDeleterequiredStringGroup { private final Map instance; - public QueryParametersMapBuilder() { + public FakeDeleteQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public QueryParametersMap01Builder getBuilderAfterRequiredInt64Group(Map instance) { - return new QueryParametersMap01Builder(instance); + public FakeDeleteQueryParametersMap01Builder getBuilderAfterFakeDeleterequiredInt64Group(Map instance) { + return new FakeDeleteQueryParametersMap01Builder(instance); } - public QueryParametersMap10Builder getBuilderAfterRequiredStringGroup(Map instance) { - return new QueryParametersMap10Builder(instance); + public FakeDeleteQueryParametersMap10Builder getBuilderAfterFakeDeleterequiredStringGroup(Map instance) { + return new FakeDeleteQueryParametersMap10Builder(instance); } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface FakeDeleteQueryParameters1Boxed permits FakeDeleteQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record FakeDeleteQueryParameters1BoxedMap(FakeDeleteQueryParametersMap data) implements FakeDeleteQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -260,10 +260,10 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class FakeDeleteQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeDeleteQueryParameters1 instance = null; - protected QueryParameters1() { + protected FakeDeleteQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -276,18 +276,18 @@ protected QueryParameters1() { "required_int64_group", "required_string_group" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakeDeleteadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static FakeDeleteQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new FakeDeleteQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeDeleteQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new FakeDeleteQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeDeleteQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -336,11 +336,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public FakeDeleteQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeDeleteQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakeDeleteQueryParameters1Boxed 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/fake/get/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java index c2c414a176f..d68aaf404ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java @@ -26,24 +26,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class HeaderParameters { +public class FakeGetHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakeGetadditionalProperties instance = null; + public static FakeGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakeGetadditionalProperties(); } return instance; } } - public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { - protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeGetHeaderParametersMap extends FrozenMap<@Nullable Object> { + protected FakeGetHeaderParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -51,8 +51,8 @@ protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { "enum_header_string", "enum_header_string_array" ); - public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return HeaderParameters1.getInstance().validate(arg, configuration); + public static FakeGetHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeGetHeaderParameters1.getInstance().validate(arg, configuration); } public String enum_header_string() throws UnsetPropertyException { @@ -76,35 +76,35 @@ public Schema0.SchemaList0 enum_header_string_array() throws UnsetPropertyExcept } } - public interface SetterForEnumHeaderString { + public interface SetterForFakeGetenumHeaderString { Map getInstance(); - T getBuilderAfterEnumHeaderString(Map instance); + T getBuilderAfterFakeGetenumHeaderString(Map instance); default T enum_header_string(String value) { var instance = getInstance(); instance.put("enum_header_string", value); - return getBuilderAfterEnumHeaderString(instance); + return getBuilderAfterFakeGetenumHeaderString(instance); } default T enum_header_string(Schema1.StringSchemaEnums1 value) { var instance = getInstance(); instance.put("enum_header_string", value.value()); - return getBuilderAfterEnumHeaderString(instance); + return getBuilderAfterFakeGetenumHeaderString(instance); } } - public interface SetterForEnumHeaderStringArray { + public interface SetterForFakeGetenumHeaderStringArray { Map getInstance(); - T getBuilderAfterEnumHeaderStringArray(Map instance); + T getBuilderAfterFakeGetenumHeaderStringArray(Map instance); default T enum_header_string_array(List value) { var instance = getInstance(); instance.put("enum_header_string_array", value); - return getBuilderAfterEnumHeaderStringArray(instance); + return getBuilderAfterFakeGetenumHeaderStringArray(instance); } } - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForEnumHeaderString, SetterForEnumHeaderStringArray { + public static class FakeGetHeaderParametersMapBuilder implements GenericBuilder>, SetterForFakeGetenumHeaderString, SetterForFakeGetenumHeaderStringArray { private final Map instance; private static final Set knownKeys = Set.of( "enum_header_string", @@ -113,7 +113,7 @@ public static class HeaderParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public HeaderParametersMapBuilder() { + public FakeGetHeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -122,20 +122,20 @@ public HeaderParametersMapBuilder() { public Map getInstance() { return instance; } - public HeaderParametersMapBuilder getBuilderAfterEnumHeaderString(Map instance) { + public FakeGetHeaderParametersMapBuilder getBuilderAfterFakeGetenumHeaderString(Map instance) { return this; } - public HeaderParametersMapBuilder getBuilderAfterEnumHeaderStringArray(Map instance) { + public FakeGetHeaderParametersMapBuilder getBuilderAfterFakeGetenumHeaderStringArray(Map instance) { return this; } } - public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { + public sealed interface FakeGetHeaderParameters1Boxed permits FakeGetHeaderParameters1BoxedMap { @Nullable Object getData(); } - public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements HeaderParameters1Boxed { + public record FakeGetHeaderParameters1BoxedMap(FakeGetHeaderParametersMap data) implements FakeGetHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -143,28 +143,28 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable HeaderParameters1 instance = null; + public static class FakeGetHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeGetHeaderParameters1 instance = null; - protected HeaderParameters1() { + 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) + .additionalProperties(FakeGetadditionalProperties.class) ); } - public static HeaderParameters1 getInstance() { + public static FakeGetHeaderParameters1 getInstance() { if (instance == null) { - instance = new HeaderParameters1(); + instance = new FakeGetHeaderParameters1(); } return instance; } - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeGetHeaderParametersMap 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 HeaderParametersMap getNewInstance(Map arg, List pathToItem properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); + return new FakeGetHeaderParametersMap(castProperties); } - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeGetHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -213,11 +213,11 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new HeaderParameters1BoxedMap(validate(arg, configuration)); + public FakeGetHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeGetHeaderParameters1BoxedMap(validate(arg, configuration)); } @Override - public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakeGetHeaderParameters1Boxed 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/fake/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java index 1b72ab67825..99fba6a721f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java @@ -28,24 +28,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class FakeGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakeGetadditionalProperties instance = null; + public static FakeGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakeGetadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeGetQueryParametersMap extends FrozenMap<@Nullable Object> { + protected FakeGetQueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -55,8 +55,8 @@ protected QueryParametersMap(FrozenMap<@Nullable Object> m) { "enum_query_integer", "enum_query_string_array" ); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return QueryParameters1.getInstance().validate(arg, configuration); + public static FakeGetQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeGetQueryParameters1.getInstance().validate(arg, configuration); } public Number enum_query_double() throws UnsetPropertyException { @@ -100,117 +100,117 @@ public Schema2.SchemaList2 enum_query_string_array() throws UnsetPropertyExcepti } } - public interface SetterForEnumQueryDouble { + public interface SetterForFakeGetenumQueryDouble { Map getInstance(); - T getBuilderAfterEnumQueryDouble(Map instance); + T getBuilderAfterFakeGetenumQueryDouble(Map instance); default T enum_query_double(int value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterEnumQueryDouble(instance); + return getBuilderAfterFakeGetenumQueryDouble(instance); } default T enum_query_double(float value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterEnumQueryDouble(instance); + return getBuilderAfterFakeGetenumQueryDouble(instance); } default T enum_query_double(long value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterEnumQueryDouble(instance); + return getBuilderAfterFakeGetenumQueryDouble(instance); } default T enum_query_double(double value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterEnumQueryDouble(instance); + return getBuilderAfterFakeGetenumQueryDouble(instance); } default T enum_query_double(Schema5.DoubleSchemaEnums5 value) { var instance = getInstance(); instance.put("enum_query_double", value.value()); - return getBuilderAfterEnumQueryDouble(instance); + return getBuilderAfterFakeGetenumQueryDouble(instance); } default T enum_query_double(Schema5.FloatSchemaEnums5 value) { var instance = getInstance(); instance.put("enum_query_double", value.value()); - return getBuilderAfterEnumQueryDouble(instance); + return getBuilderAfterFakeGetenumQueryDouble(instance); } } - public interface SetterForEnumQueryString { + public interface SetterForFakeGetenumQueryString { Map getInstance(); - T getBuilderAfterEnumQueryString(Map instance); + T getBuilderAfterFakeGetenumQueryString(Map instance); default T enum_query_string(String value) { var instance = getInstance(); instance.put("enum_query_string", value); - return getBuilderAfterEnumQueryString(instance); + return getBuilderAfterFakeGetenumQueryString(instance); } default T enum_query_string(Schema3.StringSchemaEnums3 value) { var instance = getInstance(); instance.put("enum_query_string", value.value()); - return getBuilderAfterEnumQueryString(instance); + return getBuilderAfterFakeGetenumQueryString(instance); } } - public interface SetterForEnumQueryInteger { + public interface SetterForFakeGetenumQueryInteger { Map getInstance(); - T getBuilderAfterEnumQueryInteger(Map instance); + T getBuilderAfterFakeGetenumQueryInteger(Map instance); default T enum_query_integer(int value) { var instance = getInstance(); instance.put("enum_query_integer", value); - return getBuilderAfterEnumQueryInteger(instance); + return getBuilderAfterFakeGetenumQueryInteger(instance); } default T enum_query_integer(float value) { var instance = getInstance(); instance.put("enum_query_integer", value); - return getBuilderAfterEnumQueryInteger(instance); + return getBuilderAfterFakeGetenumQueryInteger(instance); } default T enum_query_integer(Schema4.IntegerSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterEnumQueryInteger(instance); + return getBuilderAfterFakeGetenumQueryInteger(instance); } default T enum_query_integer(Schema4.LongSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterEnumQueryInteger(instance); + return getBuilderAfterFakeGetenumQueryInteger(instance); } default T enum_query_integer(Schema4.FloatSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterEnumQueryInteger(instance); + return getBuilderAfterFakeGetenumQueryInteger(instance); } default T enum_query_integer(Schema4.DoubleSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterEnumQueryInteger(instance); + return getBuilderAfterFakeGetenumQueryInteger(instance); } } - public interface SetterForEnumQueryStringArray { + public interface SetterForFakeGetenumQueryStringArray { Map getInstance(); - T getBuilderAfterEnumQueryStringArray(Map instance); + T getBuilderAfterFakeGetenumQueryStringArray(Map instance); default T enum_query_string_array(List value) { var instance = getInstance(); instance.put("enum_query_string_array", value); - return getBuilderAfterEnumQueryStringArray(instance); + return getBuilderAfterFakeGetenumQueryStringArray(instance); } } - public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForEnumQueryDouble, SetterForEnumQueryString, SetterForEnumQueryInteger, SetterForEnumQueryStringArray { + public static class FakeGetQueryParametersMapBuilder implements GenericBuilder>, SetterForFakeGetenumQueryDouble, SetterForFakeGetenumQueryString, SetterForFakeGetenumQueryInteger, SetterForFakeGetenumQueryStringArray { private final Map instance; private static final Set knownKeys = Set.of( "enum_query_double", @@ -221,7 +221,7 @@ public static class QueryParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMapBuilder() { + public FakeGetQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -230,26 +230,26 @@ public QueryParametersMapBuilder() { public Map getInstance() { return instance; } - public QueryParametersMapBuilder getBuilderAfterEnumQueryDouble(Map instance) { + public FakeGetQueryParametersMapBuilder getBuilderAfterFakeGetenumQueryDouble(Map instance) { return this; } - public QueryParametersMapBuilder getBuilderAfterEnumQueryString(Map instance) { + public FakeGetQueryParametersMapBuilder getBuilderAfterFakeGetenumQueryString(Map instance) { return this; } - public QueryParametersMapBuilder getBuilderAfterEnumQueryInteger(Map instance) { + public FakeGetQueryParametersMapBuilder getBuilderAfterFakeGetenumQueryInteger(Map instance) { return this; } - public QueryParametersMapBuilder getBuilderAfterEnumQueryStringArray(Map instance) { + public FakeGetQueryParametersMapBuilder getBuilderAfterFakeGetenumQueryStringArray(Map instance) { return this; } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface FakeGetQueryParameters1Boxed permits FakeGetQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record FakeGetQueryParameters1BoxedMap(FakeGetQueryParametersMap data) implements FakeGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -257,10 +257,10 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class FakeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeGetQueryParameters1 instance = null; - protected QueryParameters1() { + protected FakeGetQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -269,18 +269,18 @@ protected QueryParameters1() { new PropertyEntry("enum_query_integer", Schema4.Schema41.class), new PropertyEntry("enum_query_string_array", Schema2.Schema21.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakeGetadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static FakeGetQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new FakeGetQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeGetQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new FakeGetQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -329,11 +329,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public FakeGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeGetQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakeGetQueryParameters1Boxed 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/fakebodywithqueryparams/FakebodywithqueryparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java index 0564a540d91..5be02fcd272 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 @@ -3,7 +3,7 @@ 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.QueryParameters; +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; @@ -90,13 +90,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody; - public QueryParameters.QueryParametersMap queryParameters; + public FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody, - QueryParameters.QueryParametersMap queryParameters, + FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -109,7 +109,7 @@ public PutRequest( public static class PutNullableRequest { public FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody requestBody; - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java similarity index 65% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java index 577273843e9..3b8284fac87 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class FakebodywithqueryparamsPutQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakebodywithqueryparamsPutadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakebodywithqueryparamsPutadditionalProperties instance = null; + public static FakebodywithqueryparamsPutadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakebodywithqueryparamsPutadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { + public static class FakebodywithqueryparamsPutQueryParametersMap extends FrozenMap { + protected FakebodywithqueryparamsPutQueryParametersMap(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 QueryParameters1.getInstance().validate(arg, configuration); + public static FakebodywithqueryparamsPutQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakebodywithqueryparamsPutQueryParameters1.getInstance().validate(arg, configuration); } public String query() { @@ -62,18 +62,18 @@ public String query() { } } - public interface SetterForQuery { + public interface SetterForFakebodywithqueryparamsPutquery { Map getInstance(); - T getBuilderAfterQuery(Map instance); + T getBuilderAfterFakebodywithqueryparamsPutquery(Map instance); default T query(String value) { var instance = getInstance(); instance.put("query", value); - return getBuilderAfterQuery(instance); + return getBuilderAfterFakebodywithqueryparamsPutquery(instance); } } - public static class QueryParametersMap0Builder implements GenericBuilder> { + public static class FakebodywithqueryparamsPutQueryParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "query" @@ -81,7 +81,7 @@ public static class QueryParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMap0Builder(Map instance) { + public FakebodywithqueryparamsPutQueryParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,25 +89,25 @@ public Map build() { } } - public static class QueryParametersMapBuilder implements SetterForQuery { + public static class FakebodywithqueryparamsPutQueryParametersMapBuilder implements SetterForFakebodywithqueryparamsPutquery { private final Map instance; - public QueryParametersMapBuilder() { + public FakebodywithqueryparamsPutQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public QueryParametersMap0Builder getBuilderAfterQuery(Map instance) { - return new QueryParametersMap0Builder(instance); + public FakebodywithqueryparamsPutQueryParametersMap0Builder getBuilderAfterFakebodywithqueryparamsPutquery(Map instance) { + return new FakebodywithqueryparamsPutQueryParametersMap0Builder(instance); } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface FakebodywithqueryparamsPutQueryParameters1Boxed permits FakebodywithqueryparamsPutQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record FakebodywithqueryparamsPutQueryParameters1BoxedMap(FakebodywithqueryparamsPutQueryParametersMap data) implements FakebodywithqueryparamsPutQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,10 +115,10 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class FakebodywithqueryparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakebodywithqueryparamsPutQueryParameters1 instance = null; - protected QueryParameters1() { + protected FakebodywithqueryparamsPutQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -127,18 +127,18 @@ protected QueryParameters1() { .required(Set.of( "query" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakebodywithqueryparamsPutadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static FakebodywithqueryparamsPutQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new FakebodywithqueryparamsPutQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakebodywithqueryparamsPutQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new FakebodywithqueryparamsPutQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakebodywithqueryparamsPutQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -190,11 +190,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public FakebodywithqueryparamsPutQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakebodywithqueryparamsPutQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakebodywithqueryparamsPutQueryParameters1Boxed 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/fakecasesensitiveparams/FakecasesensitiveparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java index cf14c2349de..151c05d7f21 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.QueryParameters; +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; @@ -80,12 +80,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public QueryParameters.QueryParametersMap queryParameters; + public FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( - QueryParameters.QueryParametersMap queryParameters, + FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public PutRequest( } public static class PutNullableRequest { - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java similarity index 51% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java index 2e940b57cf6..156ae88ab40 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java @@ -27,24 +27,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class FakecasesensitiveparamsPutQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakecasesensitiveparamsPutadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakecasesensitiveparamsPutadditionalProperties instance = null; + public static FakecasesensitiveparamsPutadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakecasesensitiveparamsPutadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakecasesensitiveparamsPutQueryParametersMap extends FrozenMap<@Nullable Object> { + protected FakecasesensitiveparamsPutQueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -53,8 +53,8 @@ protected QueryParametersMap(FrozenMap<@Nullable Object> m) { "some_var" ); public static final Set optionalKeys = Set.of(); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return QueryParameters1.getInstance().validate(arg, configuration); + public static FakecasesensitiveparamsPutQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakecasesensitiveparamsPutQueryParameters1.getInstance().validate(arg, configuration); } public String SomeVar() { @@ -82,40 +82,40 @@ public String some_var() { } } - public interface SetterForSomeVar2 { + public interface SetterForFakecasesensitiveparamsPutSomeVar { Map getInstance(); - T getBuilderAfterSomeVar2(Map instance); + T getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance); default T SomeVar(String value) { var instance = getInstance(); instance.put("SomeVar", value); - return getBuilderAfterSomeVar2(instance); + return getBuilderAfterFakecasesensitiveparamsPutSomeVar(instance); } } - public interface SetterForSomeVar { + public interface SetterForFakecasesensitiveparamsPutsomeVar { Map getInstance(); - T getBuilderAfterSomeVar(Map instance); + T getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance); default T someVar(String value) { var instance = getInstance(); instance.put("someVar", value); - return getBuilderAfterSomeVar(instance); + return getBuilderAfterFakecasesensitiveparamsPutsomeVar(instance); } } - public interface SetterForSomeVar1 { + public interface SetterForFakecasesensitiveparamsPutsomeVar1 { Map getInstance(); - T getBuilderAfterSomeVar1(Map instance); + T getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance); default T some_var(String value) { var instance = getInstance(); instance.put("some_var", value); - return getBuilderAfterSomeVar1(instance); + return getBuilderAfterFakecasesensitiveparamsPutsomeVar1(instance); } } - public static class QueryParametersMap000Builder implements GenericBuilder> { + public static class FakecasesensitiveparamsPutQueryParametersMap000Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "SomeVar", @@ -125,7 +125,7 @@ public static class QueryParametersMap000Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMap000Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParametersMap000Builder(Map instance) { this.instance = instance; } public Map build() { @@ -133,118 +133,118 @@ public QueryParametersMap000Builder(Map instance) { } } - public static class QueryParametersMap001Builder implements SetterForSomeVar1 { + public static class FakecasesensitiveparamsPutQueryParametersMap001Builder implements SetterForFakecasesensitiveparamsPutsomeVar1 { private final Map instance; - public QueryParametersMap001Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParametersMap001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap000Builder getBuilderAfterSomeVar1(Map instance) { - return new QueryParametersMap000Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap000Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap000Builder(instance); } } - public static class QueryParametersMap010Builder implements SetterForSomeVar { + public static class FakecasesensitiveparamsPutQueryParametersMap010Builder implements SetterForFakecasesensitiveparamsPutsomeVar { private final Map instance; - public QueryParametersMap010Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParametersMap010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap000Builder getBuilderAfterSomeVar(Map instance) { - return new QueryParametersMap000Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap000Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap000Builder(instance); } } - public static class QueryParametersMap011Builder implements SetterForSomeVar, SetterForSomeVar1 { + public static class FakecasesensitiveparamsPutQueryParametersMap011Builder implements SetterForFakecasesensitiveparamsPutsomeVar, SetterForFakecasesensitiveparamsPutsomeVar1 { private final Map instance; - public QueryParametersMap011Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParametersMap011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap001Builder getBuilderAfterSomeVar(Map instance) { - return new QueryParametersMap001Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap001Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap001Builder(instance); } - public QueryParametersMap010Builder getBuilderAfterSomeVar1(Map instance) { - return new QueryParametersMap010Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap010Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap010Builder(instance); } } - public static class QueryParametersMap100Builder implements SetterForSomeVar2 { + public static class FakecasesensitiveparamsPutQueryParametersMap100Builder implements SetterForFakecasesensitiveparamsPutSomeVar { private final Map instance; - public QueryParametersMap100Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParametersMap100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap000Builder getBuilderAfterSomeVar2(Map instance) { - return new QueryParametersMap000Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap000Builder getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap000Builder(instance); } } - public static class QueryParametersMap101Builder implements SetterForSomeVar2, SetterForSomeVar1 { + public static class FakecasesensitiveparamsPutQueryParametersMap101Builder implements SetterForFakecasesensitiveparamsPutSomeVar, SetterForFakecasesensitiveparamsPutsomeVar1 { private final Map instance; - public QueryParametersMap101Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParametersMap101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap001Builder getBuilderAfterSomeVar2(Map instance) { - return new QueryParametersMap001Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap001Builder getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap001Builder(instance); } - public QueryParametersMap100Builder getBuilderAfterSomeVar1(Map instance) { - return new QueryParametersMap100Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap100Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap100Builder(instance); } } - public static class QueryParametersMap110Builder implements SetterForSomeVar2, SetterForSomeVar { + public static class FakecasesensitiveparamsPutQueryParametersMap110Builder implements SetterForFakecasesensitiveparamsPutSomeVar, SetterForFakecasesensitiveparamsPutsomeVar { private final Map instance; - public QueryParametersMap110Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParametersMap110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap010Builder getBuilderAfterSomeVar2(Map instance) { - return new QueryParametersMap010Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap010Builder getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap010Builder(instance); } - public QueryParametersMap100Builder getBuilderAfterSomeVar(Map instance) { - return new QueryParametersMap100Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap100Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap100Builder(instance); } } - public static class QueryParametersMapBuilder implements SetterForSomeVar2, SetterForSomeVar, SetterForSomeVar1 { + public static class FakecasesensitiveparamsPutQueryParametersMapBuilder implements SetterForFakecasesensitiveparamsPutSomeVar, SetterForFakecasesensitiveparamsPutsomeVar, SetterForFakecasesensitiveparamsPutsomeVar1 { private final Map instance; - public QueryParametersMapBuilder() { + public FakecasesensitiveparamsPutQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public QueryParametersMap011Builder getBuilderAfterSomeVar2(Map instance) { - return new QueryParametersMap011Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap011Builder getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap011Builder(instance); } - public QueryParametersMap101Builder getBuilderAfterSomeVar(Map instance) { - return new QueryParametersMap101Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap101Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap101Builder(instance); } - public QueryParametersMap110Builder getBuilderAfterSomeVar1(Map instance) { - return new QueryParametersMap110Builder(instance); + public FakecasesensitiveparamsPutQueryParametersMap110Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance) { + return new FakecasesensitiveparamsPutQueryParametersMap110Builder(instance); } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface FakecasesensitiveparamsPutQueryParameters1Boxed permits FakecasesensitiveparamsPutQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record FakecasesensitiveparamsPutQueryParameters1BoxedMap(FakecasesensitiveparamsPutQueryParametersMap data) implements FakecasesensitiveparamsPutQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -252,10 +252,10 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class FakecasesensitiveparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakecasesensitiveparamsPutQueryParameters1 instance = null; - protected QueryParameters1() { + protected FakecasesensitiveparamsPutQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -268,18 +268,18 @@ protected QueryParameters1() { "someVar", "some_var" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakecasesensitiveparamsPutadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static FakecasesensitiveparamsPutQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new FakecasesensitiveparamsPutQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakecasesensitiveparamsPutQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new FakecasesensitiveparamsPutQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakecasesensitiveparamsPutQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -328,11 +328,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public FakecasesensitiveparamsPutQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakecasesensitiveparamsPutQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakecasesensitiveparamsPutQueryParameters1Boxed 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/fakedeletecoffeeid/FakedeletecoffeeidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java index 45ca53df281..4fca9306157 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.PathParameters; +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; @@ -79,12 +79,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public PathParameters.PathParametersMap pathParameters; + public FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - PathParameters.PathParametersMap pathParameters, + FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParametersMap pathParameters; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap 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/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java index ac73ba87fae..870bd0bc79f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class FakedeletecoffeeidDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakedeletecoffeeidDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakedeletecoffeeidDeleteadditionalProperties instance = null; + public static FakedeletecoffeeidDeleteadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakedeletecoffeeidDeleteadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class FakedeletecoffeeidDeletePathParametersMap extends FrozenMap { + protected FakedeletecoffeeidDeletePathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static FakedeletecoffeeidDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakedeletecoffeeidDeletePathParameters1.getInstance().validate(arg, configuration); } public String id() { @@ -62,18 +62,18 @@ public String id() { } } - public interface SetterForId { + public interface SetterForFakedeletecoffeeidDeleteid { Map getInstance(); - T getBuilderAfterId(Map instance); + T getBuilderAfterFakedeletecoffeeidDeleteid(Map instance); default T id(String value) { var instance = getInstance(); instance.put("id", value); - return getBuilderAfterId(instance); + return getBuilderAfterFakedeletecoffeeidDeleteid(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class FakedeletecoffeeidDeletePathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "id" @@ -81,7 +81,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public FakedeletecoffeeidDeletePathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,25 +89,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForId { + public static class FakedeletecoffeeidDeletePathParametersMapBuilder implements SetterForFakedeletecoffeeidDeleteid { private final Map instance; - public PathParametersMapBuilder() { + public FakedeletecoffeeidDeletePathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterId(Map instance) { - return new PathParametersMap0Builder(instance); + public FakedeletecoffeeidDeletePathParametersMap0Builder getBuilderAfterFakedeletecoffeeidDeleteid(Map instance) { + return new FakedeletecoffeeidDeletePathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface FakedeletecoffeeidDeletePathParameters1Boxed permits FakedeletecoffeeidDeletePathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record FakedeletecoffeeidDeletePathParameters1BoxedMap(FakedeletecoffeeidDeletePathParametersMap data) implements FakedeletecoffeeidDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,10 +115,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class FakedeletecoffeeidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakedeletecoffeeidDeletePathParameters1 instance = null; - protected PathParameters1() { + protected FakedeletecoffeeidDeletePathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -127,18 +127,18 @@ protected PathParameters1() { .required(Set.of( "id" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakedeletecoffeeidDeleteadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static FakedeletecoffeeidDeletePathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new FakedeletecoffeeidDeletePathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakedeletecoffeeidDeletePathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new FakedeletecoffeeidDeletePathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakedeletecoffeeidDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -190,11 +190,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public FakedeletecoffeeidDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakedeletecoffeeidDeletePathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakedeletecoffeeidDeletePathParameters1Boxed 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/fakeinlinecomposition/FakeinlinecompositionPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java index 11e1dbb7ecd..ce21538668b 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.QueryParameters; +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; @@ -97,7 +97,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody requestBody; - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public FakeinlinecompositionPostQueryParameters.@Nullable FakeinlinecompositionPostQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java index eb7668fddb7..445cd00fb69 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java @@ -26,24 +26,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class FakeinlinecompositionPostQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeinlinecompositionPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakeinlinecompositionPostadditionalProperties instance = null; + public static FakeinlinecompositionPostadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakeinlinecompositionPostadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeinlinecompositionPostQueryParametersMap extends FrozenMap<@Nullable Object> { + protected FakeinlinecompositionPostQueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -51,8 +51,8 @@ protected QueryParametersMap(FrozenMap<@Nullable Object> m) { "compositionAtRoot", "compositionInProperty" ); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return QueryParameters1.getInstance().validate(arg, configuration); + public static FakeinlinecompositionPostQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeinlinecompositionPostQueryParameters1.getInstance().validate(arg, configuration); } public @Nullable Object compositionAtRoot() throws UnsetPropertyException { @@ -76,77 +76,77 @@ public Schema1.SchemaMap1 compositionInProperty() throws UnsetPropertyException } } - public interface SetterForCompositionAtRoot { + public interface SetterForFakeinlinecompositionPostcompositionAtRoot { Map getInstance(); - T getBuilderAfterCompositionAtRoot(Map instance); + T getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(Map instance); default T compositionAtRoot(Void value) { var instance = getInstance(); instance.put("compositionAtRoot", null); - return getBuilderAfterCompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); } default T compositionAtRoot(boolean value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); } default T compositionAtRoot(String value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); } default T compositionAtRoot(int value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); } default T compositionAtRoot(float value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); } default T compositionAtRoot(long value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); } default T compositionAtRoot(double value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); } default T compositionAtRoot(List value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); } default T compositionAtRoot(Map value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); } } - public interface SetterForCompositionInProperty { + public interface SetterForFakeinlinecompositionPostcompositionInProperty { Map getInstance(); - T getBuilderAfterCompositionInProperty(Map instance); + T getBuilderAfterFakeinlinecompositionPostcompositionInProperty(Map instance); default T compositionInProperty(Map value) { var instance = getInstance(); instance.put("compositionInProperty", value); - return getBuilderAfterCompositionInProperty(instance); + return getBuilderAfterFakeinlinecompositionPostcompositionInProperty(instance); } } - public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForCompositionAtRoot, SetterForCompositionInProperty { + public static class FakeinlinecompositionPostQueryParametersMapBuilder implements GenericBuilder>, SetterForFakeinlinecompositionPostcompositionAtRoot, SetterForFakeinlinecompositionPostcompositionInProperty { private final Map instance; private static final Set knownKeys = Set.of( "compositionAtRoot", @@ -155,7 +155,7 @@ public static class QueryParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMapBuilder() { + public FakeinlinecompositionPostQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -164,20 +164,20 @@ public QueryParametersMapBuilder() { public Map getInstance() { return instance; } - public QueryParametersMapBuilder getBuilderAfterCompositionAtRoot(Map instance) { + public FakeinlinecompositionPostQueryParametersMapBuilder getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(Map instance) { return this; } - public QueryParametersMapBuilder getBuilderAfterCompositionInProperty(Map instance) { + public FakeinlinecompositionPostQueryParametersMapBuilder getBuilderAfterFakeinlinecompositionPostcompositionInProperty(Map instance) { return this; } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface FakeinlinecompositionPostQueryParameters1Boxed permits FakeinlinecompositionPostQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record FakeinlinecompositionPostQueryParameters1BoxedMap(FakeinlinecompositionPostQueryParametersMap data) implements FakeinlinecompositionPostQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -185,28 +185,28 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class FakeinlinecompositionPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeinlinecompositionPostQueryParameters1 instance = null; - protected QueryParameters1() { + 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) + .additionalProperties(FakeinlinecompositionPostadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static FakeinlinecompositionPostQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new FakeinlinecompositionPostQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeinlinecompositionPostQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new FakeinlinecompositionPostQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeinlinecompositionPostQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -255,11 +255,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public FakeinlinecompositionPostQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeinlinecompositionPostQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakeinlinecompositionPostQueryParameters1Boxed 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/fakeobjinquery/FakeobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java index f5c3932efa6..fafba1cee8e 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeobjinquery; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.QueryParameters; +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; @@ -83,7 +83,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public FakeobjinqueryGetQueryParameters.@Nullable FakeobjinqueryGetQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java index ab8fcd644a7..65d46dd8fe8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class FakeobjinqueryGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeobjinqueryGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakeobjinqueryGetadditionalProperties instance = null; + public static FakeobjinqueryGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakeobjinqueryGetadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { + public static class FakeobjinqueryGetQueryParametersMap extends FrozenMap { + protected FakeobjinqueryGetQueryParametersMap(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 QueryParameters1.getInstance().validate(arg, configuration); + public static FakeobjinqueryGetQueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + return FakeobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); } public Schema0.SchemaMap0 mapBean() throws UnsetPropertyException { @@ -58,18 +58,18 @@ public Schema0.SchemaMap0 mapBean() throws UnsetPropertyException { } } - public interface SetterForMapBean { + public interface SetterForFakeobjinqueryGetmapBean { Map> getInstance(); - T getBuilderAfterMapBean(Map> instance); + T getBuilderAfterFakeobjinqueryGetmapBean(Map> instance); default T mapBean(Map value) { var instance = getInstance(); instance.put("mapBean", value); - return getBuilderAfterMapBean(instance); + return getBuilderAfterFakeobjinqueryGetmapBean(instance); } } - public static class QueryParametersMapBuilder implements GenericBuilder>>, SetterForMapBean { + public static class FakeobjinqueryGetQueryParametersMapBuilder implements GenericBuilder>>, SetterForFakeobjinqueryGetmapBean { private final Map> instance; private static final Set knownKeys = Set.of( "mapBean" @@ -77,7 +77,7 @@ public static class QueryParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMapBuilder() { + public FakeobjinqueryGetQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map> build() { @@ -86,17 +86,17 @@ public QueryParametersMapBuilder() { public Map> getInstance() { return instance; } - public QueryParametersMapBuilder getBuilderAfterMapBean(Map> instance) { + public FakeobjinqueryGetQueryParametersMapBuilder getBuilderAfterFakeobjinqueryGetmapBean(Map> instance) { return this; } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface FakeobjinqueryGetQueryParameters1Boxed permits FakeobjinqueryGetQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record FakeobjinqueryGetQueryParameters1BoxedMap(FakeobjinqueryGetQueryParametersMap data) implements FakeobjinqueryGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,27 +104,27 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class FakeobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeobjinqueryGetQueryParameters1 instance = null; - protected QueryParameters1() { + protected FakeobjinqueryGetQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( new PropertyEntry("mapBean", Schema0.Schema01.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakeobjinqueryGetadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static FakeobjinqueryGetQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new FakeobjinqueryGetQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeobjinqueryGetQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Schema0.SchemaMap0) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new FakeobjinqueryGetQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeobjinqueryGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -176,11 +176,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public FakeobjinqueryGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeobjinqueryGetQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakeobjinqueryGetQueryParameters1Boxed 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/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java index 95d2d096700..1e7dc076454 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 @@ -2,11 +2,11 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostRequestBody; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.HeaderParameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.QueryParameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.CookieParameters; +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.PathParameters; +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; @@ -115,20 +115,20 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public PathParameters.PathParametersMap pathParameters; + public Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters; public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; - public QueryParameters.@Nullable QueryParametersMap queryParameters; - public CookieParameters.@Nullable CookieParametersMap cookieParameters; + public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters; + public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters; + public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - PathParameters.PathParametersMap pathParameters, + Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters, Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody, - HeaderParameters.@Nullable HeaderParametersMap headerParameters, - QueryParameters.@Nullable QueryParametersMap queryParameters, - CookieParameters.@Nullable CookieParametersMap cookieParameters, + Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters, + Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters, + Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -143,11 +143,11 @@ public PostRequest( } public static class PostNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public Fakeparametercollisions1ababselfabPostPathParameters.@Nullable Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters; public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; - public QueryParameters.@Nullable QueryParametersMap queryParameters; - public CookieParameters.@Nullable CookieParametersMap cookieParameters; + public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters; + public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters; + public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters; public RootServerInfo.@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(HeaderParameters.HeaderParametersMap headerParameters) { + default T headerParameters(Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -175,7 +175,7 @@ default T headerParameters(HeaderParameters.HeaderParametersMap headerParameters public interface SetterForQueryParameters { PostNullableRequest getInstance(); T getBuilderAfterQueryParameters(PostNullableRequest instance); - default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); @@ -185,7 +185,7 @@ default T queryParameters(QueryParameters.QueryParametersMap queryParameters) { public interface SetterForCookieParameters { PostNullableRequest getInstance(); T getBuilderAfterCookieParameters(PostNullableRequest instance); - default T cookieParameters(CookieParameters.CookieParametersMap cookieParameters) { + default T cookieParameters(Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParametersMap 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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap 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/CookieParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java similarity index 60% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java index da9545c05c8..23e6be4ba01 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java @@ -29,24 +29,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class CookieParameters { +public class Fakeparametercollisions1ababselfabPostCookieParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Fakeparametercollisions1ababselfabPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable Fakeparametercollisions1ababselfabPostadditionalProperties instance = null; + public static Fakeparametercollisions1ababselfabPostadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new Fakeparametercollisions1ababselfabPostadditionalProperties(); } return instance; } } - public static class CookieParametersMap extends FrozenMap<@Nullable Object> { - protected CookieParametersMap(FrozenMap<@Nullable Object> m) { + public static class Fakeparametercollisions1ababselfabPostCookieParametersMap extends FrozenMap<@Nullable Object> { + protected Fakeparametercollisions1ababselfabPostCookieParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -57,8 +57,8 @@ protected CookieParametersMap(FrozenMap<@Nullable Object> m) { "A-B", "self" ); - public static CookieParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return CookieParameters1.getInstance().validate(arg, configuration); + public static Fakeparametercollisions1ababselfabPostCookieParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Fakeparametercollisions1ababselfabPostCookieParameters1.getInstance().validate(arg, configuration); } public String aB() throws UnsetPropertyException { @@ -92,62 +92,62 @@ public String self() throws UnsetPropertyException { } } - public interface SetterForSchema1 { + public interface SetterForFakeparametercollisions1ababselfabPost1 { Map getInstance(); - T getBuilderAfterSchema1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterSchema1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPost1(instance); } } - public interface SetterForAB { + public interface SetterForFakeparametercollisions1ababselfabPostaB { Map getInstance(); - T getBuilderAfterAB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterAB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostaB(instance); } } - public interface SetterForAb { + public interface SetterForFakeparametercollisions1ababselfabPostAb { Map getInstance(); - T getBuilderAfterAb(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance); default T Ab(String value) { var instance = getInstance(); instance.put("Ab", value); - return getBuilderAfterAb(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostAb(instance); } } - public interface SetterForAB1 { + public interface SetterForFakeparametercollisions1ababselfabPostAB { Map getInstance(); - T getBuilderAfterAB1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterAB1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostAB(instance); } } - public interface SetterForSelf { + public interface SetterForFakeparametercollisions1ababselfabPostself { Map getInstance(); - T getBuilderAfterSelf(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterSelf(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostself(instance); } } - public static class CookieParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAb, SetterForAB1, SetterForSelf { + public static class Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -159,7 +159,7 @@ public static class CookieParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public CookieParametersMapBuilder() { + public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -168,29 +168,29 @@ public CookieParametersMapBuilder() { public Map getInstance() { return instance; } - public CookieParametersMapBuilder getBuilderAfterSchema1(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { return this; } - public CookieParametersMapBuilder getBuilderAfterAB(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { return this; } - public CookieParametersMapBuilder getBuilderAfterAb(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { return this; } - public CookieParametersMapBuilder getBuilderAfterAB1(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { return this; } - public CookieParametersMapBuilder getBuilderAfterSelf(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { return this; } } - public sealed interface CookieParameters1Boxed permits CookieParameters1BoxedMap { + public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters1Boxed permits Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap { @Nullable Object getData(); } - public record CookieParameters1BoxedMap(CookieParametersMap data) implements CookieParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(Fakeparametercollisions1ababselfabPostCookieParametersMap data) implements Fakeparametercollisions1ababselfabPostCookieParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -198,10 +198,10 @@ public record CookieParameters1BoxedMap(CookieParametersMap data) implements Coo } - public static class CookieParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable CookieParameters1 instance = null; + public static class Fakeparametercollisions1ababselfabPostCookieParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Fakeparametercollisions1ababselfabPostCookieParameters1 instance = null; - protected CookieParameters1() { + protected Fakeparametercollisions1ababselfabPostCookieParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -211,18 +211,18 @@ protected CookieParameters1() { new PropertyEntry("A-B", Schema18.Schema181.class), new PropertyEntry("self", Schema17.Schema171.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(Fakeparametercollisions1ababselfabPostadditionalProperties.class) ); } - public static CookieParameters1 getInstance() { + public static Fakeparametercollisions1ababselfabPostCookieParameters1 getInstance() { if (instance == null) { - instance = new CookieParameters1(); + instance = new Fakeparametercollisions1ababselfabPostCookieParameters1(); } return instance; } - public CookieParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Fakeparametercollisions1ababselfabPostCookieParametersMap 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 CookieParametersMap getNewInstance(Map arg, List pathToItem properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new CookieParametersMap(castProperties); + return new Fakeparametercollisions1ababselfabPostCookieParametersMap(castProperties); } - public CookieParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostCookieParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -271,11 +271,11 @@ public CookieParametersMap validate(Map arg, SchemaConfiguration configura throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public CookieParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new CookieParameters1BoxedMap(validate(arg, configuration)); + public Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(validate(arg, configuration)); } @Override - public CookieParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostCookieParameters1Boxed 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/fakeparametercollisions1ababselfab/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java similarity index 60% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java index 39fa1cd2444..2effb73792e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java @@ -28,24 +28,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class HeaderParameters { +public class Fakeparametercollisions1ababselfabPostHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Fakeparametercollisions1ababselfabPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable Fakeparametercollisions1ababselfabPostadditionalProperties instance = null; + public static Fakeparametercollisions1ababselfabPostadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new Fakeparametercollisions1ababselfabPostadditionalProperties(); } return instance; } } - public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { - protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { + public static class Fakeparametercollisions1ababselfabPostHeaderParametersMap extends FrozenMap<@Nullable Object> { + protected Fakeparametercollisions1ababselfabPostHeaderParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -55,8 +55,8 @@ protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { "A-B", "self" ); - public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return HeaderParameters1.getInstance().validate(arg, configuration); + public static Fakeparametercollisions1ababselfabPostHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Fakeparametercollisions1ababselfabPostHeaderParameters1.getInstance().validate(arg, configuration); } public String aB() throws UnsetPropertyException { @@ -80,51 +80,51 @@ public String self() throws UnsetPropertyException { } } - public interface SetterForSchema1 { + public interface SetterForFakeparametercollisions1ababselfabPost1 { Map getInstance(); - T getBuilderAfterSchema1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterSchema1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPost1(instance); } } - public interface SetterForAB { + public interface SetterForFakeparametercollisions1ababselfabPostaB { Map getInstance(); - T getBuilderAfterAB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterAB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostaB(instance); } } - public interface SetterForAB1 { + public interface SetterForFakeparametercollisions1ababselfabPostAB { Map getInstance(); - T getBuilderAfterAB1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterAB1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostAB(instance); } } - public interface SetterForSelf { + public interface SetterForFakeparametercollisions1ababselfabPostself { Map getInstance(); - T getBuilderAfterSelf(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterSelf(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostself(instance); } } - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAB1, SetterForSelf { + public static class Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -135,7 +135,7 @@ public static class HeaderParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public HeaderParametersMapBuilder() { + public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -144,26 +144,26 @@ public HeaderParametersMapBuilder() { public Map getInstance() { return instance; } - public HeaderParametersMapBuilder getBuilderAfterSchema1(Map instance) { + public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { return this; } - public HeaderParametersMapBuilder getBuilderAfterAB(Map instance) { + public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { return this; } - public HeaderParametersMapBuilder getBuilderAfterAB1(Map instance) { + public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { return this; } - public HeaderParametersMapBuilder getBuilderAfterSelf(Map instance) { + public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { return this; } } - public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { + public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed permits Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap { @Nullable Object getData(); } - public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements HeaderParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(Fakeparametercollisions1ababselfabPostHeaderParametersMap data) implements Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -171,10 +171,10 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable HeaderParameters1 instance = null; + public static class Fakeparametercollisions1ababselfabPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Fakeparametercollisions1ababselfabPostHeaderParameters1 instance = null; - protected HeaderParameters1() { + protected Fakeparametercollisions1ababselfabPostHeaderParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -183,18 +183,18 @@ protected HeaderParameters1() { new PropertyEntry("A-B", Schema8.Schema81.class), new PropertyEntry("self", Schema7.Schema71.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(Fakeparametercollisions1ababselfabPostadditionalProperties.class) ); } - public static HeaderParameters1 getInstance() { + public static Fakeparametercollisions1ababselfabPostHeaderParameters1 getInstance() { if (instance == null) { - instance = new HeaderParameters1(); + instance = new Fakeparametercollisions1ababselfabPostHeaderParameters1(); } return instance; } - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Fakeparametercollisions1ababselfabPostHeaderParametersMap 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 HeaderParametersMap getNewInstance(Map arg, List pathToItem properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); + return new Fakeparametercollisions1ababselfabPostHeaderParametersMap(castProperties); } - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -243,11 +243,11 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new HeaderParameters1BoxedMap(validate(arg, configuration)); + public Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(validate(arg, configuration)); } @Override - public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed 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/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..83039b2ef64 --- /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 Fakeparametercollisions1ababselfabPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable Fakeparametercollisions1ababselfabPostadditionalProperties instance = null; + public static Fakeparametercollisions1ababselfabPostadditionalProperties getInstance() { + if (instance == null) { + instance = new Fakeparametercollisions1ababselfabPostadditionalProperties(); + } + return instance; + } + } + + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap extends FrozenMap<@Nullable Object> { + protected Fakeparametercollisions1ababselfabPostPathParametersMap(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 Fakeparametercollisions1ababselfabPostPathParametersMap 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 SetterForFakeparametercollisions1ababselfabPost1 { + Map getInstance(); + T getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance); + + default T positive1(String value) { + var instance = getInstance(); + instance.put("1", value); + return getBuilderAfterFakeparametercollisions1ababselfabPost1(instance); + } + } + + public interface SetterForFakeparametercollisions1ababselfabPostAB { + Map getInstance(); + T getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance); + + default T aHyphenMinusB(String value) { + var instance = getInstance(); + instance.put("A-B", value); + return getBuilderAfterFakeparametercollisions1ababselfabPostAB(instance); + } + } + + public interface SetterForFakeparametercollisions1ababselfabPostAb { + Map getInstance(); + T getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance); + + default T Ab(String value) { + var instance = getInstance(); + instance.put("Ab", value); + return getBuilderAfterFakeparametercollisions1ababselfabPostAb(instance); + } + } + + public interface SetterForFakeparametercollisions1ababselfabPostaB { + Map getInstance(); + T getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance); + + default T aB(String value) { + var instance = getInstance(); + instance.put("aB", value); + return getBuilderAfterFakeparametercollisions1ababselfabPostaB(instance); + } + } + + public interface SetterForFakeparametercollisions1ababselfabPostself { + Map getInstance(); + T getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance); + + default T self(String value) { + var instance = getInstance(); + instance.put("self", value); + return getBuilderAfterFakeparametercollisions1ababselfabPostself(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder 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 Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder implements SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder implements SetterForFakeparametercollisions1ababselfabPostaB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder implements SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder implements SetterForFakeparametercollisions1ababselfabPostAb { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder implements SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder implements SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder implements SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder implements SetterForFakeparametercollisions1ababselfabPostAB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostaB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder implements SetterForFakeparametercollisions1ababselfabPost1 { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAb { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostaB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder(instance); + } + } + + public static class Fakeparametercollisions1ababselfabPostPathParametersMapBuilder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + private final Map instance; + public Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder(instance); + } + public Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder(instance); + } + } + + + public sealed interface Fakeparametercollisions1ababselfabPostPathParameters1Boxed permits Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(Fakeparametercollisions1ababselfabPostPathParametersMap 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(Fakeparametercollisions1ababselfabPostadditionalProperties.class) + ); + } + + public static Fakeparametercollisions1ababselfabPostPathParameters1 getInstance() { + if (instance == null) { + instance = new Fakeparametercollisions1ababselfabPostPathParameters1(); + } + return instance; + } + + public Fakeparametercollisions1ababselfabPostPathParametersMap 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 Fakeparametercollisions1ababselfabPostPathParametersMap(castProperties); + } + + public Fakeparametercollisions1ababselfabPostPathParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java similarity index 60% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java index 99e5b99540f..eb8ec9f9eff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java @@ -29,24 +29,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class Fakeparametercollisions1ababselfabPostQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Fakeparametercollisions1ababselfabPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable Fakeparametercollisions1ababselfabPostadditionalProperties instance = null; + public static Fakeparametercollisions1ababselfabPostadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new Fakeparametercollisions1ababselfabPostadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class Fakeparametercollisions1ababselfabPostQueryParametersMap extends FrozenMap<@Nullable Object> { + protected Fakeparametercollisions1ababselfabPostQueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -57,8 +57,8 @@ protected QueryParametersMap(FrozenMap<@Nullable Object> m) { "A-B", "self" ); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return QueryParameters1.getInstance().validate(arg, configuration); + public static Fakeparametercollisions1ababselfabPostQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Fakeparametercollisions1ababselfabPostQueryParameters1.getInstance().validate(arg, configuration); } public String aB() throws UnsetPropertyException { @@ -92,62 +92,62 @@ public String self() throws UnsetPropertyException { } } - public interface SetterForSchema1 { + public interface SetterForFakeparametercollisions1ababselfabPost1 { Map getInstance(); - T getBuilderAfterSchema1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterSchema1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPost1(instance); } } - public interface SetterForAB { + public interface SetterForFakeparametercollisions1ababselfabPostaB { Map getInstance(); - T getBuilderAfterAB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterAB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostaB(instance); } } - public interface SetterForAb { + public interface SetterForFakeparametercollisions1ababselfabPostAb { Map getInstance(); - T getBuilderAfterAb(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance); default T Ab(String value) { var instance = getInstance(); instance.put("Ab", value); - return getBuilderAfterAb(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostAb(instance); } } - public interface SetterForAB1 { + public interface SetterForFakeparametercollisions1ababselfabPostAB { Map getInstance(); - T getBuilderAfterAB1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterAB1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostAB(instance); } } - public interface SetterForSelf { + public interface SetterForFakeparametercollisions1ababselfabPostself { Map getInstance(); - T getBuilderAfterSelf(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterSelf(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostself(instance); } } - public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAb, SetterForAB1, SetterForSelf { + public static class Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -159,7 +159,7 @@ public static class QueryParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMapBuilder() { + public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -168,29 +168,29 @@ public QueryParametersMapBuilder() { public Map getInstance() { return instance; } - public QueryParametersMapBuilder getBuilderAfterSchema1(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { return this; } - public QueryParametersMapBuilder getBuilderAfterAB(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { return this; } - public QueryParametersMapBuilder getBuilderAfterAb(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { return this; } - public QueryParametersMapBuilder getBuilderAfterAB1(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { return this; } - public QueryParametersMapBuilder getBuilderAfterSelf(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { return this; } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters1Boxed permits Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(Fakeparametercollisions1ababselfabPostQueryParametersMap data) implements Fakeparametercollisions1ababselfabPostQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -198,10 +198,10 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class Fakeparametercollisions1ababselfabPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Fakeparametercollisions1ababselfabPostQueryParameters1 instance = null; - protected QueryParameters1() { + protected Fakeparametercollisions1ababselfabPostQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -211,18 +211,18 @@ protected QueryParameters1() { new PropertyEntry("A-B", Schema4.Schema41.class), new PropertyEntry("self", Schema3.Schema31.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(Fakeparametercollisions1ababselfabPostadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static Fakeparametercollisions1ababselfabPostQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new Fakeparametercollisions1ababselfabPostQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Fakeparametercollisions1ababselfabPostQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new Fakeparametercollisions1ababselfabPostQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -271,11 +271,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostQueryParameters1Boxed 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/fakeparametercollisions1ababselfab/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java deleted file mode 100644 index 49acde7c086..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.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 PathParameters { - // 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 PathParameters1.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 PathParameters1Boxed permits PathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; - - protected PathParameters1() { - 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 PathParameters1 getInstance() { - if (instance == null) { - instance = new PathParameters1(); - } - 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 PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public PathParameters1Boxed 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/FakepetiduploadimagewithrequiredfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java index 362abd6421d..647c538f1b2 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 @@ -4,7 +4,7 @@ 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.PathParameters; +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; @@ -105,14 +105,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public PathParameters.PathParametersMap pathParameters; + public FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters; public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - PathParameters.PathParametersMap pathParameters, + FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters, FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -127,7 +127,7 @@ public PostRequest( } public static class PostNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters; public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap 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/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java similarity index 62% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java index 2ea4c671fcc..f34f4be8277 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class FakepetiduploadimagewithrequiredfilePostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakepetiduploadimagewithrequiredfilePostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakepetiduploadimagewithrequiredfilePostadditionalProperties instance = null; + public static FakepetiduploadimagewithrequiredfilePostadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakepetiduploadimagewithrequiredfilePostadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class FakepetiduploadimagewithrequiredfilePostPathParametersMap extends FrozenMap { + protected FakepetiduploadimagewithrequiredfilePostPathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static FakepetiduploadimagewithrequiredfilePostPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakepetiduploadimagewithrequiredfilePostPathParameters1.getInstance().validate(arg, configuration); } public Number petId() { @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetId { + public interface SetterForFakepetiduploadimagewithrequiredfilePostpetId { Map getInstance(); - T getBuilderAfterPetId(Map instance); + T getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,25 +107,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForPetId { + public static class FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder implements SetterForFakepetiduploadimagewithrequiredfilePostpetId { private final Map instance; - public PathParametersMapBuilder() { + public FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); + public FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(Map instance) { + return new FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed permits FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(FakepetiduploadimagewithrequiredfilePostPathParametersMap data) implements FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,10 +133,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class FakepetiduploadimagewithrequiredfilePostPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakepetiduploadimagewithrequiredfilePostPathParameters1 instance = null; - protected PathParameters1() { + protected FakepetiduploadimagewithrequiredfilePostPathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -145,18 +145,18 @@ protected PathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakepetiduploadimagewithrequiredfilePostadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static FakepetiduploadimagewithrequiredfilePostPathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new FakepetiduploadimagewithrequiredfilePostPathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakepetiduploadimagewithrequiredfilePostPathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new FakepetiduploadimagewithrequiredfilePostPathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakepetiduploadimagewithrequiredfilePostPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -208,11 +208,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed 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/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java index 118e62f87a0..8f85d6a9c9e 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.QueryParameters; +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; @@ -80,12 +80,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public QueryParameters.QueryParametersMap queryParameters; + public FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - QueryParameters.QueryParametersMap queryParameters, + FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public GetRequest( } public static class GetNullableRequest { - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java similarity index 62% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java index ae8606df9a8..9594438f817 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class FakequeryparamwithjsoncontenttypeGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakequeryparamwithjsoncontenttypeGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakequeryparamwithjsoncontenttypeGetadditionalProperties instance = null; + public static FakequeryparamwithjsoncontenttypeGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakequeryparamwithjsoncontenttypeGetadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakequeryparamwithjsoncontenttypeGetQueryParametersMap extends FrozenMap<@Nullable Object> { + protected FakequeryparamwithjsoncontenttypeGetQueryParametersMap(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 QueryParameters1.getInstance().validate(arg, configuration); + public static FakequeryparamwithjsoncontenttypeGetQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakequeryparamwithjsoncontenttypeGetQueryParameters1.getInstance().validate(arg, configuration); } public @Nullable Object someParam() { @@ -62,66 +62,66 @@ public static QueryParametersMap of(Map arg, } } - public interface SetterForSomeParam { + public interface SetterForFakequeryparamwithjsoncontenttypeGetsomeParam { Map getInstance(); - T getBuilderAfterSomeParam(Map instance); + T getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(Map instance); default T someParam(Void value) { var instance = getInstance(); instance.put("someParam", null); - return getBuilderAfterSomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); } default T someParam(boolean value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); } default T someParam(String value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); } default T someParam(int value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); } default T someParam(float value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); } default T someParam(long value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); } default T someParam(double value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); } default T someParam(List value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); } default T someParam(Map value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); } } - public static class QueryParametersMap0Builder implements GenericBuilder> { + public static class FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "someParam" @@ -129,7 +129,7 @@ public static class QueryParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMap0Builder(Map instance) { + public FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -137,25 +137,25 @@ public QueryParametersMap0Builder(Map instance) { } } - public static class QueryParametersMapBuilder implements SetterForSomeParam { + public static class FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder implements SetterForFakequeryparamwithjsoncontenttypeGetsomeParam { private final Map instance; - public QueryParametersMapBuilder() { + public FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public QueryParametersMap0Builder getBuilderAfterSomeParam(Map instance) { - return new QueryParametersMap0Builder(instance); + public FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(Map instance) { + return new FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder(instance); } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed permits FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(FakequeryparamwithjsoncontenttypeGetQueryParametersMap data) implements FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -163,10 +163,10 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class FakequeryparamwithjsoncontenttypeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters1 instance = null; - protected QueryParameters1() { + protected FakequeryparamwithjsoncontenttypeGetQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -175,18 +175,18 @@ protected QueryParameters1() { .required(Set.of( "someParam" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakequeryparamwithjsoncontenttypeGetadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static FakequeryparamwithjsoncontenttypeGetQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new FakequeryparamwithjsoncontenttypeGetQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakequeryparamwithjsoncontenttypeGetQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (@Nullable Object) propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new FakequeryparamwithjsoncontenttypeGetQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakequeryparamwithjsoncontenttypeGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -238,11 +238,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed 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/fakerefobjinquery/FakerefobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java index d9363ee1369..a216fc1f1d3 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefobjinquery; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.QueryParameters; +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; @@ -83,7 +83,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public FakerefobjinqueryGetQueryParameters.@Nullable FakerefobjinqueryGetQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java index 287d01c12a6..f85cdfc3437 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class FakerefobjinqueryGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakerefobjinqueryGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FakerefobjinqueryGetadditionalProperties instance = null; + public static FakerefobjinqueryGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FakerefobjinqueryGetadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { + public static class FakerefobjinqueryGetQueryParametersMap extends FrozenMap { + protected FakerefobjinqueryGetQueryParametersMap(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 QueryParameters1.getInstance().validate(arg, configuration); + public static FakerefobjinqueryGetQueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + return FakerefobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); } public Foo.FooMap mapBean() throws UnsetPropertyException { @@ -58,18 +58,18 @@ public Foo.FooMap mapBean() throws UnsetPropertyException { } } - public interface SetterForMapBean { + public interface SetterForFakerefobjinqueryGetmapBean { Map> getInstance(); - T getBuilderAfterMapBean(Map> instance); + T getBuilderAfterFakerefobjinqueryGetmapBean(Map> instance); default T mapBean(Map value) { var instance = getInstance(); instance.put("mapBean", value); - return getBuilderAfterMapBean(instance); + return getBuilderAfterFakerefobjinqueryGetmapBean(instance); } } - public static class QueryParametersMapBuilder implements GenericBuilder>>, SetterForMapBean { + public static class FakerefobjinqueryGetQueryParametersMapBuilder implements GenericBuilder>>, SetterForFakerefobjinqueryGetmapBean { private final Map> instance; private static final Set knownKeys = Set.of( "mapBean" @@ -77,7 +77,7 @@ public static class QueryParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMapBuilder() { + public FakerefobjinqueryGetQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map> build() { @@ -86,17 +86,17 @@ public QueryParametersMapBuilder() { public Map> getInstance() { return instance; } - public QueryParametersMapBuilder getBuilderAfterMapBean(Map> instance) { + public FakerefobjinqueryGetQueryParametersMapBuilder getBuilderAfterFakerefobjinqueryGetmapBean(Map> instance) { return this; } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface FakerefobjinqueryGetQueryParameters1Boxed permits FakerefobjinqueryGetQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record FakerefobjinqueryGetQueryParameters1BoxedMap(FakerefobjinqueryGetQueryParametersMap data) implements FakerefobjinqueryGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,27 +104,27 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class FakerefobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakerefobjinqueryGetQueryParameters1 instance = null; - protected QueryParameters1() { + protected FakerefobjinqueryGetQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( new PropertyEntry("mapBean", Foo.Foo1.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FakerefobjinqueryGetadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static FakerefobjinqueryGetQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new FakerefobjinqueryGetQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakerefobjinqueryGetQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Foo.FooMap) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new FakerefobjinqueryGetQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakerefobjinqueryGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -176,11 +176,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public FakerefobjinqueryGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakerefobjinqueryGetQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FakerefobjinqueryGetQueryParameters1Boxed 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/faketestqueryparamters/FaketestqueryparamtersPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java index b8084801f10..604870058a1 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.QueryParameters; +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; @@ -80,12 +80,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public QueryParameters.QueryParametersMap queryParameters; + public FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( - QueryParameters.QueryParametersMap queryParameters, + FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public PutRequest( } public static class PutNullableRequest { - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap 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 new file mode 100644 index 00000000000..65ffaf0bd6d --- /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 FaketestqueryparamtersPutadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable FaketestqueryparamtersPutadditionalProperties instance = null; + public static FaketestqueryparamtersPutadditionalProperties getInstance() { + if (instance == null) { + instance = new FaketestqueryparamtersPutadditionalProperties(); + } + return instance; + } + } + + + public static class FaketestqueryparamtersPutQueryParametersMap extends FrozenMap<@Nullable Object> { + protected FaketestqueryparamtersPutQueryParametersMap(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 FaketestqueryparamtersPutQueryParametersMap 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 SetterForFaketestqueryparamtersPutcontext { + Map getInstance(); + T getBuilderAfterFaketestqueryparamtersPutcontext(Map instance); + + default T context(List value) { + var instance = getInstance(); + instance.put("context", value); + return getBuilderAfterFaketestqueryparamtersPutcontext(instance); + } + } + + public interface SetterForFaketestqueryparamtersPuthttp { + Map getInstance(); + T getBuilderAfterFaketestqueryparamtersPuthttp(Map instance); + + default T http(List value) { + var instance = getInstance(); + instance.put("http", value); + return getBuilderAfterFaketestqueryparamtersPuthttp(instance); + } + } + + public interface SetterForFaketestqueryparamtersPutioutil { + Map getInstance(); + T getBuilderAfterFaketestqueryparamtersPutioutil(Map instance); + + default T ioutil(List value) { + var instance = getInstance(); + instance.put("ioutil", value); + return getBuilderAfterFaketestqueryparamtersPutioutil(instance); + } + } + + public interface SetterForFaketestqueryparamtersPutpipe { + Map getInstance(); + T getBuilderAfterFaketestqueryparamtersPutpipe(Map instance); + + default T pipe(List value) { + var instance = getInstance(); + instance.put("pipe", value); + return getBuilderAfterFaketestqueryparamtersPutpipe(instance); + } + } + + public interface SetterForFaketestqueryparamtersPutrefParam { + Map getInstance(); + T getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance); + + default T refParam(String value) { + var instance = getInstance(); + instance.put("refParam", value); + return getBuilderAfterFaketestqueryparamtersPutrefParam(instance); + } + } + + public interface SetterForFaketestqueryparamtersPuturl { + Map getInstance(); + T getBuilderAfterFaketestqueryparamtersPuturl(Map instance); + + default T url(List value) { + var instance = getInstance(); + instance.put("url", value); + return getBuilderAfterFaketestqueryparamtersPuturl(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap000000Builder 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 FaketestqueryparamtersPutQueryParametersMap000000Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap000001Builder implements SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap000001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap000010Builder implements SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap000010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap000011Builder implements SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap000011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap000100Builder implements SetterForFaketestqueryparamtersPutpipe { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap000100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap000101Builder implements SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap000101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap000110Builder implements SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap000110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap000111Builder implements SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap000111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap000101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap000110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000110Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap001000Builder implements SetterForFaketestqueryparamtersPutioutil { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap001000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap001001Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap001001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap001010Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap001010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap001011Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap001011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000011Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001010Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap001100Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap001100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap001101Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap001101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000101Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap001110Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap001110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000110Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap001111Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap001111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000111Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap001110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001110Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap010000Builder implements SetterForFaketestqueryparamtersPuthttp { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap010000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap010001Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap010001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap010010Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap010010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap010011Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap010011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000011Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010010Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap010100Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap010100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap010101Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap010101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000101Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap010110Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap010110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000110Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap010111Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap010111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000111Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010110Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap011000Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap011000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap011001Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap011001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001001Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010001Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap011010Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap011010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001010Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010010Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap011011Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap011011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001011Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010011Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011010Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap011100Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap011100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001100Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010100Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap011101Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap011101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001101Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010101Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap011110Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap011110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001110Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010110Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap011111Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap011111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001111Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap010111Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap011110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011110Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap100000Builder implements SetterForFaketestqueryparamtersPutcontext { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap100000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap100001Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap100001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap100010Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap100010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap100011Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap100011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000011Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100010Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap100100Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutpipe { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap100100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap100101Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap100101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000101Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap100110Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap100110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000110Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap100111Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap100111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap000111Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap000111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100110Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap101000Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap101000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap101001Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap101001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001001Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100001Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap101010Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap101010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001010Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100010Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap101011Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap101011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001011Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100011Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101010Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap101100Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap101100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001100Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100100Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap101101Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap101101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001101Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100101Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap101110Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap101110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001110Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100110Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap101111Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap101111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap001111Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap001111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100111Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101110Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap110000Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap110000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap110001Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap110001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap010001Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100001Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap110010Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap110010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap010010Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100010Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap110011Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap110011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap010011Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100011Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110010Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap110100Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap110100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap010100Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100100Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap110101Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap110101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap010101Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100101Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap110110Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap110110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap010110Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100110Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap110111Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap110111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap010111Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap010111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap100111Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap100111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110110Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap111000Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap111000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap011000Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011000Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101000Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101000Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110000Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap111001Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap111001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap011001Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101001Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110001Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap111010Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap111010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap011010Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101010Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110010Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap111011Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap111011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap011011Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101011Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110011Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111010Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap111100Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap111100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap011100Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101100Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110100Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110100Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111000Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap111101Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap111101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap011101Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101101Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110101Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111001Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMap111110Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMap111110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap011110Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101110Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110110Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110110Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111010Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111100Builder(instance); + } + } + + public static class FaketestqueryparamtersPutQueryParametersMapBuilder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + private final Map instance; + public FaketestqueryparamtersPutQueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public FaketestqueryparamtersPutQueryParametersMap011111Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap011111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap101111Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap101111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap110111Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap110111Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111011Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111101Builder(instance); + } + public FaketestqueryparamtersPutQueryParametersMap111110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { + return new FaketestqueryparamtersPutQueryParametersMap111110Builder(instance); + } + } + + + public sealed interface FaketestqueryparamtersPutQueryParameters1Boxed permits FaketestqueryparamtersPutQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FaketestqueryparamtersPutQueryParameters1BoxedMap(FaketestqueryparamtersPutQueryParametersMap 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(FaketestqueryparamtersPutadditionalProperties.class) + ); + } + + public static FaketestqueryparamtersPutQueryParameters1 getInstance() { + if (instance == null) { + instance = new FaketestqueryparamtersPutQueryParameters1(); + } + return instance; + } + + public FaketestqueryparamtersPutQueryParametersMap 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 FaketestqueryparamtersPutQueryParametersMap(castProperties); + } + + public FaketestqueryparamtersPutQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java deleted file mode 100644 index 9b3a467ef31..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.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 QueryParameters { - // 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 QueryParameters1.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 QueryParameters1Boxed permits QueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; - - protected QueryParameters1() { - 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 QueryParameters1 getInstance() { - if (instance == null) { - instance = new QueryParameters1(); - } - 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 QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public QueryParameters1Boxed 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/PetfindbystatusGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java index a077c75b3ad..fffaa35e4c2 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 @@ -3,7 +3,7 @@ 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.QueryParameters; +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; @@ -93,13 +93,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public QueryParameters.QueryParametersMap queryParameters; + public PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters; public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( - QueryParameters.QueryParametersMap queryParameters, + PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters, PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex, PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -112,7 +112,7 @@ public GetRequest( } public static class GetNullableRequest { - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public PetfindbystatusGetQueryParameters.@Nullable PetfindbystatusGetQueryParametersMap 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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java index 0dcdbdf49d3..79899cbd2ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java @@ -26,32 +26,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class PetfindbystatusGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetfindbystatusGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable PetfindbystatusGetadditionalProperties instance = null; + public static PetfindbystatusGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new PetfindbystatusGetadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { + public static class PetfindbystatusGetQueryParametersMap extends FrozenMap { + protected PetfindbystatusGetQueryParametersMap(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 QueryParameters1.getInstance().validate(arg, configuration); + public static PetfindbystatusGetQueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + return PetfindbystatusGetQueryParameters1.getInstance().validate(arg, configuration); } public Schema0.SchemaList0 status() { @@ -63,18 +63,18 @@ public Schema0.SchemaList0 status() { } } - public interface SetterForStatus { + public interface SetterForPetfindbystatusGetstatus { Map> getInstance(); - T getBuilderAfterStatus(Map> instance); + T getBuilderAfterPetfindbystatusGetstatus(Map> instance); default T status(List value) { var instance = getInstance(); instance.put("status", value); - return getBuilderAfterStatus(instance); + return getBuilderAfterPetfindbystatusGetstatus(instance); } } - public static class QueryParametersMap0Builder implements GenericBuilder>> { + public static class PetfindbystatusGetQueryParametersMap0Builder implements GenericBuilder>> { private final Map> instance; private static final Set knownKeys = Set.of( "status" @@ -82,7 +82,7 @@ public static class QueryParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMap0Builder(Map> instance) { + public PetfindbystatusGetQueryParametersMap0Builder(Map> instance) { this.instance = instance; } public Map> build() { @@ -90,25 +90,25 @@ public Map> build() { } } - public static class QueryParametersMapBuilder implements SetterForStatus { + public static class PetfindbystatusGetQueryParametersMapBuilder implements SetterForPetfindbystatusGetstatus { private final Map> instance; - public QueryParametersMapBuilder() { + public PetfindbystatusGetQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map> getInstance() { return instance; } - public QueryParametersMap0Builder getBuilderAfterStatus(Map> instance) { - return new QueryParametersMap0Builder(instance); + public PetfindbystatusGetQueryParametersMap0Builder getBuilderAfterPetfindbystatusGetstatus(Map> instance) { + return new PetfindbystatusGetQueryParametersMap0Builder(instance); } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface PetfindbystatusGetQueryParameters1Boxed permits PetfindbystatusGetQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record PetfindbystatusGetQueryParameters1BoxedMap(PetfindbystatusGetQueryParametersMap data) implements PetfindbystatusGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -116,10 +116,10 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class PetfindbystatusGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetfindbystatusGetQueryParameters1 instance = null; - protected QueryParameters1() { + protected PetfindbystatusGetQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -128,18 +128,18 @@ protected QueryParameters1() { .required(Set.of( "status" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(PetfindbystatusGetadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static PetfindbystatusGetQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new PetfindbystatusGetQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetfindbystatusGetQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Schema0.SchemaList0) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new PetfindbystatusGetQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetfindbystatusGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -191,11 +191,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public PetfindbystatusGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetfindbystatusGetQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PetfindbystatusGetQueryParameters1Boxed 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 ddc547969c3..318fd196bae 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 @@ -3,7 +3,7 @@ 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.QueryParameters; +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; @@ -93,13 +93,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public QueryParameters.QueryParametersMap queryParameters; + public PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( - QueryParameters.QueryParametersMap queryParameters, + PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -112,7 +112,7 @@ public GetRequest( } public static class GetNullableRequest { - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java index 4352f51e740..d5b4b8853ab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java @@ -26,32 +26,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class PetfindbytagsGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetfindbytagsGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable PetfindbytagsGetadditionalProperties instance = null; + public static PetfindbytagsGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new PetfindbytagsGetadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { + public static class PetfindbytagsGetQueryParametersMap extends FrozenMap { + protected PetfindbytagsGetQueryParametersMap(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 QueryParameters1.getInstance().validate(arg, configuration); + public static PetfindbytagsGetQueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + return PetfindbytagsGetQueryParameters1.getInstance().validate(arg, configuration); } public Schema0.SchemaList0 tags() { @@ -63,18 +63,18 @@ public Schema0.SchemaList0 tags() { } } - public interface SetterForTags { + public interface SetterForPetfindbytagsGettags { Map> getInstance(); - T getBuilderAfterTags(Map> instance); + T getBuilderAfterPetfindbytagsGettags(Map> instance); default T tags(List value) { var instance = getInstance(); instance.put("tags", value); - return getBuilderAfterTags(instance); + return getBuilderAfterPetfindbytagsGettags(instance); } } - public static class QueryParametersMap0Builder implements GenericBuilder>> { + public static class PetfindbytagsGetQueryParametersMap0Builder implements GenericBuilder>> { private final Map> instance; private static final Set knownKeys = Set.of( "tags" @@ -82,7 +82,7 @@ public static class QueryParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMap0Builder(Map> instance) { + public PetfindbytagsGetQueryParametersMap0Builder(Map> instance) { this.instance = instance; } public Map> build() { @@ -90,25 +90,25 @@ public Map> build() { } } - public static class QueryParametersMapBuilder implements SetterForTags { + public static class PetfindbytagsGetQueryParametersMapBuilder implements SetterForPetfindbytagsGettags { private final Map> instance; - public QueryParametersMapBuilder() { + public PetfindbytagsGetQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map> getInstance() { return instance; } - public QueryParametersMap0Builder getBuilderAfterTags(Map> instance) { - return new QueryParametersMap0Builder(instance); + public PetfindbytagsGetQueryParametersMap0Builder getBuilderAfterPetfindbytagsGettags(Map> instance) { + return new PetfindbytagsGetQueryParametersMap0Builder(instance); } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface PetfindbytagsGetQueryParameters1Boxed permits PetfindbytagsGetQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record PetfindbytagsGetQueryParameters1BoxedMap(PetfindbytagsGetQueryParametersMap data) implements PetfindbytagsGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -116,10 +116,10 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class PetfindbytagsGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetfindbytagsGetQueryParameters1 instance = null; - protected QueryParameters1() { + protected PetfindbytagsGetQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -128,18 +128,18 @@ protected QueryParameters1() { .required(Set.of( "tags" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(PetfindbytagsGetadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static PetfindbytagsGetQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new PetfindbytagsGetQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetfindbytagsGetQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Schema0.SchemaList0) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new PetfindbytagsGetQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetfindbytagsGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -191,11 +191,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public PetfindbytagsGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetfindbytagsGetQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PetfindbytagsGetQueryParameters1Boxed 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/petpetid/PetpetidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java index f0b832611d7..81fa39afd8f 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 @@ -1,10 +1,10 @@ package org.openapijsonschematools.client.paths.petpetid; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.petpetid.delete.HeaderParameters; +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.PathParameters; +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; @@ -98,15 +98,15 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public PathParameters.PathParametersMap pathParameters; - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; + public PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters; + public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap headerParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public DeleteRequest( - PathParameters.PathParametersMap pathParameters, - HeaderParameters.@Nullable HeaderParametersMap headerParameters, + PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters, + PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap headerParameters, RootServerInfo.@Nullable ServerIndex serverIndex, PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -120,8 +120,8 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; - public HeaderParameters.@Nullable HeaderParametersMap headerParameters; + public PetpetidDeletePathParameters.@Nullable PetpetidDeletePathParametersMap pathParameters; + public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap headerParameters; public RootServerInfo.@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(HeaderParameters.HeaderParametersMap headerParameters) { + default T headerParameters(PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParametersMap 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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(PetpetidDeletePathParameters.PetpetidDeletePathParametersMap 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 a6ff86916b5..f3ec5bfc3bc 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 @@ -3,7 +3,7 @@ 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.PathParameters; +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; @@ -92,13 +92,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PathParameters.PathParametersMap pathParameters; + public PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( - PathParameters.PathParametersMap pathParameters, + PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -111,7 +111,7 @@ public GetRequest( } public static class GetNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public PetpetidGetPathParameters.@Nullable PetpetidGetPathParametersMap pathParameters; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(PetpetidGetPathParameters.PetpetidGetPathParametersMap 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 dcda03bc600..c0b8ff9ea2c 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 @@ -4,7 +4,7 @@ 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.PathParameters; +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; @@ -104,14 +104,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public PathParameters.PathParametersMap pathParameters; + public PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters; public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - PathParameters.PathParametersMap pathParameters, + PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters, PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -126,7 +126,7 @@ public PostRequest( } public static class PostNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public PetpetidPostPathParameters.@Nullable PetpetidPostPathParametersMap pathParameters; public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(PetpetidPostPathParameters.PetpetidPostPathParametersMap 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/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java similarity index 69% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java index c5993ca0b15..6e645c90469 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class HeaderParameters { +public class PetpetidDeleteHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetidDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable PetpetidDeleteadditionalProperties instance = null; + public static PetpetidDeleteadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new PetpetidDeleteadditionalProperties(); } return instance; } } - public static class HeaderParametersMap extends FrozenMap { - protected HeaderParametersMap(FrozenMap m) { + public static class PetpetidDeleteHeaderParametersMap extends FrozenMap { + protected PetpetidDeleteHeaderParametersMap(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 HeaderParameters1.getInstance().validate(arg, configuration); + public static PetpetidDeleteHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetidDeleteHeaderParameters1.getInstance().validate(arg, configuration); } public String api_key() throws UnsetPropertyException { @@ -58,18 +58,18 @@ public String api_key() throws UnsetPropertyException { } } - public interface SetterForApiKey { + public interface SetterForPetpetidDeleteapiKey { Map getInstance(); - T getBuilderAfterApiKey(Map instance); + T getBuilderAfterPetpetidDeleteapiKey(Map instance); default T api_key(String value) { var instance = getInstance(); instance.put("api_key", value); - return getBuilderAfterApiKey(instance); + return getBuilderAfterPetpetidDeleteapiKey(instance); } } - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForApiKey { + public static class PetpetidDeleteHeaderParametersMapBuilder implements GenericBuilder>, SetterForPetpetidDeleteapiKey { private final Map instance; private static final Set knownKeys = Set.of( "api_key" @@ -77,7 +77,7 @@ public static class HeaderParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public HeaderParametersMapBuilder() { + public PetpetidDeleteHeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,17 +86,17 @@ public Map build() { public Map getInstance() { return instance; } - public HeaderParametersMapBuilder getBuilderAfterApiKey(Map instance) { + public PetpetidDeleteHeaderParametersMapBuilder getBuilderAfterPetpetidDeleteapiKey(Map instance) { return this; } } - public sealed interface HeaderParameters1Boxed permits HeaderParameters1BoxedMap { + public sealed interface PetpetidDeleteHeaderParameters1Boxed permits PetpetidDeleteHeaderParameters1BoxedMap { @Nullable Object getData(); } - public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements HeaderParameters1Boxed { + public record PetpetidDeleteHeaderParameters1BoxedMap(PetpetidDeleteHeaderParametersMap data) implements PetpetidDeleteHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,27 +104,27 @@ public record HeaderParameters1BoxedMap(HeaderParametersMap data) implements Hea } - public static class HeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable HeaderParameters1 instance = null; + public static class PetpetidDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetidDeleteHeaderParameters1 instance = null; - protected HeaderParameters1() { + protected PetpetidDeleteHeaderParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( new PropertyEntry("api_key", Schema0.Schema01.class) )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(PetpetidDeleteadditionalProperties.class) ); } - public static HeaderParameters1 getInstance() { + public static PetpetidDeleteHeaderParameters1 getInstance() { if (instance == null) { - instance = new HeaderParameters1(); + instance = new PetpetidDeleteHeaderParameters1(); } return instance; } - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetidDeleteHeaderParametersMap 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 HeaderParametersMap getNewInstance(Map arg, List pathToItem properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); + return new PetpetidDeleteHeaderParametersMap(castProperties); } - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidDeleteHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -176,11 +176,11 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public HeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new HeaderParameters1BoxedMap(validate(arg, configuration)); + public PetpetidDeleteHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetidDeleteHeaderParameters1BoxedMap(validate(arg, configuration)); } @Override - public HeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidDeleteHeaderParameters1Boxed 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/petpetid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java index cd01da18f23..85d6e6b6684 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class PetpetidDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetidDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable PetpetidDeleteadditionalProperties instance = null; + public static PetpetidDeleteadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new PetpetidDeleteadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PetpetidDeletePathParametersMap extends FrozenMap { + protected PetpetidDeletePathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static PetpetidDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetidDeletePathParameters1.getInstance().validate(arg, configuration); } public Number petId() { @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetId { + public interface SetterForPetpetidDeletepetId { Map getInstance(); - T getBuilderAfterPetId(Map instance); + T getBuilderAfterPetpetidDeletepetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidDeletepetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidDeletepetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidDeletepetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidDeletepetId(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class PetpetidDeletePathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public PetpetidDeletePathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,25 +107,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForPetId { + public static class PetpetidDeletePathParametersMapBuilder implements SetterForPetpetidDeletepetId { private final Map instance; - public PathParametersMapBuilder() { + public PetpetidDeletePathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); + public PetpetidDeletePathParametersMap0Builder getBuilderAfterPetpetidDeletepetId(Map instance) { + return new PetpetidDeletePathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface PetpetidDeletePathParameters1Boxed permits PetpetidDeletePathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record PetpetidDeletePathParameters1BoxedMap(PetpetidDeletePathParametersMap data) implements PetpetidDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,10 +133,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class PetpetidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetidDeletePathParameters1 instance = null; - protected PathParameters1() { + protected PetpetidDeletePathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -145,18 +145,18 @@ protected PathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(PetpetidDeleteadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static PetpetidDeletePathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new PetpetidDeletePathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetidDeletePathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new PetpetidDeletePathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -208,11 +208,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public PetpetidDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetidDeletePathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidDeletePathParameters1Boxed 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/petpetid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java index e5040a92611..8188f04af39 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class PetpetidGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetidGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable PetpetidGetadditionalProperties instance = null; + public static PetpetidGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new PetpetidGetadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PetpetidGetPathParametersMap extends FrozenMap { + protected PetpetidGetPathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static PetpetidGetPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetidGetPathParameters1.getInstance().validate(arg, configuration); } public Number petId() { @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetId { + public interface SetterForPetpetidGetpetId { Map getInstance(); - T getBuilderAfterPetId(Map instance); + T getBuilderAfterPetpetidGetpetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidGetpetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidGetpetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidGetpetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidGetpetId(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class PetpetidGetPathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public PetpetidGetPathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,25 +107,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForPetId { + public static class PetpetidGetPathParametersMapBuilder implements SetterForPetpetidGetpetId { private final Map instance; - public PathParametersMapBuilder() { + public PetpetidGetPathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); + public PetpetidGetPathParametersMap0Builder getBuilderAfterPetpetidGetpetId(Map instance) { + return new PetpetidGetPathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface PetpetidGetPathParameters1Boxed permits PetpetidGetPathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record PetpetidGetPathParameters1BoxedMap(PetpetidGetPathParametersMap data) implements PetpetidGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,10 +133,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class PetpetidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetidGetPathParameters1 instance = null; - protected PathParameters1() { + protected PetpetidGetPathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -145,18 +145,18 @@ protected PathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(PetpetidGetadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static PetpetidGetPathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new PetpetidGetPathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetidGetPathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new PetpetidGetPathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidGetPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -208,11 +208,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public PetpetidGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetidGetPathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidGetPathParameters1Boxed 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/petpetid/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java index e02194fa9c3..0548b7f1811 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class PetpetidPostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetidPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable PetpetidPostadditionalProperties instance = null; + public static PetpetidPostadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new PetpetidPostadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PetpetidPostPathParametersMap extends FrozenMap { + protected PetpetidPostPathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static PetpetidPostPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetidPostPathParameters1.getInstance().validate(arg, configuration); } public Number petId() { @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetId { + public interface SetterForPetpetidPostpetId { Map getInstance(); - T getBuilderAfterPetId(Map instance); + T getBuilderAfterPetpetidPostpetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidPostpetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidPostpetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidPostpetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetidPostpetId(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class PetpetidPostPathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public PetpetidPostPathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,25 +107,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForPetId { + public static class PetpetidPostPathParametersMapBuilder implements SetterForPetpetidPostpetId { private final Map instance; - public PathParametersMapBuilder() { + public PetpetidPostPathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); + public PetpetidPostPathParametersMap0Builder getBuilderAfterPetpetidPostpetId(Map instance) { + return new PetpetidPostPathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface PetpetidPostPathParameters1Boxed permits PetpetidPostPathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record PetpetidPostPathParameters1BoxedMap(PetpetidPostPathParametersMap data) implements PetpetidPostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,10 +133,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class PetpetidPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetidPostPathParameters1 instance = null; - protected PathParameters1() { + protected PetpetidPostPathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -145,18 +145,18 @@ protected PathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(PetpetidPostadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static PetpetidPostPathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new PetpetidPostPathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetidPostPathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new PetpetidPostPathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidPostPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -208,11 +208,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public PetpetidPostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetidPostPathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidPostPathParameters1Boxed 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/petpetiduploadimage/PetpetiduploadimagePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java index a78928eb481..8ad3eaff4a4 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 @@ -4,7 +4,7 @@ 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.PathParameters; +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; @@ -105,14 +105,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public PathParameters.PathParametersMap pathParameters; + public PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters; public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - PathParameters.PathParametersMap pathParameters, + PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters, PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody, RootServerInfo.@Nullable ServerIndex serverIndex, PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -127,7 +127,7 @@ public PostRequest( } public static class PostNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public PetpetiduploadimagePostPathParameters.@Nullable PetpetiduploadimagePostPathParametersMap pathParameters; public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap 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/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java index 9241d858285..dcc8d641199 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class PetpetiduploadimagePostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetiduploadimagePostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable PetpetiduploadimagePostadditionalProperties instance = null; + public static PetpetiduploadimagePostadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new PetpetiduploadimagePostadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PetpetiduploadimagePostPathParametersMap extends FrozenMap { + protected PetpetiduploadimagePostPathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static PetpetiduploadimagePostPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetiduploadimagePostPathParameters1.getInstance().validate(arg, configuration); } public Number petId() { @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetId { + public interface SetterForPetpetiduploadimagePostpetId { Map getInstance(); - T getBuilderAfterPetId(Map instance); + T getBuilderAfterPetpetiduploadimagePostpetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetiduploadimagePostpetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetiduploadimagePostpetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetiduploadimagePostpetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetId(instance); + return getBuilderAfterPetpetiduploadimagePostpetId(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class PetpetiduploadimagePostPathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public PetpetiduploadimagePostPathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,25 +107,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForPetId { + public static class PetpetiduploadimagePostPathParametersMapBuilder implements SetterForPetpetiduploadimagePostpetId { private final Map instance; - public PathParametersMapBuilder() { + public PetpetiduploadimagePostPathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); + public PetpetiduploadimagePostPathParametersMap0Builder getBuilderAfterPetpetiduploadimagePostpetId(Map instance) { + return new PetpetiduploadimagePostPathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface PetpetiduploadimagePostPathParameters1Boxed permits PetpetiduploadimagePostPathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record PetpetiduploadimagePostPathParameters1BoxedMap(PetpetiduploadimagePostPathParametersMap data) implements PetpetiduploadimagePostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,10 +133,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class PetpetiduploadimagePostPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetiduploadimagePostPathParameters1 instance = null; - protected PathParameters1() { + protected PetpetiduploadimagePostPathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -145,18 +145,18 @@ protected PathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(PetpetiduploadimagePostadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static PetpetiduploadimagePostPathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new PetpetiduploadimagePostPathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetiduploadimagePostPathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new PetpetiduploadimagePostPathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetiduploadimagePostPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -208,11 +208,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public PetpetiduploadimagePostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetiduploadimagePostPathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetiduploadimagePostPathParameters1Boxed 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/storeorderorderid/StoreorderorderidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java index 8aef6dad6ac..6ad421950d5 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.PathParameters; +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; @@ -78,12 +78,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public PathParameters.PathParametersMap pathParameters; + public StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - PathParameters.PathParametersMap pathParameters, + StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -94,7 +94,7 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParametersMap pathParameters; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap 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 9c75ea1a25a..05b1240c04d 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.get.PathParameters; +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; @@ -79,12 +79,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PathParameters.PathParametersMap pathParameters; + public StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - PathParameters.PathParametersMap pathParameters, + StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public GetRequest( } public static class GetNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParametersMap pathParameters; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap 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/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java similarity index 66% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java index fa7565f0555..91cc3045110 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class StoreorderorderidDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class StoreorderorderidDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable StoreorderorderidDeleteadditionalProperties instance = null; + public static StoreorderorderidDeleteadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new StoreorderorderidDeleteadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class StoreorderorderidDeletePathParametersMap extends FrozenMap { + protected StoreorderorderidDeletePathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static StoreorderorderidDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return StoreorderorderidDeletePathParameters1.getInstance().validate(arg, configuration); } public String order_id() { @@ -62,18 +62,18 @@ public String order_id() { } } - public interface SetterForOrderId { + public interface SetterForStoreorderorderidDeleteorderId { Map getInstance(); - T getBuilderAfterOrderId(Map instance); + T getBuilderAfterStoreorderorderidDeleteorderId(Map instance); default T order_id(String value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterOrderId(instance); + return getBuilderAfterStoreorderorderidDeleteorderId(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class StoreorderorderidDeletePathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "order_id" @@ -81,7 +81,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public StoreorderorderidDeletePathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,25 +89,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForOrderId { + public static class StoreorderorderidDeletePathParametersMapBuilder implements SetterForStoreorderorderidDeleteorderId { private final Map instance; - public PathParametersMapBuilder() { + public StoreorderorderidDeletePathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterOrderId(Map instance) { - return new PathParametersMap0Builder(instance); + public StoreorderorderidDeletePathParametersMap0Builder getBuilderAfterStoreorderorderidDeleteorderId(Map instance) { + return new StoreorderorderidDeletePathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface StoreorderorderidDeletePathParameters1Boxed permits StoreorderorderidDeletePathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record StoreorderorderidDeletePathParameters1BoxedMap(StoreorderorderidDeletePathParametersMap data) implements StoreorderorderidDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,10 +115,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class StoreorderorderidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable StoreorderorderidDeletePathParameters1 instance = null; - protected PathParameters1() { + protected StoreorderorderidDeletePathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -127,18 +127,18 @@ protected PathParameters1() { .required(Set.of( "order_id" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(StoreorderorderidDeleteadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static StoreorderorderidDeletePathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new StoreorderorderidDeletePathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public StoreorderorderidDeletePathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new StoreorderorderidDeletePathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public StoreorderorderidDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -190,11 +190,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public StoreorderorderidDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new StoreorderorderidDeletePathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public StoreorderorderidDeletePathParameters1Boxed 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/storeorderorderid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java index f9fb4048dc0..5cd36c42b58 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class StoreorderorderidGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class StoreorderorderidGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable StoreorderorderidGetadditionalProperties instance = null; + public static StoreorderorderidGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new StoreorderorderidGetadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class StoreorderorderidGetPathParametersMap extends FrozenMap { + protected StoreorderorderidGetPathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static StoreorderorderidGetPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return StoreorderorderidGetPathParameters1.getInstance().validate(arg, configuration); } public Number order_id() { @@ -62,36 +62,36 @@ public Number order_id() { } } - public interface SetterForOrderId { + public interface SetterForStoreorderorderidGetorderId { Map getInstance(); - T getBuilderAfterOrderId(Map instance); + T getBuilderAfterStoreorderorderidGetorderId(Map instance); default T order_id(int value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterOrderId(instance); + return getBuilderAfterStoreorderorderidGetorderId(instance); } default T order_id(float value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterOrderId(instance); + return getBuilderAfterStoreorderorderidGetorderId(instance); } default T order_id(long value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterOrderId(instance); + return getBuilderAfterStoreorderorderidGetorderId(instance); } default T order_id(double value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterOrderId(instance); + return getBuilderAfterStoreorderorderidGetorderId(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class StoreorderorderidGetPathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "order_id" @@ -99,7 +99,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public StoreorderorderidGetPathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,25 +107,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForOrderId { + public static class StoreorderorderidGetPathParametersMapBuilder implements SetterForStoreorderorderidGetorderId { private final Map instance; - public PathParametersMapBuilder() { + public StoreorderorderidGetPathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterOrderId(Map instance) { - return new PathParametersMap0Builder(instance); + public StoreorderorderidGetPathParametersMap0Builder getBuilderAfterStoreorderorderidGetorderId(Map instance) { + return new StoreorderorderidGetPathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface StoreorderorderidGetPathParameters1Boxed permits StoreorderorderidGetPathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record StoreorderorderidGetPathParameters1BoxedMap(StoreorderorderidGetPathParametersMap data) implements StoreorderorderidGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,10 +133,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class StoreorderorderidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable StoreorderorderidGetPathParameters1 instance = null; - protected PathParameters1() { + protected StoreorderorderidGetPathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -145,18 +145,18 @@ protected PathParameters1() { .required(Set.of( "order_id" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(StoreorderorderidGetadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static StoreorderorderidGetPathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new StoreorderorderidGetPathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public StoreorderorderidGetPathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new StoreorderorderidGetPathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public StoreorderorderidGetPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -208,11 +208,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public StoreorderorderidGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new StoreorderorderidGetPathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public StoreorderorderidGetPathParameters1Boxed 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/userlogin/UserloginGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java index 83b4043234d..15b691bd5c7 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.userlogin.get.QueryParameters; +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; @@ -80,12 +80,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public QueryParameters.QueryParametersMap queryParameters; + public UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - QueryParameters.QueryParametersMap queryParameters, + UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public GetRequest( } public static class GetNullableRequest { - public QueryParameters.@Nullable QueryParametersMap queryParameters; + public UserloginGetQueryParameters.@Nullable UserloginGetQueryParametersMap queryParameters; public RootServerInfo.@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(QueryParameters.QueryParametersMap queryParameters) { + default T queryParameters(UserloginGetQueryParameters.UserloginGetQueryParametersMap 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/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java similarity index 64% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java index 6da4b7ec867..700107d32e1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java @@ -26,24 +26,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class QueryParameters { +public class UserloginGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class UserloginGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable UserloginGetadditionalProperties instance = null; + public static UserloginGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new UserloginGetadditionalProperties(); } return instance; } } - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class UserloginGetQueryParametersMap extends FrozenMap<@Nullable Object> { + protected UserloginGetQueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -51,8 +51,8 @@ protected QueryParametersMap(FrozenMap<@Nullable Object> m) { "username" ); public static final Set optionalKeys = Set.of(); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return QueryParameters1.getInstance().validate(arg, configuration); + public static UserloginGetQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserloginGetQueryParameters1.getInstance().validate(arg, configuration); } public String password() { @@ -72,29 +72,29 @@ public String username() { } } - public interface SetterForPassword { + public interface SetterForUserloginGetpassword { Map getInstance(); - T getBuilderAfterPassword(Map instance); + T getBuilderAfterUserloginGetpassword(Map instance); default T password(String value) { var instance = getInstance(); instance.put("password", value); - return getBuilderAfterPassword(instance); + return getBuilderAfterUserloginGetpassword(instance); } } - public interface SetterForUsername { + public interface SetterForUserloginGetusername { Map getInstance(); - T getBuilderAfterUsername(Map instance); + T getBuilderAfterUserloginGetusername(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUsername(instance); + return getBuilderAfterUserloginGetusername(instance); } } - public static class QueryParametersMap00Builder implements GenericBuilder> { + public static class UserloginGetQueryParametersMap00Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "password", @@ -103,7 +103,7 @@ public static class QueryParametersMap00Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public QueryParametersMap00Builder(Map instance) { + public UserloginGetQueryParametersMap00Builder(Map instance) { this.instance = instance; } public Map build() { @@ -111,54 +111,54 @@ public QueryParametersMap00Builder(Map instance) { } } - public static class QueryParametersMap01Builder implements SetterForUsername { + public static class UserloginGetQueryParametersMap01Builder implements SetterForUserloginGetusername { private final Map instance; - public QueryParametersMap01Builder(Map instance) { + public UserloginGetQueryParametersMap01Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap00Builder getBuilderAfterUsername(Map instance) { - return new QueryParametersMap00Builder(instance); + public UserloginGetQueryParametersMap00Builder getBuilderAfterUserloginGetusername(Map instance) { + return new UserloginGetQueryParametersMap00Builder(instance); } } - public static class QueryParametersMap10Builder implements SetterForPassword { + public static class UserloginGetQueryParametersMap10Builder implements SetterForUserloginGetpassword { private final Map instance; - public QueryParametersMap10Builder(Map instance) { + public UserloginGetQueryParametersMap10Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public QueryParametersMap00Builder getBuilderAfterPassword(Map instance) { - return new QueryParametersMap00Builder(instance); + public UserloginGetQueryParametersMap00Builder getBuilderAfterUserloginGetpassword(Map instance) { + return new UserloginGetQueryParametersMap00Builder(instance); } } - public static class QueryParametersMapBuilder implements SetterForPassword, SetterForUsername { + public static class UserloginGetQueryParametersMapBuilder implements SetterForUserloginGetpassword, SetterForUserloginGetusername { private final Map instance; - public QueryParametersMapBuilder() { + public UserloginGetQueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public QueryParametersMap01Builder getBuilderAfterPassword(Map instance) { - return new QueryParametersMap01Builder(instance); + public UserloginGetQueryParametersMap01Builder getBuilderAfterUserloginGetpassword(Map instance) { + return new UserloginGetQueryParametersMap01Builder(instance); } - public QueryParametersMap10Builder getBuilderAfterUsername(Map instance) { - return new QueryParametersMap10Builder(instance); + public UserloginGetQueryParametersMap10Builder getBuilderAfterUserloginGetusername(Map instance) { + return new UserloginGetQueryParametersMap10Builder(instance); } } - public sealed interface QueryParameters1Boxed permits QueryParameters1BoxedMap { + public sealed interface UserloginGetQueryParameters1Boxed permits UserloginGetQueryParameters1BoxedMap { @Nullable Object getData(); } - public record QueryParameters1BoxedMap(QueryParametersMap data) implements QueryParameters1Boxed { + public record UserloginGetQueryParameters1BoxedMap(UserloginGetQueryParametersMap data) implements UserloginGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -166,10 +166,10 @@ public record QueryParameters1BoxedMap(QueryParametersMap data) implements Query } - public static class QueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable QueryParameters1 instance = null; + public static class UserloginGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserloginGetQueryParameters1 instance = null; - protected QueryParameters1() { + protected UserloginGetQueryParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -180,18 +180,18 @@ protected QueryParameters1() { "password", "username" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(UserloginGetadditionalProperties.class) ); } - public static QueryParameters1 getInstance() { + public static UserloginGetQueryParameters1 getInstance() { if (instance == null) { - instance = new QueryParameters1(); + instance = new UserloginGetQueryParameters1(); } return instance; } - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public UserloginGetQueryParametersMap 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 QueryParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); + return new UserloginGetQueryParametersMap(castProperties); } - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public UserloginGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -240,11 +240,11 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public QueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new QueryParameters1BoxedMap(validate(arg, configuration)); + public UserloginGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserloginGetQueryParameters1BoxedMap(validate(arg, configuration)); } @Override - public QueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public UserloginGetQueryParameters1Boxed 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/userusername/UserusernameDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java index baa7e1eea06..012abce1c6b 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.userusername.delete.PathParameters; +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; @@ -79,12 +79,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public PathParameters.PathParametersMap pathParameters; + public UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - PathParameters.PathParametersMap pathParameters, + UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParametersMap pathParameters; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(UserusernameDeletePathParameters.UserusernameDeletePathParametersMap 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 5ac6836ba4e..5446f82e397 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 @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.RootServerInfo; -import org.openapijsonschematools.client.paths.userusername.get.PathParameters; +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; @@ -79,12 +79,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PathParameters.PathParametersMap pathParameters; + public UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - PathParameters.PathParametersMap pathParameters, + UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public GetRequest( } public static class GetNullableRequest { - public PathParameters.@Nullable PathParametersMap pathParameters; + public UserusernameGetPathParameters.@Nullable UserusernameGetPathParametersMap pathParameters; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(UserusernameGetPathParameters.UserusernameGetPathParametersMap 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 3805db491c3..6014b6f6d87 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 @@ -3,7 +3,7 @@ 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.PathParameters; +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; @@ -88,13 +88,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public UserusernamePutRequestBody.SealedRequestBody requestBody; - public PathParameters.PathParametersMap pathParameters; + public UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters; public RootServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( UserusernamePutRequestBody.SealedRequestBody requestBody, - PathParameters.PathParametersMap pathParameters, + UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters, RootServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -107,7 +107,7 @@ public PutRequest( public static class PutNullableRequest { public UserusernamePutRequestBody.@Nullable SealedRequestBody requestBody; - public PathParameters.@Nullable PathParametersMap pathParameters; + public UserusernamePutPathParameters.@Nullable UserusernamePutPathParametersMap pathParameters; public RootServerInfo.@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(PathParameters.PathParametersMap pathParameters) { + default T pathParameters(UserusernamePutPathParameters.UserusernamePutPathParametersMap 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/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java similarity index 67% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java index 654eb1b1513..be9018de12b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class UserusernameDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class UserusernameDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable UserusernameDeleteadditionalProperties instance = null; + public static UserusernameDeleteadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new UserusernameDeleteadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class UserusernameDeletePathParametersMap extends FrozenMap { + protected UserusernameDeletePathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static UserusernameDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserusernameDeletePathParameters1.getInstance().validate(arg, configuration); } public String username() { @@ -62,18 +62,18 @@ public String username() { } } - public interface SetterForUsername { + public interface SetterForUserusernameDeleteusername { Map getInstance(); - T getBuilderAfterUsername(Map instance); + T getBuilderAfterUserusernameDeleteusername(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUsername(instance); + return getBuilderAfterUserusernameDeleteusername(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class UserusernameDeletePathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "username" @@ -81,7 +81,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public UserusernameDeletePathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,25 +89,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForUsername { + public static class UserusernameDeletePathParametersMapBuilder implements SetterForUserusernameDeleteusername { private final Map instance; - public PathParametersMapBuilder() { + public UserusernameDeletePathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { - return new PathParametersMap0Builder(instance); + public UserusernameDeletePathParametersMap0Builder getBuilderAfterUserusernameDeleteusername(Map instance) { + return new UserusernameDeletePathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface UserusernameDeletePathParameters1Boxed permits UserusernameDeletePathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record UserusernameDeletePathParameters1BoxedMap(UserusernameDeletePathParametersMap data) implements UserusernameDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,10 +115,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class UserusernameDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserusernameDeletePathParameters1 instance = null; - protected PathParameters1() { + protected UserusernameDeletePathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -127,18 +127,18 @@ protected PathParameters1() { .required(Set.of( "username" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(UserusernameDeleteadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static UserusernameDeletePathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new UserusernameDeletePathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public UserusernameDeletePathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new UserusernameDeletePathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public UserusernameDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -190,11 +190,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public UserusernameDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserusernameDeletePathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public UserusernameDeletePathParameters1Boxed 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/userusername/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java index a106cf2af60..97e95a2e0ce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class UserusernameGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class UserusernameGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable UserusernameGetadditionalProperties instance = null; + public static UserusernameGetadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new UserusernameGetadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class UserusernameGetPathParametersMap extends FrozenMap { + protected UserusernameGetPathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static UserusernameGetPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserusernameGetPathParameters1.getInstance().validate(arg, configuration); } public String username() { @@ -62,18 +62,18 @@ public String username() { } } - public interface SetterForUsername { + public interface SetterForUserusernameGetusername { Map getInstance(); - T getBuilderAfterUsername(Map instance); + T getBuilderAfterUserusernameGetusername(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUsername(instance); + return getBuilderAfterUserusernameGetusername(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class UserusernameGetPathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "username" @@ -81,7 +81,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public UserusernameGetPathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,25 +89,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForUsername { + public static class UserusernameGetPathParametersMapBuilder implements SetterForUserusernameGetusername { private final Map instance; - public PathParametersMapBuilder() { + public UserusernameGetPathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { - return new PathParametersMap0Builder(instance); + public UserusernameGetPathParametersMap0Builder getBuilderAfterUserusernameGetusername(Map instance) { + return new UserusernameGetPathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface UserusernameGetPathParameters1Boxed permits UserusernameGetPathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record UserusernameGetPathParameters1BoxedMap(UserusernameGetPathParametersMap data) implements UserusernameGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,10 +115,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class UserusernameGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserusernameGetPathParameters1 instance = null; - protected PathParameters1() { + protected UserusernameGetPathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -127,18 +127,18 @@ protected PathParameters1() { .required(Set.of( "username" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(UserusernameGetadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static UserusernameGetPathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new UserusernameGetPathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public UserusernameGetPathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new UserusernameGetPathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public UserusernameGetPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -190,11 +190,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public UserusernameGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserusernameGetPathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public UserusernameGetPathParameters1Boxed 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/userusername/put/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java similarity index 68% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java index 432e101e9af..6cf9587b974 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java @@ -25,32 +25,32 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class PathParameters { +public class UserusernamePutPathParameters { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class UserusernamePutadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable UserusernamePutadditionalProperties instance = null; + public static UserusernamePutadditionalProperties getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new UserusernamePutadditionalProperties(); } return instance; } } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class UserusernamePutPathParametersMap extends FrozenMap { + protected UserusernamePutPathParametersMap(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 PathParameters1.getInstance().validate(arg, configuration); + public static UserusernamePutPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserusernamePutPathParameters1.getInstance().validate(arg, configuration); } public String username() { @@ -62,18 +62,18 @@ public String username() { } } - public interface SetterForUsername { + public interface SetterForUserusernamePutusername { Map getInstance(); - T getBuilderAfterUsername(Map instance); + T getBuilderAfterUserusernamePutusername(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUsername(instance); + return getBuilderAfterUserusernamePutusername(instance); } } - public static class PathParametersMap0Builder implements GenericBuilder> { + public static class UserusernamePutPathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "username" @@ -81,7 +81,7 @@ public static class PathParametersMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public PathParametersMap0Builder(Map instance) { + public UserusernamePutPathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,25 +89,25 @@ public Map build() { } } - public static class PathParametersMapBuilder implements SetterForUsername { + public static class UserusernamePutPathParametersMapBuilder implements SetterForUserusernamePutusername { private final Map instance; - public PathParametersMapBuilder() { + public UserusernamePutPathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { - return new PathParametersMap0Builder(instance); + public UserusernamePutPathParametersMap0Builder getBuilderAfterUserusernamePutusername(Map instance) { + return new UserusernamePutPathParametersMap0Builder(instance); } } - public sealed interface PathParameters1Boxed permits PathParameters1BoxedMap { + public sealed interface UserusernamePutPathParameters1Boxed permits UserusernamePutPathParameters1BoxedMap { @Nullable Object getData(); } - public record PathParameters1BoxedMap(PathParametersMap data) implements PathParameters1Boxed { + public record UserusernamePutPathParameters1BoxedMap(UserusernamePutPathParametersMap data) implements UserusernamePutPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,10 +115,10 @@ public record PathParameters1BoxedMap(PathParametersMap data) implements PathPar } - public static class PathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PathParameters1 instance = null; + public static class UserusernamePutPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserusernamePutPathParameters1 instance = null; - protected PathParameters1() { + protected UserusernamePutPathParameters1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -127,18 +127,18 @@ protected PathParameters1() { .required(Set.of( "username" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(UserusernamePutadditionalProperties.class) ); } - public static PathParameters1 getInstance() { + public static UserusernamePutPathParameters1 getInstance() { if (instance == null) { - instance = new PathParameters1(); + instance = new UserusernamePutPathParameters1(); } return instance; } - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public UserusernamePutPathParametersMap 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 PathParametersMap getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); + return new UserusernamePutPathParametersMap(castProperties); } - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public UserusernamePutPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -190,11 +190,11 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public PathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PathParameters1BoxedMap(validate(arg, configuration)); + public UserusernamePutPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserusernamePutPathParameters1BoxedMap(validate(arg, configuration)); } @Override - public PathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public UserusernamePutPathParameters1Boxed 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 b7ba95d02ec..0df8260f81d 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -157,6 +157,7 @@ public class DefaultGenerator implements Generator { protected String templateEngineName; protected String headersSchemaFragment = "Headers"; protected static final Set operationVerbs = Set.of("get", "put", "post", "delete", "options", "head", "patch", "trace"); + protected Set xParameters = Set.of("PathParameters", "QueryParameters", "HeaderParameters", "CookieParameters"); static { DefaultFeatureSet = FeatureSet.newBuilder() @@ -3955,11 +3956,6 @@ private void updatePathsFilepath(String[] pathPieces) { if (pathPieces.length < 4) { return; } - Set xParameters = new HashSet<>(); - xParameters.add("PathParameters"); - xParameters.add("QueryParameters"); - xParameters.add("HeaderParameters"); - xParameters.add("CookieParameters"); if (pathPieces[3].equals("servers")) { if (pathPieces.length == 4) { // #/paths/somePath/servers diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index a80f836ed35..5c645ead84d 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -1343,7 +1343,12 @@ public String getSchemaFilename(String jsonPath) { String modelName = schemaJsonPathToModelName.get(jsonPath); if (modelName == null) { String[] pathPieces = jsonPath.split("/"); - return getSchemaPascalCaseName(pathPieces[pathPieces.length-1], jsonPath, false); + String lastFragment = pathPieces[pathPieces.length-1]; + if (jsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment)) { + String prefix = getPathClassNamePrefix(jsonPath); + lastFragment = prefix + lastFragment; + } + return getSchemaPascalCaseName(lastFragment, jsonPath, false); } return modelName; } @@ -2604,6 +2609,14 @@ 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]; + if (jsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment)) { + String prefix = getPathClassNamePrefix(jsonPath); + lastJsonPathFragment = prefix + lastJsonPathFragment; + } + } return getSchemaPascalCaseName(lastJsonPathFragment, jsonPath, true); case PATH: return camelize(toPathFilename(lastJsonPathFragment, jsonPath)); From 536ffbc08026b67f06a9964da8287c8d0c3ba9c1 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 10 Apr 2024 15:15:28 -0700 Subject: [PATCH 14/21] Adds prefix to responses --- .../petstore/java/.openapi-generator/FILES | 376 ++++++++--------- .../anotherfakedummy/AnotherfakedummyPatch.md | 6 +- .../patch/AnotherfakedummyPatchResponses.md | 12 +- ...> AnotherfakedummyPatchCode200Response.md} | 20 +- .../CommonparamsubdirDelete.md | 4 +- .../commonparamsubdir/CommonparamsubdirGet.md | 4 +- .../CommonparamsubdirPost.md | 4 +- .../CommonparamsubdirDeleteResponses.md | 8 +- .../delete/responses/Code200Response.md | 17 - .../CommonparamsubdirDeleteCode200Response.md | 17 + .../get/CommonparamsubdirGetResponses.md | 8 +- .../get/responses/Code200Response.md | 17 - .../CommonparamsubdirGetCode200Response.md | 17 + .../post/CommonparamsubdirPostResponses.md | 8 +- .../post/responses/Code200Response.md | 17 - .../CommonparamsubdirPostCode200Response.md | 17 + .../java/docs/paths/fake/FakeDelete.md | 4 +- .../petstore/java/docs/paths/fake/FakeGet.md | 8 +- .../java/docs/paths/fake/FakePatch.md | 6 +- .../petstore/java/docs/paths/fake/FakePost.md | 8 +- .../paths/fake/delete/FakeDeleteResponses.md | 8 +- .../fake/delete/responses/Code200Response.md | 17 - .../responses/FakeDeleteCode200Response.md | 17 + .../docs/paths/fake/get/FakeGetResponses.md | 8 +- .../fake/get/responses/Code200Response.md | 17 - .../get/responses/FakeGetCode200Response.md | 17 + ...4Response.md => FakeGetCode404Response.md} | 20 +- .../paths/fake/patch/FakePatchResponses.md | 12 +- ...esponse.md => FakePatchCode200Response.md} | 20 +- .../docs/paths/fake/post/FakePostResponses.md | 8 +- .../fake/post/responses/Code200Response.md | 17 - .../post/responses/FakePostCode200Response.md | 17 + .../post/responses/FakePostCode404Response.md | 32 ++ ...additionalpropertieswitharrayofenumsGet.md | 6 +- ...lpropertieswitharrayofenumsGetResponses.md | 12 +- ...tieswitharrayofenumsGetCode200Response.md} | 20 +- .../FakebodywithfileschemaPut.md | 4 +- .../put/FakebodywithfileschemaPutResponses.md | 8 +- .../put/responses/Code200Response.md | 17 - ...akebodywithfileschemaPutCode200Response.md | 17 + .../FakebodywithqueryparamsPut.md | 4 +- .../FakebodywithqueryparamsPutResponses.md | 8 +- .../put/responses/Code200Response.md | 17 - ...kebodywithqueryparamsPutCode200Response.md | 17 + .../FakecasesensitiveparamsPut.md | 4 +- .../FakecasesensitiveparamsPutResponses.md | 8 +- .../put/responses/Code200Response.md | 17 - ...kecasesensitiveparamsPutCode200Response.md | 17 + .../FakeclassnametestPatch.md | 6 +- .../patch/FakeclassnametestPatchResponses.md | 12 +- ... FakeclassnametestPatchCode200Response.md} | 20 +- .../FakedeletecoffeeidDelete.md | 8 +- .../FakedeletecoffeeidDeleteResponses.md | 16 +- .../delete/responses/Code200Response.md | 17 - ...FakedeletecoffeeidDeleteCode200Response.md | 17 + ...deletecoffeeidDeleteCodedefaultResponse.md | 32 ++ .../docs/paths/fakehealth/FakehealthGet.md | 6 +- .../fakehealth/get/FakehealthGetResponses.md | 12 +- ...nse.md => FakehealthGetCode200Response.md} | 20 +- .../FakeinlineadditionalpropertiesPost.md | 4 +- ...inlineadditionalpropertiesPostResponses.md | 8 +- .../post/responses/Code200Response.md | 17 - ...additionalpropertiesPostCode200Response.md | 17 + .../FakeinlinecompositionPost.md | 8 +- .../FakeinlinecompositionPostResponses.md | 12 +- ...keinlinecompositionPostCode200Response.md} | 24 +- .../fakejsonformdata/FakejsonformdataGet.md | 4 +- .../get/FakejsonformdataGetResponses.md | 8 +- .../get/responses/Code200Response.md | 17 - .../FakejsonformdataGetCode200Response.md | 17 + .../paths/fakejsonpatch/FakejsonpatchPatch.md | 4 +- .../patch/FakejsonpatchPatchResponses.md | 8 +- .../patch/responses/Code200Response.md | 17 - .../FakejsonpatchPatchCode200Response.md | 17 + .../FakejsonwithcharsetPost.md | 6 +- .../post/FakejsonwithcharsetPostResponses.md | 12 +- ...FakejsonwithcharsetPostCode200Response.md} | 20 +- ...FakemultiplerequestbodycontenttypesPost.md | 6 +- ...plerequestbodycontenttypesPostResponses.md | 12 +- ...estbodycontenttypesPostCode200Response.md} | 20 +- .../FakemultipleresponsebodiesGet.md | 12 +- .../FakemultipleresponsebodiesGetResponses.md | 24 +- ...ltipleresponsebodiesGetCode200Response.md} | 20 +- ...ltipleresponsebodiesGetCode202Response.md} | 20 +- .../FakemultiplesecuritiesGet.md | 6 +- .../get/FakemultiplesecuritiesGetResponses.md | 12 +- ...kemultiplesecuritiesGetCode200Response.md} | 20 +- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 4 +- .../get/FakeobjinqueryGetResponses.md | 8 +- .../get/responses/Code200Response.md | 17 - .../FakeobjinqueryGetCode200Response.md | 17 + .../Fakeparametercollisions1ababselfabPost.md | 6 +- ...metercollisions1ababselfabPostResponses.md | 12 +- ...llisions1ababselfabPostCode200Response.md} | 20 +- .../FakepemcontenttypeGet.md | 6 +- .../get/FakepemcontenttypeGetResponses.md | 12 +- ...> FakepemcontenttypeGetCode200Response.md} | 20 +- ...akepetiduploadimagewithrequiredfilePost.md | 6 +- ...ploadimagewithrequiredfilePostResponses.md | 12 +- ...agewithrequiredfilePostCode200Response.md} | 20 +- .../FakequeryparamwithjsoncontenttypeGet.md | 6 +- ...eryparamwithjsoncontenttypeGetResponses.md | 12 +- ...mwithjsoncontenttypeGetCode200Response.md} | 20 +- .../fakeredirection/FakeredirectionGet.md | 8 +- .../get/FakeredirectionGetResponses.md | 16 +- .../FakeredirectionGetCode303Response.md | 32 ++ .../FakeredirectionGetCode3XXResponse.md | 32 ++ .../fakerefobjinquery/FakerefobjinqueryGet.md | 4 +- .../get/FakerefobjinqueryGetResponses.md | 8 +- .../get/responses/Code200Response.md | 17 - .../FakerefobjinqueryGetCode200Response.md | 17 + .../FakerefsarraymodelPost.md | 6 +- .../post/FakerefsarraymodelPostResponses.md | 12 +- ... FakerefsarraymodelPostCode200Response.md} | 20 +- .../FakerefsarrayofenumsPost.md | 6 +- .../post/FakerefsarrayofenumsPostResponses.md | 12 +- ...akerefsarrayofenumsPostCode200Response.md} | 20 +- .../fakerefsboolean/FakerefsbooleanPost.md | 6 +- .../post/FakerefsbooleanPostResponses.md | 12 +- ... => FakerefsbooleanPostCode200Response.md} | 20 +- ...scomposedoneofnumberwithvalidationsPost.md | 6 +- ...oneofnumberwithvalidationsPostResponses.md | 12 +- ...mberwithvalidationsPostCode200Response.md} | 20 +- .../paths/fakerefsenum/FakerefsenumPost.md | 6 +- .../post/FakerefsenumPostResponses.md | 12 +- ....md => FakerefsenumPostCode200Response.md} | 20 +- .../fakerefsmammal/FakerefsmammalPost.md | 6 +- .../post/FakerefsmammalPostResponses.md | 12 +- ...d => FakerefsmammalPostCode200Response.md} | 20 +- .../fakerefsnumber/FakerefsnumberPost.md | 6 +- .../post/FakerefsnumberPostResponses.md | 12 +- ...d => FakerefsnumberPostCode200Response.md} | 20 +- .../FakerefsobjectmodelwithrefpropsPost.md | 6 +- ...efsobjectmodelwithrefpropsPostResponses.md | 12 +- ...ctmodelwithrefpropsPostCode200Response.md} | 20 +- .../fakerefsstring/FakerefsstringPost.md | 6 +- .../post/FakerefsstringPostResponses.md | 12 +- ...d => FakerefsstringPostCode200Response.md} | 20 +- .../FakeresponsewithoutschemaGet.md | 4 +- .../FakeresponsewithoutschemaGetResponses.md | 8 +- ...esponsewithoutschemaGetCode200Response.md} | 12 +- .../FaketestqueryparamtersPut.md | 4 +- .../put/FaketestqueryparamtersPutResponses.md | 8 +- .../put/responses/Code200Response.md | 17 - ...aketestqueryparamtersPutCode200Response.md | 17 + .../FakeuploaddownloadfilePost.md | 6 +- .../FakeuploaddownloadfilePostResponses.md | 12 +- ...euploaddownloadfilePostCode200Response.md} | 20 +- .../fakeuploadfile/FakeuploadfilePost.md | 6 +- .../post/FakeuploadfilePostResponses.md | 12 +- ...d => FakeuploadfilePostCode200Response.md} | 20 +- .../fakeuploadfiles/FakeuploadfilesPost.md | 6 +- .../post/FakeuploadfilesPostResponses.md | 12 +- ... => FakeuploadfilesPostCode200Response.md} | 20 +- .../FakewildcardresponsesGet.md | 30 +- .../get/FakewildcardresponsesGetResponses.md | 48 +-- ...akewildcardresponsesGetCode1XXResponse.md} | 20 +- ...akewildcardresponsesGetCode200Response.md} | 20 +- ...akewildcardresponsesGetCode2XXResponse.md} | 20 +- ...akewildcardresponsesGetCode3XXResponse.md} | 20 +- ...akewildcardresponsesGetCode4XXResponse.md} | 20 +- ...akewildcardresponsesGetCode5XXResponse.md} | 20 +- .../petstore/java/docs/paths/foo/FooGet.md | 6 +- .../docs/paths/foo/get/FooGetResponses.md | 12 +- ...sponse.md => FooGetCodedefaultResponse.md} | 20 +- .../petstore/java/docs/paths/pet/PetPost.md | 8 +- .../petstore/java/docs/paths/pet/PetPut.md | 8 +- .../docs/paths/pet/post/PetPostResponses.md | 8 +- .../pet/post/responses/Code200Response.md | 17 - .../pet/post/responses/Code405Response.md | 32 -- .../post/responses/PetPostCode200Response.md | 17 + .../post/responses/PetPostCode405Response.md} | 12 +- .../pet/put/responses/Code400Response.md | 32 -- .../pet/put/responses/Code404Response.md | 32 -- .../pet/put/responses/Code405Response.md | 32 -- .../put/responses/PetPutCode400Response.md} | 12 +- .../put/responses/PetPutCode404Response.md} | 12 +- .../put/responses/PetPutCode405Response.md} | 12 +- .../petfindbystatus/PetfindbystatusGet.md | 8 +- .../get/PetfindbystatusGetResponses.md | 12 +- .../get/responses/Code200Response.md | 17 - .../get/responses/Code400Response.md | 32 -- .../PetfindbystatusGetCode200Response.md | 17 + .../PetfindbystatusGetCode400Response.md | 32 ++ .../paths/petfindbytags/PetfindbytagsGet.md | 8 +- .../get/PetfindbytagsGetResponses.md | 12 +- .../get/responses/Code200Response.md | 17 - .../get/responses/Code400Response.md | 32 -- .../PetfindbytagsGetCode200Response.md | 17 + .../PetfindbytagsGetCode400Response.md | 32 ++ .../docs/paths/petpetid/PetpetidDelete.md | 4 +- .../java/docs/paths/petpetid/PetpetidGet.md | 14 +- .../java/docs/paths/petpetid/PetpetidPost.md | 4 +- .../delete/responses/Code400Response.md | 32 -- .../PetpetidDeleteCode400Response.md | 32 ++ .../petpetid/get/PetpetidGetResponses.md | 12 +- .../petpetid/get/responses/Code400Response.md | 32 -- .../petpetid/get/responses/Code404Response.md | 32 -- ...ponse.md => PetpetidGetCode200Response.md} | 24 +- .../responses/PetpetidGetCode400Response.md | 32 ++ .../responses/PetpetidGetCode404Response.md | 32 ++ .../post/responses/Code405Response.md | 32 -- .../responses/PetpetidPostCode405Response.md | 32 ++ .../PetpetiduploadimagePost.md | 4 +- .../post/PetpetiduploadimagePostResponses.md | 12 +- .../post/responses/Code200Response.md | 17 - .../PetpetiduploadimagePostCode200Response.md | 17 + .../java/docs/paths/solidus/SolidusGet.md | 4 +- .../paths/solidus/get/SolidusGetResponses.md | 8 +- .../solidus/get/responses/Code200Response.md | 17 - .../responses/SolidusGetCode200Response.md | 17 + .../paths/storeinventory/StoreinventoryGet.md | 4 +- .../get/StoreinventoryGetResponses.md | 12 +- .../get/responses/Code200Response.md | 17 - .../StoreinventoryGetCode200Response.md | 17 + .../docs/paths/storeorder/StoreorderPost.md | 12 +- .../post/StoreorderPostResponses.md | 12 +- .../post/responses/Code400Response.md | 32 -- ...se.md => StoreorderPostCode200Response.md} | 24 +- .../StoreorderPostCode400Response.md | 32 ++ .../StoreorderorderidDelete.md | 6 +- .../storeorderorderid/StoreorderorderidGet.md | 14 +- .../delete/responses/Code400Response.md | 32 -- .../delete/responses/Code404Response.md | 32 -- .../StoreorderorderidDeleteCode400Response.md | 32 ++ .../StoreorderorderidDeleteCode404Response.md | 32 ++ .../get/StoreorderorderidGetResponses.md | 12 +- .../get/responses/Code400Response.md | 32 -- .../get/responses/Code404Response.md | 32 -- ...=> StoreorderorderidGetCode200Response.md} | 24 +- .../StoreorderorderidGetCode400Response.md | 32 ++ .../StoreorderorderidGetCode404Response.md | 32 ++ .../petstore/java/docs/paths/user/UserPost.md | 4 +- .../docs/paths/user/post/UserPostResponses.md | 8 +- .../post/responses/CodedefaultResponse.md | 32 -- .../responses/UserPostCodedefaultResponse.md | 32 ++ .../UsercreatewitharrayPost.md | 4 +- .../post/UsercreatewitharrayPostResponses.md | 8 +- .../post/responses/CodedefaultResponse.md | 32 -- ...rcreatewitharrayPostCodedefaultResponse.md | 32 ++ .../UsercreatewithlistPost.md | 4 +- .../post/UsercreatewithlistPostResponses.md | 8 +- .../post/responses/CodedefaultResponse.md | 32 -- ...ercreatewithlistPostCodedefaultResponse.md | 32 ++ .../java/docs/paths/userlogin/UserloginGet.md | 14 +- .../userlogin/get/UserloginGetResponses.md | 14 +- .../get/responses/Code400Response.md | 32 -- ...onse.md => UserloginGetCode200Response.md} | 28 +- .../responses/UserloginGetCode400Response.md | 32 ++ .../Code200ResponseHeadersSchema.md | 389 ------------------ ...serloginGetCode200ResponseHeadersSchema.md | 389 ++++++++++++++++++ .../docs/paths/userlogout/UserlogoutGet.md | 4 +- .../userlogout/get/UserlogoutGetResponses.md | 8 +- .../get/responses/CodedefaultResponse.md | 17 - .../UserlogoutGetCodedefaultResponse.md | 17 + .../paths/userusername/UserusernameDelete.md | 8 +- .../paths/userusername/UserusernameGet.md | 14 +- .../paths/userusername/UserusernamePut.md | 6 +- .../delete/UserusernameDeleteResponses.md | 8 +- .../delete/responses/Code200Response.md | 17 - .../delete/responses/Code404Response.md | 32 -- .../UserusernameDeleteCode200Response.md | 17 + .../UserusernameDeleteCode404Response.md | 32 ++ .../get/UserusernameGetResponses.md | 12 +- .../get/responses/Code400Response.md | 32 -- .../get/responses/Code404Response.md | 32 -- ...e.md => UserusernameGetCode200Response.md} | 24 +- .../UserusernameGetCode400Response.md | 32 ++ .../UserusernameGetCode404Response.md | 32 ++ .../put/responses/Code400Response.md | 32 -- .../put/responses/Code404Response.md | 32 -- .../UserusernamePutCode400Response.md | 32 ++ .../UserusernamePutCode404Response.md | 32 ++ .../patch/AnotherfakedummyPatchResponses.java | 20 +- ...AnotherfakedummyPatchCode200Response.java} | 6 +- .../CommonparamsubdirDeleteResponses.java | 16 +- .../delete/responses/Code200Response.java | 7 - ...ommonparamsubdirDeleteCode200Response.java | 7 + .../get/CommonparamsubdirGetResponses.java | 16 +- .../get/responses/Code200Response.java | 7 - .../CommonparamsubdirGetCode200Response.java | 7 + .../post/CommonparamsubdirPostResponses.java | 16 +- .../post/responses/Code200Response.java | 7 - .../CommonparamsubdirPostCode200Response.java | 7 + .../fake/delete/FakeDeleteResponses.java | 16 +- ...se.java => FakeDeleteCode200Response.java} | 4 +- .../paths/fake/get/FakeGetResponses.java | 26 +- ...ponse.java => FakeGetCode200Response.java} | 4 +- ...ponse.java => FakeGetCode404Response.java} | 6 +- .../paths/fake/patch/FakePatchResponses.java | 20 +- ...nse.java => FakePatchCode200Response.java} | 6 +- .../paths/fake/post/FakePostResponses.java | 26 +- ...onse.java => FakePostCode200Response.java} | 4 +- ...onse.java => FakePostCode404Response.java} | 6 +- ...ropertieswitharrayofenumsGetResponses.java | 20 +- ...eswitharrayofenumsGetCode200Response.java} | 6 +- .../FakebodywithfileschemaPutResponses.java | 16 +- .../put/responses/Code200Response.java | 7 - ...ebodywithfileschemaPutCode200Response.java | 7 + .../FakebodywithqueryparamsPutResponses.java | 16 +- .../put/responses/Code200Response.java | 7 - ...bodywithqueryparamsPutCode200Response.java | 7 + .../FakecasesensitiveparamsPutResponses.java | 16 +- .../put/responses/Code200Response.java | 7 - ...casesensitiveparamsPutCode200Response.java | 7 + .../FakeclassnametestPatchResponses.java | 20 +- ...akeclassnametestPatchCode200Response.java} | 6 +- .../FakedeletecoffeeidDeleteResponses.java | 26 +- .../delete/responses/Code200Response.java | 7 - ...kedeletecoffeeidDeleteCode200Response.java | 7 + ...etecoffeeidDeleteCodedefaultResponse.java} | 6 +- .../get/FakehealthGetResponses.java | 20 +- ...java => FakehealthGetCode200Response.java} | 6 +- ...lineadditionalpropertiesPostResponses.java | 16 +- .../post/responses/Code200Response.java | 7 - ...ditionalpropertiesPostCode200Response.java | 7 + .../FakeinlinecompositionPostResponses.java | 20 +- ...inlinecompositionPostCode200Response.java} | 6 +- .../get/FakejsonformdataGetResponses.java | 16 +- .../get/responses/Code200Response.java | 7 - .../FakejsonformdataGetCode200Response.java | 7 + .../patch/FakejsonpatchPatchResponses.java | 16 +- .../patch/responses/Code200Response.java | 7 - .../FakejsonpatchPatchCode200Response.java | 7 + .../FakejsonwithcharsetPostResponses.java | 20 +- ...kejsonwithcharsetPostCode200Response.java} | 6 +- ...erequestbodycontenttypesPostResponses.java | 20 +- ...tbodycontenttypesPostCode200Response.java} | 6 +- ...akemultipleresponsebodiesGetResponses.java | 36 +- ...ipleresponsebodiesGetCode200Response.java} | 6 +- ...ipleresponsebodiesGetCode202Response.java} | 6 +- .../FakemultiplesecuritiesGetResponses.java | 20 +- ...multiplesecuritiesGetCode200Response.java} | 6 +- .../get/FakeobjinqueryGetResponses.java | 16 +- .../get/responses/Code200Response.java | 7 - .../FakeobjinqueryGetCode200Response.java | 7 + ...tercollisions1ababselfabPostResponses.java | 20 +- ...isions1ababselfabPostCode200Response.java} | 6 +- .../get/FakepemcontenttypeGetResponses.java | 20 +- ...FakepemcontenttypeGetCode200Response.java} | 6 +- ...oadimagewithrequiredfilePostResponses.java | 20 +- ...ewithrequiredfilePostCode200Response.java} | 6 +- ...yparamwithjsoncontenttypeGetResponses.java | 20 +- ...ithjsoncontenttypeGetCode200Response.java} | 6 +- .../get/FakeredirectionGetResponses.java | 30 +- ...=> FakeredirectionGetCode303Response.java} | 6 +- ...=> FakeredirectionGetCode3XXResponse.java} | 6 +- .../get/FakerefobjinqueryGetResponses.java | 16 +- .../get/responses/Code200Response.java | 7 - .../FakerefobjinqueryGetCode200Response.java | 7 + .../post/FakerefsarraymodelPostResponses.java | 20 +- ...akerefsarraymodelPostCode200Response.java} | 6 +- .../FakerefsarrayofenumsPostResponses.java | 20 +- ...erefsarrayofenumsPostCode200Response.java} | 6 +- .../post/FakerefsbooleanPostResponses.java | 20 +- ...> FakerefsbooleanPostCode200Response.java} | 6 +- ...eofnumberwithvalidationsPostResponses.java | 20 +- ...erwithvalidationsPostCode200Response.java} | 6 +- .../post/FakerefsenumPostResponses.java | 20 +- ...a => FakerefsenumPostCode200Response.java} | 6 +- .../post/FakerefsmammalPostResponses.java | 20 +- ...=> FakerefsmammalPostCode200Response.java} | 6 +- .../post/FakerefsnumberPostResponses.java | 20 +- ...=> FakerefsnumberPostCode200Response.java} | 6 +- ...sobjectmodelwithrefpropsPostResponses.java | 20 +- ...modelwithrefpropsPostCode200Response.java} | 6 +- .../post/FakerefsstringPostResponses.java | 20 +- ...=> FakerefsstringPostCode200Response.java} | 6 +- ...FakeresponsewithoutschemaGetResponses.java | 16 +- ...ponsewithoutschemaGetCode200Response.java} | 6 +- .../FaketestqueryparamtersPutResponses.java | 16 +- .../put/responses/Code200Response.java | 7 - ...etestqueryparamtersPutCode200Response.java | 7 + .../FakeuploaddownloadfilePostResponses.java | 20 +- ...ploaddownloadfilePostCode200Response.java} | 6 +- .../post/FakeuploadfilePostResponses.java | 20 +- ...=> FakeuploadfilePostCode200Response.java} | 6 +- .../post/FakeuploadfilesPostResponses.java | 20 +- ...> FakeuploadfilesPostCode200Response.java} | 6 +- .../FakewildcardresponsesGetResponses.java | 90 ++-- ...ewildcardresponsesGetCode1XXResponse.java} | 6 +- ...ewildcardresponsesGetCode200Response.java} | 6 +- ...ewildcardresponsesGetCode2XXResponse.java} | 6 +- ...ewildcardresponsesGetCode3XXResponse.java} | 6 +- ...ewildcardresponsesGetCode4XXResponse.java} | 6 +- ...ewildcardresponsesGetCode5XXResponse.java} | 6 +- .../client/paths/foo/get/FooGetResponses.java | 16 +- ...se.java => FooGetCodedefaultResponse.java} | 6 +- .../paths/pet/post/PetPostResponses.java | 26 +- ...ponse.java => PetPostCode200Response.java} | 4 +- ...ponse.java => PetPostCode405Response.java} | 6 +- .../client/paths/pet/put/PetPutResponses.java | 32 +- ...sponse.java => PetPutCode400Response.java} | 6 +- ...sponse.java => PetPutCode404Response.java} | 6 +- ...sponse.java => PetPutCode405Response.java} | 6 +- .../get/PetfindbystatusGetResponses.java | 30 +- .../get/responses/Code200Response.java | 7 - .../PetfindbystatusGetCode200Response.java | 7 + ...=> PetfindbystatusGetCode400Response.java} | 6 +- .../get/PetfindbytagsGetResponses.java | 30 +- .../get/responses/Code200Response.java | 7 - .../PetfindbytagsGetCode200Response.java | 7 + ...a => PetfindbytagsGetCode400Response.java} | 6 +- .../delete/PetpetidDeleteResponses.java | 12 +- ...ava => PetpetidDeleteCode400Response.java} | 6 +- .../petpetid/get/PetpetidGetResponses.java | 40 +- ...e.java => PetpetidGetCode200Response.java} | 6 +- ...e.java => PetpetidGetCode400Response.java} | 6 +- ...e.java => PetpetidGetCode404Response.java} | 6 +- .../petpetid/post/PetpetidPostResponses.java | 12 +- ....java => PetpetidPostCode405Response.java} | 6 +- .../PetpetiduploadimagePostResponses.java | 20 +- .../post/responses/Code200Response.java | 7 - ...etpetiduploadimagePostCode200Response.java | 7 + .../solidus/get/SolidusGetResponses.java | 16 +- ...se.java => SolidusGetCode200Response.java} | 4 +- .../get/StoreinventoryGetResponses.java | 20 +- .../get/responses/Code200Response.java | 7 - .../StoreinventoryGetCode200Response.java | 7 + .../post/StoreorderPostResponses.java | 30 +- ...ava => StoreorderPostCode200Response.java} | 6 +- ...ava => StoreorderPostCode400Response.java} | 6 +- .../StoreorderorderidDeleteResponses.java | 22 +- ...oreorderorderidDeleteCode400Response.java} | 6 +- ...oreorderorderidDeleteCode404Response.java} | 6 +- .../get/StoreorderorderidGetResponses.java | 40 +- ... StoreorderorderidGetCode200Response.java} | 6 +- ... StoreorderorderidGetCode400Response.java} | 6 +- ... StoreorderorderidGetCode404Response.java} | 6 +- .../paths/user/post/UserPostResponses.java | 12 +- ....java => UserPostCodedefaultResponse.java} | 6 +- .../UsercreatewitharrayPostResponses.java | 12 +- ...eatewitharrayPostCodedefaultResponse.java} | 6 +- .../post/UsercreatewithlistPostResponses.java | 12 +- ...reatewithlistPostCodedefaultResponse.java} | 6 +- .../userlogin/get/UserloginGetResponses.java | 34 +- ....java => UserloginGetCode200Response.java} | 10 +- ....java => UserloginGetCode400Response.java} | 6 +- .../responses/code200response/Headers.java | 4 +- ...loginGetCode200ResponseHeadersSchema.java} | 164 ++++---- .../get/UserlogoutGetResponses.java | 12 +- .../get/responses/CodedefaultResponse.java | 7 - .../UserlogoutGetCodedefaultResponse.java | 7 + .../delete/UserusernameDeleteResponses.java | 26 +- .../delete/responses/Code200Response.java | 7 - .../UserusernameDeleteCode200Response.java | 7 + ...=> UserusernameDeleteCode404Response.java} | 6 +- .../get/UserusernameGetResponses.java | 40 +- ...va => UserusernameGetCode200Response.java} | 6 +- ...va => UserusernameGetCode400Response.java} | 6 +- ...va => UserusernameGetCode404Response.java} | 6 +- .../put/UserusernamePutResponses.java | 22 +- ...va => UserusernamePutCode400Response.java} | 6 +- ...va => UserusernamePutCode404Response.java} | 6 +- .../generators/JavaClientGenerator.java | 8 +- 455 files changed, 3951 insertions(+), 3951 deletions(-) rename samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/{Code200Response.md => AnotherfakedummyPatchCode200Response.md} (77%) delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/responses/FakeDeleteCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode200Response.md rename samples/client/petstore/java/docs/paths/fake/get/responses/{Code404Response.md => FakeGetCode404Response.md} (79%) rename samples/client/petstore/java/docs/paths/fake/patch/responses/{Code200Response.md => FakePatchCode200Response.md} (79%) delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/responses/Code200Response.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 rename samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/{Code200Response.md => FakeadditionalpropertieswitharrayofenumsGetCode200Response.md} (74%) delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md rename samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/{Code200Response.md => FakeclassnametestPatchCode200Response.md} (77%) delete mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/Code200Response.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 rename samples/client/petstore/java/docs/paths/fakehealth/get/responses/{Code200Response.md => FakehealthGetCode200Response.md} (79%) delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md rename samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/{Code200Response.md => FakeinlinecompositionPostCode200Response.md} (80%) delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md rename samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/{Code200Response.md => FakejsonwithcharsetPostCode200Response.md} (77%) rename samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/{Code200Response.md => FakemultiplerequestbodycontenttypesPostCode200Response.md} (73%) rename samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/{Code200Response.md => FakemultipleresponsebodiesGetCode200Response.md} (75%) rename samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/{Code202Response.md => FakemultipleresponsebodiesGetCode202Response.md} (75%) rename samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/{Code200Response.md => FakemultiplesecuritiesGetCode200Response.md} (76%) delete mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md rename samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/{Code200Response.md => Fakeparametercollisions1ababselfabPostCode200Response.md} (73%) rename samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/{Code200Response.md => FakepemcontenttypeGetCode200Response.md} (77%) rename samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/{Code200Response.md => FakepetiduploadimagewithrequiredfilePostCode200Response.md} (74%) rename samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/{Code200Response.md => FakequeryparamwithjsoncontenttypeGetCode200Response.md} (74%) 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 delete mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md rename samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/{Code200Response.md => FakerefsarraymodelPostCode200Response.md} (77%) rename samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/{Code200Response.md => FakerefsarrayofenumsPostCode200Response.md} (76%) rename samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/{Code200Response.md => FakerefsbooleanPostCode200Response.md} (77%) rename samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/{Code200Response.md => FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md} (73%) rename samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/{Code200Response.md => FakerefsenumPostCode200Response.md} (78%) rename samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/{Code200Response.md => FakerefsmammalPostCode200Response.md} (77%) rename samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/{Code200Response.md => FakerefsnumberPostCode200Response.md} (78%) rename samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/{Code200Response.md => FakerefsobjectmodelwithrefpropsPostCode200Response.md} (75%) rename samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/{Code200Response.md => FakerefsstringPostCode200Response.md} (77%) rename samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/{Code200Response.md => FakeresponsewithoutschemaGetCode200Response.md} (68%) delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md rename samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/{Code200Response.md => FakeuploaddownloadfilePostCode200Response.md} (76%) rename samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/{Code200Response.md => FakeuploadfilePostCode200Response.md} (78%) rename samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/{Code200Response.md => FakeuploadfilesPostCode200Response.md} (78%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code1XXResponse.md => FakewildcardresponsesGetCode1XXResponse.md} (76%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code200Response.md => FakewildcardresponsesGetCode200Response.md} (76%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code2XXResponse.md => FakewildcardresponsesGetCode2XXResponse.md} (76%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code3XXResponse.md => FakewildcardresponsesGetCode3XXResponse.md} (76%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code4XXResponse.md => FakewildcardresponsesGetCode4XXResponse.md} (76%) rename samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/{Code5XXResponse.md => FakewildcardresponsesGetCode5XXResponse.md} (76%) rename samples/client/petstore/java/docs/paths/foo/get/responses/{CodedefaultResponse.md => FooGetCodedefaultResponse.md} (80%) delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/responses/Code200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/responses/Code405Response.md create mode 100644 samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode200Response.md rename samples/client/petstore/java/docs/paths/{fakeredirection/get/responses/Code3XXResponse.md => pet/post/responses/PetPostCode405Response.md} (73%) delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/responses/Code400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/responses/Code404Response.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/responses/Code405Response.md rename samples/client/petstore/java/docs/paths/{fake/post/responses/Code404Response.md => pet/put/responses/PetPutCode400Response.md} (74%) rename samples/client/petstore/java/docs/paths/{fakedeletecoffeeid/delete/responses/CodedefaultResponse.md => pet/put/responses/PetPutCode404Response.md} (74%) rename samples/client/petstore/java/docs/paths/{fakeredirection/get/responses/Code303Response.md => pet/put/responses/PetPutCode405Response.md} (74%) delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/Code200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/Code400Response.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 delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/responses/Code200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/responses/Code400Response.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 delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/responses/Code400Response.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/Code400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/Code404Response.md rename samples/client/petstore/java/docs/paths/petpetid/get/responses/{Code200Response.md => PetpetidGetCode200Response.md} (81%) 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 delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/responses/Code405Response.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/solidus/get/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/solidus/get/responses/SolidusGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/responses/Code200Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/Code400Response.md rename samples/client/petstore/java/docs/paths/storeorder/post/responses/{Code200Response.md => StoreorderPostCode200Response.md} (80%) create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/Code400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/Code404Response.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 delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code404Response.md rename samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/{Code200Response.md => StoreorderorderidGetCode200Response.md} (79%) 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 delete mode 100644 samples/client/petstore/java/docs/paths/user/post/responses/CodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/user/post/responses/UserPostCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/CodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/CodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/Code400Response.md rename samples/client/petstore/java/docs/paths/userlogin/get/responses/{Code200Response.md => UserloginGetCode200Response.md} (71%) create 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/Code200ResponseHeadersSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogout/get/responses/CodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/responses/Code200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/responses/Code404Response.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 delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/Code400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/Code404Response.md rename samples/client/petstore/java/docs/paths/userusername/get/responses/{Code200Response.md => UserusernameGetCode200Response.md} (80%) 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 delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/responses/Code400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/responses/Code404Response.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 rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/{Code200Response.java => AnotherfakedummyPatchCode200Response.java} (92%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java create 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/responses/Code200Response.java create 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/post/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/{Code200Response.java => FakeDeleteCode200Response.java} (50%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/{Code200Response.java => FakeGetCode200Response.java} (50%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/{Code404Response.java => FakeGetCode404Response.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/{Code200Response.java => FakePatchCode200Response.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/{Code200Response.java => FakePostCode200Response.java} (50%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/{Code404Response.java => FakePostCode404Response.java} (89%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/{Code200Response.java => FakeadditionalpropertieswitharrayofenumsGetCode200Response.java} (90%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java create 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/put/responses/Code200Response.java create 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/put/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/{Code200Response.java => FakeclassnametestPatchCode200Response.java} (91%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/{CodedefaultResponse.java => FakedeletecoffeeidDeleteCodedefaultResponse.java} (86%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/{Code200Response.java => FakehealthGetCode200Response.java} (92%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/{Code200Response.java => FakeinlinecompositionPostCode200Response.java} (94%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java create 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/patch/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/{Code200Response.java => FakejsonwithcharsetPostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/{Code200Response.java => FakemultiplerequestbodycontenttypesPostCode200Response.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/{Code200Response.java => FakemultipleresponsebodiesGetCode200Response.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/{Code202Response.java => FakemultipleresponsebodiesGetCode202Response.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/{Code200Response.java => FakemultiplesecuritiesGetCode200Response.java} (91%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/{Code200Response.java => Fakeparametercollisions1ababselfabPostCode200Response.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/{Code200Response.java => FakepemcontenttypeGetCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/{Code200Response.java => FakepetiduploadimagewithrequiredfilePostCode200Response.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/{Code200Response.java => FakequeryparamwithjsoncontenttypeGetCode200Response.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/{Code303Response.java => FakeredirectionGetCode303Response.java} (87%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/{Code3XXResponse.java => FakeredirectionGetCode3XXResponse.java} (87%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/{Code200Response.java => FakerefsarraymodelPostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/{Code200Response.java => FakerefsarrayofenumsPostCode200Response.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/{Code200Response.java => FakerefsbooleanPostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/{Code200Response.java => FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/{Code200Response.java => FakerefsenumPostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/{Code200Response.java => FakerefsmammalPostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/{Code200Response.java => FakerefsnumberPostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/{Code200Response.java => FakerefsobjectmodelwithrefpropsPostCode200Response.java} (90%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/{Code200Response.java => FakerefsstringPostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/{Code200Response.java => FakeresponsewithoutschemaGetCode200Response.java} (87%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/{Code200Response.java => FakeuploaddownloadfilePostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/{Code200Response.java => FakeuploadfilePostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/{Code200Response.java => FakeuploadfilesPostCode200Response.java} (92%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{Code1XXResponse.java => FakewildcardresponsesGetCode1XXResponse.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{Code200Response.java => FakewildcardresponsesGetCode200Response.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{Code2XXResponse.java => FakewildcardresponsesGetCode2XXResponse.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{Code3XXResponse.java => FakewildcardresponsesGetCode3XXResponse.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{Code4XXResponse.java => FakewildcardresponsesGetCode4XXResponse.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/{Code5XXResponse.java => FakewildcardresponsesGetCode5XXResponse.java} (91%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/{CodedefaultResponse.java => FooGetCodedefaultResponse.java} (93%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/{Code200Response.java => PetPostCode200Response.java} (50%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/{Code405Response.java => PetPostCode405Response.java} (89%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/{Code400Response.java => PetPutCode400Response.java} (89%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/{Code404Response.java => PetPutCode404Response.java} (89%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/{Code405Response.java => PetPutCode405Response.java} (89%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/{Code400Response.java => PetfindbystatusGetCode400Response.java} (87%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/{Code400Response.java => PetfindbytagsGetCode400Response.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/{Code400Response.java => PetpetidDeleteCode400Response.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/{Code200Response.java => PetpetidGetCode200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/{Code400Response.java => PetpetidGetCode400Response.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/{Code404Response.java => PetpetidGetCode404Response.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/{Code405Response.java => PetpetidPostCode405Response.java} (88%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/{Code200Response.java => SolidusGetCode200Response.java} (50%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/{Code200Response.java => StoreorderPostCode200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/{Code400Response.java => StoreorderPostCode400Response.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/{Code400Response.java => StoreorderorderidDeleteCode400Response.java} (87%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/{Code404Response.java => StoreorderorderidDeleteCode404Response.java} (87%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/{Code200Response.java => StoreorderorderidGetCode200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/{Code400Response.java => StoreorderorderidGetCode400Response.java} (87%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/{Code404Response.java => StoreorderorderidGetCode404Response.java} (87%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/{CodedefaultResponse.java => UserPostCodedefaultResponse.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/{CodedefaultResponse.java => UsercreatewitharrayPostCodedefaultResponse.java} (86%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/{CodedefaultResponse.java => UsercreatewithlistPostCodedefaultResponse.java} (86%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/{Code200Response.java => UserloginGetCode200Response.java} (87%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/{Code400Response.java => UserloginGetCode400Response.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/{Code200ResponseHeadersSchema.java => UserloginGetCode200ResponseHeadersSchema.java} (52%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java create 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/delete/responses/Code200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/{Code404Response.java => UserusernameDeleteCode404Response.java} (87%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/{Code200Response.java => UserusernameGetCode200Response.java} (94%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/{Code400Response.java => UserusernameGetCode400Response.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/{Code404Response.java => UserusernameGetCode404Response.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/{Code400Response.java => UserusernamePutCode400Response.java} (88%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/{Code404Response.java => UserusernamePutCode404Response.java} (88%) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 09f87383e10..21b0e01ab3e 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -193,7 +193,7 @@ docs/components/securityschemes/PetstoreAuth.md docs/paths/anotherfakedummy/AnotherfakedummyPatch.md docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md -docs/paths/anotherfakedummy/patch/responses/Code200Response.md +docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/commonparamsubdir/CommonparamsubdirDelete.md docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -203,18 +203,18 @@ docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md -docs/paths/commonparamsubdir/delete/responses/Code200Response.md +docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md -docs/paths/commonparamsubdir/get/responses/Code200Response.md +docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md -docs/paths/commonparamsubdir/post/responses/Code200Response.md +docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md docs/paths/fake/FakeDelete.md docs/paths/fake/FakeGet.md docs/paths/fake/FakePatch.md @@ -229,7 +229,7 @@ docs/paths/fake/delete/parameters/parameter2/Schema2.md docs/paths/fake/delete/parameters/parameter3/Schema3.md docs/paths/fake/delete/parameters/parameter4/Schema4.md docs/paths/fake/delete/parameters/parameter5/Schema5.md -docs/paths/fake/delete/responses/Code200Response.md +docs/paths/fake/delete/responses/FakeDeleteCode200Response.md docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md docs/paths/fake/get/FakeGetHeaderParameters.md docs/paths/fake/get/FakeGetQueryParameters.md @@ -242,67 +242,67 @@ docs/paths/fake/get/parameters/parameter3/Schema3.md docs/paths/fake/get/parameters/parameter4/Schema4.md docs/paths/fake/get/parameters/parameter5/Schema5.md docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md -docs/paths/fake/get/responses/Code200Response.md -docs/paths/fake/get/responses/Code404Response.md +docs/paths/fake/get/responses/FakeGetCode200Response.md +docs/paths/fake/get/responses/FakeGetCode404Response.md docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fake/patch/FakePatchRequestBody.md docs/paths/fake/patch/FakePatchResponses.md -docs/paths/fake/patch/responses/Code200Response.md +docs/paths/fake/patch/responses/FakePatchCode200Response.md docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fake/post/FakePostRequestBody.md docs/paths/fake/post/FakePostResponses.md docs/paths/fake/post/FakePostSecurityInfo.md docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md -docs/paths/fake/post/responses/Code200Response.md -docs/paths/fake/post/responses/Code404Response.md +docs/paths/fake/post/responses/FakePostCode200Response.md +docs/paths/fake/post/responses/FakePostCode404Response.md docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md +docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakebodywithfileschema/put/responses/Code200Response.md +docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakebodywithqueryparams/put/responses/Code200Response.md +docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md -docs/paths/fakecasesensitiveparams/put/responses/Code200Response.md +docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md docs/paths/fakeclassnametest/FakeclassnametestPatch.md docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md -docs/paths/fakeclassnametest/patch/responses/Code200Response.md +docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md -docs/paths/fakedeletecoffeeid/delete/responses/Code200Response.md -docs/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.md +docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.md +docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.md docs/paths/fakehealth/FakehealthGet.md docs/paths/fakehealth/get/FakehealthGetResponses.md -docs/paths/fakehealth/get/responses/Code200Response.md +docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeinlineadditionalproperties/post/responses/Code200Response.md +docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md @@ -311,42 +311,42 @@ docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakeinlinecomposition/post/responses/Code200Response.md +docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md docs/paths/fakejsonformdata/FakejsonformdataGet.md docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md -docs/paths/fakejsonformdata/get/responses/Code200Response.md +docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md docs/paths/fakejsonpatch/FakejsonpatchPatch.md docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md -docs/paths/fakejsonpatch/patch/responses/Code200Response.md +docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md -docs/paths/fakejsonwithcharset/post/responses/Code200Response.md +docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md +docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md -docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md -docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md +docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md +docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md -docs/paths/fakemultiplesecurities/get/responses/Code200Response.md +docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md @@ -355,7 +355,7 @@ docs/paths/fakeobjinquery/FakeobjinqueryGet.md docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md -docs/paths/fakeobjinquery/get/responses/Code200Response.md +docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md @@ -383,13 +383,13 @@ docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7 docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md +docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md -docs/paths/fakepemcontenttype/get/responses/Code200Response.md +docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md @@ -398,81 +398,81 @@ docs/paths/fakepetiduploadimagewithrequiredfile/post/Fakepetiduploadimagewithreq docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md +docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md -docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md +docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeredirection/FakeredirectionGet.md docs/paths/fakeredirection/get/FakeredirectionGetResponses.md -docs/paths/fakeredirection/get/responses/Code303Response.md -docs/paths/fakeredirection/get/responses/Code3XXResponse.md +docs/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.md +docs/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.md docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md -docs/paths/fakerefobjinquery/get/responses/Code200Response.md +docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsarraymodel/post/responses/Code200Response.md +docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md +docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsboolean/FakerefsbooleanPost.md docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsboolean/post/responses/Code200Response.md +docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md +docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsenum/FakerefsenumPost.md docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsenum/post/responses/Code200Response.md +docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsmammal/FakerefsmammalPost.md docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsmammal/post/responses/Code200Response.md +docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsnumber/FakerefsnumberPost.md docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsnumber/post/responses/Code200Response.md +docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md +docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakerefsstring/FakerefsstringPost.md docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/fakerefsstring/post/responses/Code200Response.md +docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md -docs/paths/fakeresponsewithoutschema/get/responses/Code200Response.md +docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md @@ -482,33 +482,33 @@ docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md -docs/paths/faketestqueryparamters/put/responses/Code200Response.md +docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md -docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md +docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md docs/paths/fakeuploadfile/FakeuploadfilePost.md docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakeuploadfile/post/responses/Code200Response.md +docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakeuploadfiles/FakeuploadfilesPost.md docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/fakeuploadfiles/post/responses/Code200Response.md +docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md -docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md -docs/paths/fakewildcardresponses/get/responses/Code200Response.md -docs/paths/fakewildcardresponses/get/responses/Code2XXResponse.md -docs/paths/fakewildcardresponses/get/responses/Code3XXResponse.md -docs/paths/fakewildcardresponses/get/responses/Code4XXResponse.md -docs/paths/fakewildcardresponses/get/responses/Code5XXResponse.md +docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md +docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md +docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md +docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md +docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md +docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md @@ -518,7 +518,7 @@ docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicati docs/paths/foo/FooGet.md docs/paths/foo/get/FooGetResponses.md docs/paths/foo/get/FooGetServerInfo.md -docs/paths/foo/get/responses/CodedefaultResponse.md +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 @@ -528,17 +528,17 @@ docs/paths/pet/PetPut.md docs/paths/pet/post/PetPostRequestBody.md docs/paths/pet/post/PetPostResponses.md docs/paths/pet/post/PetPostSecurityInfo.md -docs/paths/pet/post/responses/Code200Response.md -docs/paths/pet/post/responses/Code405Response.md +docs/paths/pet/post/responses/PetPostCode200Response.md +docs/paths/pet/post/responses/PetPostCode405Response.md docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md docs/paths/pet/put/PetPutRequestBody.md docs/paths/pet/put/PetPutResponses.md docs/paths/pet/put/PetPutSecurityInfo.md -docs/paths/pet/put/responses/Code400Response.md -docs/paths/pet/put/responses/Code404Response.md -docs/paths/pet/put/responses/Code405Response.md +docs/paths/pet/put/responses/PetPutCode400Response.md +docs/paths/pet/put/responses/PetPutCode404Response.md +docs/paths/pet/put/responses/PetPutCode405Response.md docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -547,8 +547,8 @@ docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md -docs/paths/petfindbystatus/get/responses/Code200Response.md -docs/paths/petfindbystatus/get/responses/Code400Response.md +docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md +docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.md docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md @@ -560,8 +560,8 @@ docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md -docs/paths/petfindbytags/get/responses/Code200Response.md -docs/paths/petfindbytags/get/responses/Code400Response.md +docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md +docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.md docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md docs/paths/petpetid/PetpetidDelete.md @@ -573,16 +573,16 @@ docs/paths/petpetid/delete/PetpetidDeleteResponses.md docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md docs/paths/petpetid/delete/parameters/parameter0/Schema0.md docs/paths/petpetid/delete/parameters/parameter1/Schema1.md -docs/paths/petpetid/delete/responses/Code400Response.md +docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md docs/paths/petpetid/get/PetpetidGetPathParameters.md docs/paths/petpetid/get/PetpetidGetResponses.md docs/paths/petpetid/get/PetpetidGetSecurityInfo.md docs/paths/petpetid/get/parameters/parameter0/Schema0.md -docs/paths/petpetid/get/responses/Code200Response.md -docs/paths/petpetid/get/responses/Code400Response.md -docs/paths/petpetid/get/responses/Code404Response.md +docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md +docs/paths/petpetid/get/responses/PetpetidGetCode400Response.md +docs/paths/petpetid/get/responses/PetpetidGetCode404Response.md docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md @@ -592,7 +592,7 @@ docs/paths/petpetid/post/PetpetidPostResponses.md docs/paths/petpetid/post/PetpetidPostSecurityInfo.md docs/paths/petpetid/post/parameters/parameter0/Schema0.md docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md -docs/paths/petpetid/post/responses/Code405Response.md +docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -602,22 +602,22 @@ docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md -docs/paths/petpetiduploadimage/post/responses/Code200Response.md +docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md docs/paths/solidus/SolidusGet.md docs/paths/solidus/get/SolidusGetResponses.md -docs/paths/solidus/get/responses/Code200Response.md +docs/paths/solidus/get/responses/SolidusGetCode200Response.md docs/paths/storeinventory/StoreinventoryGet.md docs/paths/storeinventory/get/StoreinventoryGetResponses.md docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md -docs/paths/storeinventory/get/responses/Code200Response.md +docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md docs/paths/storeorder/StoreorderPost.md docs/paths/storeorder/post/StoreorderPostRequestBody.md docs/paths/storeorder/post/StoreorderPostResponses.md docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/storeorder/post/responses/Code200Response.md -docs/paths/storeorder/post/responses/Code400Response.md +docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md +docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -625,64 +625,64 @@ docs/paths/storeorderorderid/StoreorderorderidGet.md docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md -docs/paths/storeorderorderid/delete/responses/Code400Response.md -docs/paths/storeorderorderid/delete/responses/Code404Response.md +docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.md +docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.md docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md -docs/paths/storeorderorderid/get/responses/Code200Response.md -docs/paths/storeorderorderid/get/responses/Code400Response.md -docs/paths/storeorderorderid/get/responses/Code404Response.md +docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md +docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.md +docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.md docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/user/UserPost.md docs/paths/user/post/UserPostRequestBody.md docs/paths/user/post/UserPostResponses.md docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/user/post/responses/CodedefaultResponse.md +docs/paths/user/post/responses/UserPostCodedefaultResponse.md docs/paths/usercreatewitharray/UsercreatewitharrayPost.md docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md -docs/paths/usercreatewitharray/post/responses/CodedefaultResponse.md +docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md docs/paths/usercreatewithlist/UsercreatewithlistPost.md docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md -docs/paths/usercreatewithlist/post/responses/CodedefaultResponse.md +docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md docs/paths/userlogin/UserloginGet.md docs/paths/userlogin/get/UserloginGetQueryParameters.md docs/paths/userlogin/get/UserloginGetResponses.md docs/paths/userlogin/get/parameters/parameter0/Schema0.md docs/paths/userlogin/get/parameters/parameter1/Schema1.md -docs/paths/userlogin/get/responses/Code200Response.md -docs/paths/userlogin/get/responses/Code400Response.md -docs/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md +docs/paths/userlogin/get/responses/UserloginGetCode200Response.md +docs/paths/userlogin/get/responses/UserloginGetCode400Response.md +docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md docs/paths/userlogout/UserlogoutGet.md docs/paths/userlogout/get/UserlogoutGetResponses.md -docs/paths/userlogout/get/responses/CodedefaultResponse.md +docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md docs/paths/userusername/UserusernameDelete.md docs/paths/userusername/UserusernameGet.md docs/paths/userusername/UserusernamePut.md docs/paths/userusername/delete/UserusernameDeletePathParameters.md docs/paths/userusername/delete/UserusernameDeleteResponses.md -docs/paths/userusername/delete/responses/Code200Response.md -docs/paths/userusername/delete/responses/Code404Response.md +docs/paths/userusername/delete/responses/UserusernameDeleteCode200Response.md +docs/paths/userusername/delete/responses/UserusernameDeleteCode404Response.md docs/paths/userusername/get/UserusernameGetPathParameters.md docs/paths/userusername/get/UserusernameGetResponses.md -docs/paths/userusername/get/responses/Code200Response.md -docs/paths/userusername/get/responses/Code400Response.md -docs/paths/userusername/get/responses/Code404Response.md +docs/paths/userusername/get/responses/UserusernameGetCode200Response.md +docs/paths/userusername/get/responses/UserusernameGetCode400Response.md +docs/paths/userusername/get/responses/UserusernameGetCode404Response.md docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md docs/paths/userusername/put/UserusernamePutPathParameters.md docs/paths/userusername/put/UserusernamePutRequestBody.md docs/paths/userusername/put/UserusernamePutResponses.md docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md -docs/paths/userusername/put/responses/Code400Response.md -docs/paths/userusername/put/responses/Code404Response.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 @@ -1044,7 +1044,7 @@ src/main/java/org/openapijsonschematools/client/paths/Userusername.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java -src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java @@ -1057,14 +1057,14 @@ src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/p src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java @@ -1073,7 +1073,7 @@ src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Com src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java @@ -1095,7 +1095,7 @@ src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/par src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java -src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java @@ -1115,31 +1115,31 @@ src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parame src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java -src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java -src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java -src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java @@ -1148,7 +1148,7 @@ src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/pu src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java @@ -1159,12 +1159,12 @@ src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/pu src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java -src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java @@ -1173,17 +1173,17 @@ src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/ src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java -src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java @@ -1195,42 +1195,42 @@ src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java -src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java -src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java @@ -1241,7 +1241,7 @@ src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Fakeobj src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java @@ -1289,13 +1289,13 @@ src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ab src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java @@ -1306,7 +1306,7 @@ src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithre src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java @@ -1315,76 +1315,76 @@ src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncont src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java -src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java -src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java -src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java @@ -1401,33 +1401,33 @@ src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java -src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java -src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java +src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -1437,7 +1437,7 @@ src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/ src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java -src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java +src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java 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 @@ -1447,17 +1447,17 @@ src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java +src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java -src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java -src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java +src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java @@ -1468,8 +1468,8 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Petfin src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java @@ -1483,8 +1483,8 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Petfindb src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java @@ -1499,7 +1499,7 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java @@ -1508,9 +1508,9 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetRe src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java @@ -1522,7 +1522,7 @@ src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPost src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java -src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java +src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java @@ -1534,22 +1534,22 @@ src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/P src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java -src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java -src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java -src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java +src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java @@ -1559,31 +1559,31 @@ src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/S src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java -src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java +src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java +src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java -src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java +src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java @@ -1592,10 +1592,10 @@ src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/P src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java -src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java +src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Int32.java @@ -1607,7 +1607,7 @@ src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/co src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java -src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java +src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.java src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java @@ -1615,15 +1615,15 @@ src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parame src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java -src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java -src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java @@ -1632,8 +1632,8 @@ src/main/java/org/openapijsonschematools/client/paths/userusername/put/Userusern src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java -src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java -src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java +src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java src/main/java/org/openapijsonschematools/client/requestbody/GenericRequestBody.java src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java src/main/java/org/openapijsonschematools/client/requestbody/SerializedRequestBody.java diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md index 47533fda62e..d246bcdf4fa 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -39,7 +39,7 @@ 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.Code200Response; +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; @@ -101,8 +101,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -AnotherfakedummyPatchResponses.EndpointCode200Response castResponse = (AnotherfakedummyPatchResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +AnotherfakedummyPatchResponses.EndpointAnotherfakedummyPatchCode200Response castResponse = (AnotherfakedummyPatchResponses.EndpointAnotherfakedummyPatchCode200Response) response; +AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody deserializedBody = (AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md index b4f60163ad6..b7064b938da 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointAnotherfakedummyPatchCode200Response](#endpointanotherfakedummypatchcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointAnotherfakedummyPatchCode200Response](#endpointanotherfakedummypatchcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointAnotherfakedummyPatchCode200Response +public record EndpointAnotherfakedummyPatchCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/anotherfakedummy/patch/responses/Code200Response.md#sealedresponsebody) body, + [AnotherfakedummyPatchCode200Response.SealedResponseBody](../../../paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md similarity index 77% rename from samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md index cc3c29215e0..e9a291fa5fb 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# AnotherfakedummyPatchCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## AnotherfakedummyPatchCode200Response1 +public static class AnotherfakedummyPatchCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| AnotherfakedummyPatchCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index fb1c6c427ad..efd1b99e6b3 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Commonpa 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.Code200Response; +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; @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -CommonparamsubdirDeleteResponses.EndpointCode200Response castResponse = (CommonparamsubdirDeleteResponses.EndpointCode200Response) response; +CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response castResponse = (CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index 1b15b9d782d..4587e7e592f 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.get.Commonparam 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.Code200Response; +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; @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -CommonparamsubdirGetResponses.EndpointCode200Response castResponse = (CommonparamsubdirGetResponses.EndpointCode200Response) response; +CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response castResponse = (CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index 68387dce675..0b52b0f49a8 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.post.Commonpara 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.Code200Response; +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; @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -CommonparamsubdirPostResponses.EndpointCode200Response castResponse = (CommonparamsubdirPostResponses.EndpointCode200Response) response; +CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response castResponse = (CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md index fcafe23aebe..955c52cfc4c 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointCommonparamsubdirDeleteCode200Response](#endpointcommonparamsubdirdeletecode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointCommonparamsubdirDeleteCode200Response](#endpointcommonparamsubdirdeletecode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointCommonparamsubdirDeleteCode200Response +public record EndpointCommonparamsubdirDeleteCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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/CommonparamsubdirGetResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md index 7200ce6f36e..1341c9284d9 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointCommonparamsubdirGetCode200Response](#endpointcommonparamsubdirgetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointCommonparamsubdirGetCode200Response](#endpointcommonparamsubdirgetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointCommonparamsubdirGetCode200Response +public record EndpointCommonparamsubdirGetCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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/post/CommonparamsubdirPostResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md index 6440fd63d04..2f181986105 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointCommonparamsubdirPostCode200Response](#endpointcommonparamsubdirpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointCommonparamsubdirPostCode200Response](#endpointcommonparamsubdirpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointCommonparamsubdirPostCode200Response +public record EndpointCommonparamsubdirPostCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index caa22572bb4..d7d6fff1dde 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -44,7 +44,7 @@ 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.Code200Response; +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; @@ -134,7 +134,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeDeleteResponses.EndpointCode200Response castResponse = (FakeDeleteResponses.EndpointCode200Response) response; +FakeDeleteResponses.EndpointFakeDeleteCode200Response castResponse = (FakeDeleteResponses.EndpointFakeDeleteCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index 83923858abc..d3c7b7c5c64 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -39,8 +39,8 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; -import org.openapijsonschematools.client.paths.fake.get.responses.Code404Response; +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; @@ -76,7 +76,7 @@ var request = new FakeGet.GetRequestBuilder().build(); FakeGetResponses.EndpointResponse response; try { response = apiClient.get(request); -} catch (Code404Response.ResponseApiException e) { +} catch (FakeGetCode404Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -93,7 +93,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeGetResponses.EndpointCode200Response castResponse = (FakeGetResponses.EndpointCode200Response) response; +FakeGetResponses.EndpointFakeGetCode200Response castResponse = (FakeGetResponses.EndpointFakeGetCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md index 1bb41bae3f7..5fe4989076e 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePatch.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -39,7 +39,7 @@ 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.Code200Response; +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; @@ -101,8 +101,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakePatchResponses.EndpointCode200Response castResponse = (FakePatchResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakePatchResponses.EndpointFakePatchCode200Response castResponse = (FakePatchResponses.EndpointFakePatchCode200Response) response; +FakePatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakePatchCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fake/FakePost.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md index 3babb53afad..5f8c72b4b7a 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePost.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -40,8 +40,8 @@ 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.Code200Response; -import org.openapijsonschematools.client.paths.fake.post.responses.Code404Response; +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; @@ -86,7 +86,7 @@ var request = new FakePost.PostRequestBuilder().build(); FakePostResponses.EndpointResponse response; try { response = apiClient.post(request); -} catch (Code404Response.ResponseApiException e) { +} catch (FakePostCode404Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -103,7 +103,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakePostResponses.EndpointCode200Response castResponse = (FakePostResponses.EndpointCode200Response) response; +FakePostResponses.EndpointFakePostCode200Response castResponse = (FakePostResponses.EndpointFakePostCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md index c79a3999965..f922799dc04 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeDeleteCode200Response](#endpointfakedeletecode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeDeleteCode200Response](#endpointfakedeletecode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeDeleteCode200Response +public record EndpointFakeDeleteCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fake/delete/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fake/delete/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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/get/FakeGetResponses.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md index c55df256961..97fb3ded3d4 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeGetCode200Response](#endpointfakegetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeGetCode200Response](#endpointfakegetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeGetCode200Response +public record EndpointFakeGetCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fake/get/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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/Code404Response.md b/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response.md rename to samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md index 4c15662e637..2bfdf12aa75 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response.md +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md @@ -1,6 +1,6 @@ -# Code404Response +# FakeGetCode404Response -public class Code404Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code404Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code404Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code404Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code404Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code404Response.Code404Response1](#code404response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.MapJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code404Response1 -public static class Code404Response1
+## FakeGetCode404Response1 +public static class FakeGetCode404Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code404Response1()
Creates an instance | +| FakeGetCode404Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md index 388b7fb102a..82fcf7cfd43 100644 --- a/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md +++ b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakePatchCode200Response](#endpointfakepatchcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakePatchCode200Response](#endpointfakepatchcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakePatchCode200Response +public record EndpointFakePatchCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fake/patch/responses/Code200Response.md#sealedresponsebody) body, + [FakePatchCode200Response.SealedResponseBody](../../../paths/fake/patch/responses/FakePatchCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md index 0624bf61d5f..15e710e9dbb 100644 --- a/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakePatchCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakePatchCode200Response1 +public static class FakePatchCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakePatchCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md b/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md index d0fff4ec15a..a5bb926cd94 100644 --- a/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md +++ b/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakePostCode200Response](#endpointfakepostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakePostCode200Response](#endpointfakepostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakePostCode200Response +public record EndpointFakePostCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fake/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fake/post/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md index 1373119df20..d7d5349d9ab 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointCode200Response castResponse = (FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response castResponse = (FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response) response; +FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md index 61187e88e9a..7c3bbeb85dc 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response](#endpointfakeadditionalpropertieswitharrayofenumsgetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response](#endpointfakeadditionalpropertieswitharrayofenumsgetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response +public record EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md#sealedresponsebody) body, + [FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedResponseBody](../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md similarity index 74% rename from samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md index dab98f5c670..14134525aa5 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakeadditionalpropertieswitharrayofenumsGetCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakeadditionalpropertieswitharrayofenumsGetCode200Response1 +public static class FakeadditionalpropertieswitharrayofenumsGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakeadditionalpropertieswitharrayofenumsGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md index 2ec534b9e08..20a7161d87e 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -39,7 +39,7 @@ 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.Code200Response; +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; @@ -103,7 +103,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakebodywithfileschemaPutResponses.EndpointCode200Response castResponse = (FakebodywithfileschemaPutResponses.EndpointCode200Response) response; +FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response castResponse = (FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md index 82084cc23b1..a1f75ddb0d8 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakebodywithfileschemaPutCode200Response](#endpointfakebodywithfileschemaputcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakebodywithfileschemaPutCode200Response](#endpointfakebodywithfileschemaputcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakebodywithfileschemaPutCode200Response +public record EndpointFakebodywithfileschemaPutCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index ba99c486eda..a8616744be0 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Fakeb 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.Code200Response; +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; @@ -131,7 +131,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakebodywithqueryparamsPutResponses.EndpointCode200Response castResponse = (FakebodywithqueryparamsPutResponses.EndpointCode200Response) response; +FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response castResponse = (FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md index 0396debe3e5..beeea9503ca 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakebodywithqueryparamsPutCode200Response](#endpointfakebodywithqueryparamsputcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakebodywithqueryparamsPutCode200Response](#endpointfakebodywithqueryparamsputcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakebodywithqueryparamsPutCode200Response +public record EndpointFakebodywithqueryparamsPutCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index 486d74d3d19..5ecd0cf0607 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Fakec 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.Code200Response; +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; @@ -104,7 +104,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakecasesensitiveparamsPutResponses.EndpointCode200Response castResponse = (FakecasesensitiveparamsPutResponses.EndpointCode200Response) response; +FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response castResponse = (FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md index 65c378e9084..aec4af1f778 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakecasesensitiveparamsPutCode200Response](#endpointfakecasesensitiveparamsputcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakecasesensitiveparamsPutCode200Response](#endpointfakecasesensitiveparamsputcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakecasesensitiveparamsPutCode200Response +public record EndpointFakecasesensitiveparamsPutCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index b24ace14865..ba2bdc4375e 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -42,7 +42,7 @@ 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.Code200Response; +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; @@ -113,8 +113,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeclassnametestPatchResponses.EndpointCode200Response castResponse = (FakeclassnametestPatchResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakeclassnametestPatchResponses.EndpointFakeclassnametestPatchCode200Response castResponse = (FakeclassnametestPatchResponses.EndpointFakeclassnametestPatchCode200Response) response; +FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md index 60b2ffc0789..a8397a692e6 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeclassnametestPatchCode200Response](#endpointfakeclassnametestpatchcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeclassnametestPatchCode200Response](#endpointfakeclassnametestpatchcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeclassnametestPatchCode200Response +public record EndpointFakeclassnametestPatchCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakeclassnametest/patch/responses/Code200Response.md#sealedresponsebody) body, + [FakeclassnametestPatchCode200Response.SealedResponseBody](../../../paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md similarity index 77% rename from samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md index 40e3e4d6357..7ece775356e 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakeclassnametestPatchCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakeclassnametestPatchCode200Response1 +public static class FakeclassnametestPatchCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakeclassnametestPatchCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index b7d8e7d5ea2..a662dd8ed22 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -38,8 +38,8 @@ import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Fakedel 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.Code200Response; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.CodedefaultResponse; +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; @@ -101,9 +101,9 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -if (response instanceof FakedeletecoffeeidDeleteResponses.EndpointCode200Response castResponse) { +if (response instanceof FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCode200Response castResponse) { } else { - FakedeletecoffeeidDeleteResponses.EndpointCodedefaultResponse castResponse = (FakedeletecoffeeidDeleteResponses.EndpointCodedefaultResponse) response; + FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCodedefaultResponse castResponse = (FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCodedefaultResponse) response; } ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md index 25aac7bba05..a3a6107c9ae 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md @@ -10,18 +10,18 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | -| record | [EndpointCodedefaultResponse](#endpointcodedefaultresponse)
the response for default | +| record | [EndpointFakedeletecoffeeidDeleteCode200Response](#endpointfakedeletecoffeeiddeletecode200response)
the response for 200 | +| record | [EndpointFakedeletecoffeeidDeleteCodedefaultResponse](#endpointfakedeletecoffeeiddeletecodedefaultresponse)
the response for default | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response), -[EndpointCodedefaultResponse](#endpointcodedefaultresponse) +[EndpointFakedeletecoffeeidDeleteCode200Response](#endpointfakedeletecoffeeiddeletecode200response), +[EndpointFakedeletecoffeeidDeleteCodedefaultResponse](#endpointfakedeletecoffeeiddeletecodedefaultresponse) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakedeletecoffeeidDeleteCode200Response +public record EndpointFakedeletecoffeeidDeleteCode200Response( HttpResponse response, Void body, Void headers @@ -29,8 +29,8 @@ public record EndpointCode200Response( a class that stores an endpoint response -## EndpointCodedefaultResponse -public record EndpointCodedefaultResponse( +## EndpointFakedeletecoffeeidDeleteCodedefaultResponse +public record EndpointFakedeletecoffeeidDeleteCodedefaultResponse( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index 1bafd248436..b2298fcdccf 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md @@ -35,7 +35,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -85,8 +85,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakehealthGetResponses.EndpointCode200Response castResponse = (FakehealthGetResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakehealthGetResponses.EndpointFakehealthGetCode200Response castResponse = (FakehealthGetResponses.EndpointFakehealthGetCode200Response) response; +FakehealthGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakehealthGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md b/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md index cf8e6074fdb..1e9033aabea 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakehealthGetCode200Response](#endpointfakehealthgetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakehealthGetCode200Response](#endpointfakehealthgetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakehealthGetCode200Response +public record EndpointFakehealthGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakehealth/get/responses/Code200Response.md#sealedresponsebody) body, + [FakehealthGetCode200Response.SealedResponseBody](../../../paths/fakehealth/get/responses/FakehealthGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md similarity index 79% rename from samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md index aa198ccee86..5e1134ff388 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakehealthGetCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[HealthCheckResult1Boxed](../../../../components/schemas/HealthCheckResult.md#healthcheckresult1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakehealthGetCode200Response1 +public static class FakehealthGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakehealthGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md index 165167a252d..05e1bbab9d3 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.po 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.Code200Response; +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; @@ -101,7 +101,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeinlineadditionalpropertiesPostResponses.EndpointCode200Response castResponse = (FakeinlineadditionalpropertiesPostResponses.EndpointCode200Response) response; +FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response castResponse = (FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md index cb29c7bac55..604668bd4c2 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeinlineadditionalpropertiesPostCode200Response](#endpointfakeinlineadditionalpropertiespostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeinlineadditionalpropertiesPostCode200Response](#endpointfakeinlineadditionalpropertiespostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeinlineadditionalpropertiesPostCode200Response +public record EndpointFakeinlineadditionalpropertiesPostCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index ee21aab0ead..7d0f7d46c9c 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -88,11 +88,11 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeinlinecompositionPostResponses.EndpointCode200Response castResponse = (FakeinlinecompositionPostResponses.EndpointCode200Response) response; -if (castResponse.body instanceof Code200Response.ApplicationjsonResponseBody deserializedBody) { +FakeinlinecompositionPostResponses.EndpointFakeinlinecompositionPostCode200Response castResponse = (FakeinlinecompositionPostResponses.EndpointFakeinlinecompositionPostCode200Response) response; +if (castResponse.body instanceof FakeinlinecompositionPostCode200Response.ApplicationjsonResponseBody deserializedBody) { // handle deserialized body here } else { - Code200Response.MultipartformdataResponseBody deserializedBody = (Code200Response.MultipartformdataResponseBody) castResponse.body; + FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody deserializedBody = (FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody) castResponse.body; // handle deserialized body here } ``` diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md index 8b299665af1..86492517c79 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeinlinecompositionPostCode200Response](#endpointfakeinlinecompositionpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeinlinecompositionPostCode200Response](#endpointfakeinlinecompositionpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeinlinecompositionPostCode200Response +public record EndpointFakeinlinecompositionPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakeinlinecomposition/post/responses/Code200Response.md#sealedresponsebody) body, + [FakeinlinecompositionPostCode200Response.SealedResponseBody](../../../paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md similarity index 80% rename from samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md index b3b6180ef97..786ddf56087 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakeinlinecompositionPostCode200Response -public class Code200Response +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 @@ -12,13 +12,13 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| record | [Code200Response.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| record | [Code200Response.MultipartformdataResponseBody](#multipartformdataresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -101,8 +101,8 @@ A record class to store response body for contentType="multipart/form-data" | ----------------- | ---------------------- | | MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakeinlinecompositionPostCode200Response1 +public static class FakeinlinecompositionPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -110,7 +110,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakeinlinecompositionPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md index a8634a23da0..ce983dbb2d7 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakejsonformdataGetResponses.EndpointCode200Response castResponse = (FakejsonformdataGetResponses.EndpointCode200Response) response; +FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response castResponse = (FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md index a6d4bf5fad6..89354bae3a3 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakejsonformdataGetCode200Response](#endpointfakejsonformdatagetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakejsonformdataGetCode200Response](#endpointfakejsonformdatagetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakejsonformdataGetCode200Response +public record EndpointFakejsonformdataGetCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index 964607baae2..e9dc07cd671 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,7 +87,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakejsonpatchPatchResponses.EndpointCode200Response castResponse = (FakejsonpatchPatchResponses.EndpointCode200Response) response; +FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response castResponse = (FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md index ddb440a1c0b..c0ece525307 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakejsonpatchPatchCode200Response](#endpointfakejsonpatchpatchcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakejsonpatchPatchCode200Response](#endpointfakejsonpatchpatchcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakejsonpatchPatchCode200Response +public record EndpointFakejsonpatchPatchCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index d44609177c1..c084eb346a3 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakejsonwithcharsetPostResponses.EndpointCode200Response castResponse = (FakejsonwithcharsetPostResponses.EndpointCode200Response) response; -Code200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (Code200Response.Applicationjsoncharsetutf8ResponseBody) castResponse.body; +FakejsonwithcharsetPostResponses.EndpointFakejsonwithcharsetPostCode200Response castResponse = (FakejsonwithcharsetPostResponses.EndpointFakejsonwithcharsetPostCode200Response) response; +FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md index 54e56eae7f8..f47d58cd759 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakejsonwithcharsetPostCode200Response](#endpointfakejsonwithcharsetpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakejsonwithcharsetPostCode200Response](#endpointfakejsonwithcharsetpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakejsonwithcharsetPostCode200Response +public record EndpointFakejsonwithcharsetPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakejsonwithcharset/post/responses/Code200Response.md#sealedresponsebody) body, + [FakejsonwithcharsetPostCode200Response.SealedResponseBody](../../../paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md similarity index 77% rename from samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md index 72a307bd8ee..fe4f16ce9f8 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakejsonwithcharsetPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.Applicationjsoncharsetutf8ResponseBody](#applicationjsoncharsetutf8responsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json; charset | ----------------- | ---------------------- | | Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakejsonwithcharsetPostCode200Response1 +public static class FakejsonwithcharsetPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakejsonwithcharsetPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md index 90666fd875f..0a5289f905f 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakemultiplerequestbodycontenttypesPostResponses.EndpointCode200Response castResponse = (FakemultiplerequestbodycontenttypesPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakemultiplerequestbodycontenttypesPostResponses.EndpointFakemultiplerequestbodycontenttypesPostCode200Response castResponse = (FakemultiplerequestbodycontenttypesPostResponses.EndpointFakemultiplerequestbodycontenttypesPostCode200Response) response; +FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md index 26cdfd9f114..cb74256a8d0 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakemultiplerequestbodycontenttypesPostCode200Response](#endpointfakemultiplerequestbodycontenttypespostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakemultiplerequestbodycontenttypesPostCode200Response](#endpointfakemultiplerequestbodycontenttypespostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakemultiplerequestbodycontenttypesPostCode200Response +public record EndpointFakemultiplerequestbodycontenttypesPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md#sealedresponsebody) body, + [FakemultiplerequestbodycontenttypesPostCode200Response.SealedResponseBody](../../../paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md similarity index 73% rename from samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md index b2018685e0e..c6bb2c77dfd 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakemultiplerequestbodycontenttypesPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakemultiplerequestbodycontenttypesPostCode200Response1 +public static class FakemultiplerequestbodycontenttypesPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakemultiplerequestbodycontenttypesPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md index 1f82935d1c6..535d2fd309a 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md @@ -35,8 +35,8 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.Code202Response; +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; @@ -86,12 +86,12 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -if (response instanceof FakemultipleresponsebodiesGetResponses.EndpointCode200Response castResponse) { -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +if (response instanceof FakemultipleresponsebodiesGetResponses.EndpointFakemultipleresponsebodiesGetCode200Response castResponse) { +FakemultipleresponsebodiesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultipleresponsebodiesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } else { - FakemultipleresponsebodiesGetResponses.EndpointCode202Response castResponse = (FakemultipleresponsebodiesGetResponses.EndpointCode202Response) response; -Code202Response.ApplicationjsonResponseBody deserializedBody = (Code202Response.ApplicationjsonResponseBody) castResponse.body; + FakemultipleresponsebodiesGetResponses.EndpointFakemultipleresponsebodiesGetCode202Response castResponse = (FakemultipleresponsebodiesGetResponses.EndpointFakemultipleresponsebodiesGetCode202Response) response; +FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody deserializedBody = (FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } ``` diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md index 4a97ae81b21..526882905f0 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md @@ -10,31 +10,31 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | -| record | [EndpointCode202Response](#endpointcode202response)
the response for 202 | +| record | [EndpointFakemultipleresponsebodiesGetCode200Response](#endpointfakemultipleresponsebodiesgetcode200response)
the response for 200 | +| record | [EndpointFakemultipleresponsebodiesGetCode202Response](#endpointfakemultipleresponsebodiesgetcode202response)
the response for 202 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response), -[EndpointCode202Response](#endpointcode202response) +[EndpointFakemultipleresponsebodiesGetCode200Response](#endpointfakemultipleresponsebodiesgetcode200response), +[EndpointFakemultipleresponsebodiesGetCode202Response](#endpointfakemultipleresponsebodiesgetcode202response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakemultipleresponsebodiesGetCode200Response +public record EndpointFakemultipleresponsebodiesGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakemultipleresponsebodies/get/responses/Code200Response.md#sealedresponsebody) body, + [FakemultipleresponsebodiesGetCode200Response.SealedResponseBody](../../../paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response -## EndpointCode202Response -public record EndpointCode202Response( +## EndpointFakemultipleresponsebodiesGetCode202Response +public record EndpointFakemultipleresponsebodiesGetCode202Response( HttpResponse response, - [Code202Response.SealedResponseBody](../../../paths/fakemultipleresponsebodies/get/responses/Code202Response.md#sealedresponsebody) body, + [FakemultipleresponsebodiesGetCode202Response.SealedResponseBody](../../../paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md similarity index 75% rename from samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md index ce537bef9b8..43977a02fe7 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakemultipleresponsebodiesGetCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakemultipleresponsebodiesGetCode200Response1 +public static class FakemultipleresponsebodiesGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakemultipleresponsebodiesGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md similarity index 75% rename from samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md rename to samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md index b04ca6b54b6..75f30c5f0f3 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md @@ -1,6 +1,6 @@ -# Code202Response +# FakemultipleresponsebodiesGetCode202Response -public class Code202Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code202Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code202Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code202Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code202Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code202Response.Code202Response1](#code202response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code202Response1 -public static class Code202Response1
+## FakemultipleresponsebodiesGetCode202Response1 +public static class FakemultipleresponsebodiesGetCode202Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code202Response1()
Creates an instance | +| FakemultipleresponsebodiesGetCode202Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md index bc4db27210f..a8bc0a3736a 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md @@ -40,7 +40,7 @@ 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.Code200Response; +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; @@ -102,8 +102,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakemultiplesecuritiesGetResponses.EndpointCode200Response castResponse = (FakemultiplesecuritiesGetResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakemultiplesecuritiesGetResponses.EndpointFakemultiplesecuritiesGetCode200Response castResponse = (FakemultiplesecuritiesGetResponses.EndpointFakemultiplesecuritiesGetCode200Response) response; +FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md index 375de74fa27..10182841698 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakemultiplesecuritiesGetCode200Response](#endpointfakemultiplesecuritiesgetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakemultiplesecuritiesGetCode200Response](#endpointfakemultiplesecuritiesgetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakemultiplesecuritiesGetCode200Response +public record EndpointFakemultiplesecuritiesGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakemultiplesecurities/get/responses/Code200Response.md#sealedresponsebody) body, + [FakemultiplesecuritiesGetCode200Response.SealedResponseBody](../../../paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md index 36b2ff44005..fe4134ce780 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakemultiplesecuritiesGetCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakemultiplesecuritiesGetCode200Response1 +public static class FakemultiplesecuritiesGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakemultiplesecuritiesGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index 6aca3f74487..1c5da1ca101 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -36,7 +36,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -86,7 +86,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeobjinqueryGetResponses.EndpointCode200Response castResponse = (FakeobjinqueryGetResponses.EndpointCode200Response) response; +FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response castResponse = (FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md index 1ccb058c615..edf71dc70ce 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeobjinqueryGetCode200Response](#endpointfakeobjinquerygetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeobjinqueryGetCode200Response](#endpointfakeobjinquerygetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeobjinqueryGetCode200Response +public record EndpointFakeobjinqueryGetCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index f6e7cddf863..8443ecd2983 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfa 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.Code200Response; +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; @@ -112,8 +112,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -Fakeparametercollisions1ababselfabPostResponses.EndpointCode200Response castResponse = (Fakeparametercollisions1ababselfabPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +Fakeparametercollisions1ababselfabPostResponses.EndpointFakeparametercollisions1ababselfabPostCode200Response castResponse = (Fakeparametercollisions1ababselfabPostResponses.EndpointFakeparametercollisions1ababselfabPostCode200Response) response; +Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody deserializedBody = (Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md index 7cc79482fab..950f7cf471d 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeparametercollisions1ababselfabPostCode200Response](#endpointfakeparametercollisions1ababselfabpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeparametercollisions1ababselfabPostCode200Response](#endpointfakeparametercollisions1ababselfabpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeparametercollisions1ababselfabPostCode200Response +public record EndpointFakeparametercollisions1ababselfabPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md#sealedresponsebody) body, + [Fakeparametercollisions1ababselfabPostCode200Response.SealedResponseBody](../../../paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md similarity index 73% rename from samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md index 5a3dd5fda7e..2080fb2adb3 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# Fakeparametercollisions1ababselfabPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## Fakeparametercollisions1ababselfabPostCode200Response1 +public static class Fakeparametercollisions1ababselfabPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| Fakeparametercollisions1ababselfabPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md index d5f6103f4ee..f34334e87d4 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakepemcontenttypeGetResponses.EndpointCode200Response castResponse = (FakepemcontenttypeGetResponses.EndpointCode200Response) response; -Code200Response.ApplicationxpemfileResponseBody deserializedBody = (Code200Response.ApplicationxpemfileResponseBody) castResponse.body; +FakepemcontenttypeGetResponses.EndpointFakepemcontenttypeGetCode200Response castResponse = (FakepemcontenttypeGetResponses.EndpointFakepemcontenttypeGetCode200Response) response; +FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody deserializedBody = (FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md index dd0fdb5abd5..50c4184e734 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakepemcontenttypeGetCode200Response](#endpointfakepemcontenttypegetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakepemcontenttypeGetCode200Response](#endpointfakepemcontenttypegetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakepemcontenttypeGetCode200Response +public record EndpointFakepemcontenttypeGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakepemcontenttype/get/responses/Code200Response.md#sealedresponsebody) body, + [FakepemcontenttypeGetCode200Response.SealedResponseBody](../../../paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md similarity index 77% rename from samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md index cf48dd70fcb..f89129a2374 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakepemcontenttypeGetCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationxpemfileMediaType](#applicationxpemfilemediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationxpemfileResponseBody](#applicationxpemfileresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/x-pem-file" | ----------------- | ---------------------- | | ApplicationxpemfileSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakepemcontenttypeGetCode200Response1 +public static class FakepemcontenttypeGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakepemcontenttypeGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index fd2056ca06d..7cb9701d807 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -42,7 +42,7 @@ 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.Code200Response; +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; @@ -110,8 +110,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakepetiduploadimagewithrequiredfilePostResponses.EndpointCode200Response castResponse = (FakepetiduploadimagewithrequiredfilePostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakepetiduploadimagewithrequiredfilePostResponses.EndpointFakepetiduploadimagewithrequiredfilePostCode200Response castResponse = (FakepetiduploadimagewithrequiredfilePostResponses.EndpointFakepetiduploadimagewithrequiredfilePostCode200Response) response; +FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md index da90f998cd1..4c28cb1368a 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakepetiduploadimagewithrequiredfilePostCode200Response](#endpointfakepetiduploadimagewithrequiredfilepostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakepetiduploadimagewithrequiredfilePostCode200Response](#endpointfakepetiduploadimagewithrequiredfilepostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakepetiduploadimagewithrequiredfilePostCode200Response +public record EndpointFakepetiduploadimagewithrequiredfilePostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md#sealedresponsebody) body, + [FakepetiduploadimagewithrequiredfilePostCode200Response.SealedResponseBody](../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md similarity index 74% rename from samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md index fcae996d354..fecda0a9b1d 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakepetiduploadimagewithrequiredfilePostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakepetiduploadimagewithrequiredfilePostCode200Response1 +public static class FakepetiduploadimagewithrequiredfilePostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakepetiduploadimagewithrequiredfilePostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index c8c66e94c89..647150eccf6 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype 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.Code200Response; +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; @@ -98,8 +98,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakequeryparamwithjsoncontenttypeGetResponses.EndpointCode200Response castResponse = (FakequeryparamwithjsoncontenttypeGetResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakequeryparamwithjsoncontenttypeGetResponses.EndpointFakequeryparamwithjsoncontenttypeGetCode200Response castResponse = (FakequeryparamwithjsoncontenttypeGetResponses.EndpointFakequeryparamwithjsoncontenttypeGetCode200Response) response; +FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md index 944e57e1a35..8d267310181 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakequeryparamwithjsoncontenttypeGetCode200Response](#endpointfakequeryparamwithjsoncontenttypegetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakequeryparamwithjsoncontenttypeGetCode200Response](#endpointfakequeryparamwithjsoncontenttypegetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakequeryparamwithjsoncontenttypeGetCode200Response +public record EndpointFakequeryparamwithjsoncontenttypeGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md#sealedresponsebody) body, + [FakequeryparamwithjsoncontenttypeGetCode200Response.SealedResponseBody](../../../paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md similarity index 74% rename from samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md index aca65794e2c..9ec99947bbf 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakequeryparamwithjsoncontenttypeGetCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakequeryparamwithjsoncontenttypeGetCode200Response1 +public static class FakequeryparamwithjsoncontenttypeGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakequeryparamwithjsoncontenttypeGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md index 586cc49ce2a..c04eec228ec 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md @@ -35,8 +35,8 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code303Response; -import org.openapijsonschematools.client.paths.fakeredirection.get.responses.Code3XXResponse; +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; @@ -86,9 +86,9 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -if (response instanceof FakeredirectionGetResponses.EndpointCode3XXResponse castResponse) { +if (response instanceof FakeredirectionGetResponses.EndpointFakeredirectionGetCode3XXResponse castResponse) { } else { - FakeredirectionGetResponses.EndpointCode303Response castResponse = (FakeredirectionGetResponses.EndpointCode303Response) response; + FakeredirectionGetResponses.EndpointFakeredirectionGetCode303Response castResponse = (FakeredirectionGetResponses.EndpointFakeredirectionGetCode303Response) response; } ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md b/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md index 8a3f2bfbf9c..98e4c369709 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md @@ -10,18 +10,18 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode3XXResponse](#endpointcode3xxresponse)
the response for 3XX | -| record | [EndpointCode303Response](#endpointcode303response)
the response for 303 | +| record | [EndpointFakeredirectionGetCode3XXResponse](#endpointfakeredirectiongetcode3xxresponse)
the response for 3XX | +| record | [EndpointFakeredirectionGetCode303Response](#endpointfakeredirectiongetcode303response)
the response for 303 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode3XXResponse](#endpointcode3xxresponse), -[EndpointCode303Response](#endpointcode303response) +[EndpointFakeredirectionGetCode3XXResponse](#endpointfakeredirectiongetcode3xxresponse), +[EndpointFakeredirectionGetCode303Response](#endpointfakeredirectiongetcode303response) a sealed interface that stores endpoint responses -## EndpointCode3XXResponse -public record EndpointCode3XXResponse( +## EndpointFakeredirectionGetCode3XXResponse +public record EndpointFakeredirectionGetCode3XXResponse( HttpResponse response, Void body, Void headers @@ -29,8 +29,8 @@ public record EndpointCode3XXResponse( a class that stores an endpoint response -## EndpointCode303Response -public record EndpointCode303Response( +## EndpointFakeredirectionGetCode303Response +public record EndpointFakeredirectionGetCode303Response( HttpResponse response, Void body, Void headers 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 index 63d38f5671d..675f4dae7ff 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -36,7 +36,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -86,7 +86,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefobjinqueryGetResponses.EndpointCode200Response castResponse = (FakerefobjinqueryGetResponses.EndpointCode200Response) response; +FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response castResponse = (FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md index 53114d96124..304f571b661 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefobjinqueryGetCode200Response](#endpointfakerefobjinquerygetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefobjinqueryGetCode200Response](#endpointfakerefobjinquerygetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefobjinqueryGetCode200Response +public record EndpointFakerefobjinqueryGetCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index 4e3e9b86c2e..986e88828ba 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefsarraymodelPostResponses.EndpointCode200Response castResponse = (FakerefsarraymodelPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakerefsarraymodelPostResponses.EndpointFakerefsarraymodelPostCode200Response castResponse = (FakerefsarraymodelPostResponses.EndpointFakerefsarraymodelPostCode200Response) response; +FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md index afb388323ac..b6954fefd6a 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefsarraymodelPostCode200Response](#endpointfakerefsarraymodelpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefsarraymodelPostCode200Response](#endpointfakerefsarraymodelpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefsarraymodelPostCode200Response +public record EndpointFakerefsarraymodelPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakerefsarraymodel/post/responses/Code200Response.md#sealedresponsebody) body, + [FakerefsarraymodelPostCode200Response.SealedResponseBody](../../../paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md similarity index 77% rename from samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md index 485cbd98023..1642d910d0d 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakerefsarraymodelPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[AnimalFarm1Boxed](../../../../components/schemas/AnimalFarm.md#animalfarm1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakerefsarraymodelPostCode200Response1 +public static class FakerefsarraymodelPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakerefsarraymodelPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md index 5464ae71458..f08a2b9072e 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefsarrayofenumsPostResponses.EndpointCode200Response castResponse = (FakerefsarrayofenumsPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakerefsarrayofenumsPostResponses.EndpointFakerefsarrayofenumsPostCode200Response castResponse = (FakerefsarrayofenumsPostResponses.EndpointFakerefsarrayofenumsPostCode200Response) response; +FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md index 73e7d0e53a6..45c6dbc66be 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefsarrayofenumsPostCode200Response](#endpointfakerefsarrayofenumspostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefsarrayofenumsPostCode200Response](#endpointfakerefsarrayofenumspostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefsarrayofenumsPostCode200Response +public record EndpointFakerefsarrayofenumsPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakerefsarrayofenums/post/responses/Code200Response.md#sealedresponsebody) body, + [FakerefsarrayofenumsPostCode200Response.SealedResponseBody](../../../paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md index dfa9fdf6f04..0fac3a28e7a 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakerefsarrayofenumsPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakerefsarrayofenumsPostCode200Response1 +public static class FakerefsarrayofenumsPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakerefsarrayofenumsPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md index e9b6dfc6c00..9dea2879941 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefsbooleanPostResponses.EndpointCode200Response castResponse = (FakerefsbooleanPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakerefsbooleanPostResponses.EndpointFakerefsbooleanPostCode200Response castResponse = (FakerefsbooleanPostResponses.EndpointFakerefsbooleanPostCode200Response) response; +FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md index 75e059365da..6a39490ec8f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefsbooleanPostCode200Response](#endpointfakerefsbooleanpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefsbooleanPostCode200Response](#endpointfakerefsbooleanpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefsbooleanPostCode200Response +public record EndpointFakerefsbooleanPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakerefsboolean/post/responses/Code200Response.md#sealedresponsebody) body, + [FakerefsbooleanPostCode200Response.SealedResponseBody](../../../paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md similarity index 77% rename from samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md index 9929792ca0e..c85cd66f858 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakerefsbooleanPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.BooleanJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakerefsbooleanPostCode200Response1 +public static class FakerefsbooleanPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakerefsbooleanPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md index 784813bc9e9..5931375e952 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointCode200Response castResponse = (FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response castResponse = (FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response) response; +FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md index 4c24c586308..e692dc2a79f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response](#endpointfakerefscomposedoneofnumberwithvalidationspostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response](#endpointfakerefscomposedoneofnumberwithvalidationspostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response +public record EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md#sealedresponsebody) body, + [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedResponseBody](../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md similarity index 73% rename from samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md index 1145364df95..9ba53ab13ea 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakerefscomposedoneofnumberwithvalidationsPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakerefscomposedoneofnumberwithvalidationsPostCode200Response1 +public static class FakerefscomposedoneofnumberwithvalidationsPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakerefscomposedoneofnumberwithvalidationsPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md index fc926b8c616..8630a3407e9 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefsenumPostResponses.EndpointCode200Response castResponse = (FakerefsenumPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakerefsenumPostResponses.EndpointFakerefsenumPostCode200Response castResponse = (FakerefsenumPostResponses.EndpointFakerefsenumPostCode200Response) response; +FakerefsenumPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsenumPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md index 93cd6c187e9..90cd1977718 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefsenumPostCode200Response](#endpointfakerefsenumpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefsenumPostCode200Response](#endpointfakerefsenumpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefsenumPostCode200Response +public record EndpointFakerefsenumPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakerefsenum/post/responses/Code200Response.md#sealedresponsebody) body, + [FakerefsenumPostCode200Response.SealedResponseBody](../../../paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md similarity index 78% rename from samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md index 4d7406fe83c..b5f96c362a3 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakerefsenumPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[StringEnum1Boxed](../../../../components/schemas/StringEnum.md#stringenum1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakerefsenumPostCode200Response1 +public static class FakerefsenumPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakerefsenumPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md index 0755eabad53..c7434713adc 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -39,7 +39,7 @@ 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.Code200Response; +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; @@ -92,8 +92,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefsmammalPostResponses.EndpointCode200Response castResponse = (FakerefsmammalPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakerefsmammalPostResponses.EndpointFakerefsmammalPostCode200Response castResponse = (FakerefsmammalPostResponses.EndpointFakerefsmammalPostCode200Response) response; +FakerefsmammalPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsmammalPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md index 646bbc3e874..7f56fbe1cc0 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefsmammalPostCode200Response](#endpointfakerefsmammalpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefsmammalPostCode200Response](#endpointfakerefsmammalpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefsmammalPostCode200Response +public record EndpointFakerefsmammalPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakerefsmammal/post/responses/Code200Response.md#sealedresponsebody) body, + [FakerefsmammalPostCode200Response.SealedResponseBody](../../../paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md similarity index 77% rename from samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md index 306cb9c0fd4..efd2fc83196 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakerefsmammalPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[Mammal1Boxed](../../../../components/schemas/Mammal.md#mammal1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakerefsmammalPostCode200Response1 +public static class FakerefsmammalPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakerefsmammalPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md index bd5af2a4b1c..8550a6fa08c 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefsnumberPostResponses.EndpointCode200Response castResponse = (FakerefsnumberPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakerefsnumberPostResponses.EndpointFakerefsnumberPostCode200Response castResponse = (FakerefsnumberPostResponses.EndpointFakerefsnumberPostCode200Response) response; +FakerefsnumberPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsnumberPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md index 83845220399..210666926f6 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefsnumberPostCode200Response](#endpointfakerefsnumberpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefsnumberPostCode200Response](#endpointfakerefsnumberpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefsnumberPostCode200Response +public record EndpointFakerefsnumberPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakerefsnumber/post/responses/Code200Response.md#sealedresponsebody) body, + [FakerefsnumberPostCode200Response.SealedResponseBody](../../../paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md similarity index 78% rename from samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md index fa79fa5553f..872b78c9847 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakerefsnumberPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakerefsnumberPostCode200Response1 +public static class FakerefsnumberPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakerefsnumberPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md index e3d03b98a7d..a5f95f30d4d 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefsobjectmodelwithrefpropsPostResponses.EndpointCode200Response castResponse = (FakerefsobjectmodelwithrefpropsPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakerefsobjectmodelwithrefpropsPostResponses.EndpointFakerefsobjectmodelwithrefpropsPostCode200Response castResponse = (FakerefsobjectmodelwithrefpropsPostResponses.EndpointFakerefsobjectmodelwithrefpropsPostCode200Response) response; +FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md index 3b23895ab33..27e6230d866 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefsobjectmodelwithrefpropsPostCode200Response](#endpointfakerefsobjectmodelwithrefpropspostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefsobjectmodelwithrefpropsPostCode200Response](#endpointfakerefsobjectmodelwithrefpropspostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefsobjectmodelwithrefpropsPostCode200Response +public record EndpointFakerefsobjectmodelwithrefpropsPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md#sealedresponsebody) body, + [FakerefsobjectmodelwithrefpropsPostCode200Response.SealedResponseBody](../../../paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md similarity index 75% rename from samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md index ec15e24f629..920816b5528 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakerefsobjectmodelwithrefpropsPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakerefsobjectmodelwithrefpropsPostCode200Response1 +public static class FakerefsobjectmodelwithrefpropsPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakerefsobjectmodelwithrefpropsPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md index ce97f4875dc..281dc2f5419 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakerefsstringPostResponses.EndpointCode200Response castResponse = (FakerefsstringPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakerefsstringPostResponses.EndpointFakerefsstringPostCode200Response castResponse = (FakerefsstringPostResponses.EndpointFakerefsstringPostCode200Response) response; +FakerefsstringPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsstringPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md index d9c55871091..dc00e6ebc01 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakerefsstringPostCode200Response](#endpointfakerefsstringpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakerefsstringPostCode200Response](#endpointfakerefsstringpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakerefsstringPostCode200Response +public record EndpointFakerefsstringPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakerefsstring/post/responses/Code200Response.md#sealedresponsebody) body, + [FakerefsstringPostCode200Response.SealedResponseBody](../../../paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md similarity index 77% rename from samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md index 20b8d640587..d01efb93215 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakerefsstringPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakerefsstringPostCode200Response1 +public static class FakerefsstringPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakerefsstringPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md index 771d1ffcb96..3dd824ed719 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md @@ -35,7 +35,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -85,7 +85,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeresponsewithoutschemaGetResponses.EndpointCode200Response castResponse = (FakeresponsewithoutschemaGetResponses.EndpointCode200Response) response; +FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response castResponse = (FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md index 9afd6013575..0927c61dc2a 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeresponsewithoutschemaGetCode200Response](#endpointfakeresponsewithoutschemagetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeresponsewithoutschemaGetCode200Response](#endpointfakeresponsewithoutschemagetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeresponsewithoutschemaGetCode200Response +public record EndpointFakeresponsewithoutschemaGetCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md similarity index 68% rename from samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md index ec9f58ca80a..79949c77d66 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakeresponsewithoutschemaGetCode200Response -public class Code200Response +public class FakeresponsewithoutschemaGetCode200Response A class that contains necessary nested response classes - a class that extends ResponseDeserializer and is used to deserialize responses @@ -8,10 +8,10 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| static class | [FakeresponsewithoutschemaGetCode200Response.FakeresponsewithoutschemaGetCode200Response1](#fakeresponsewithoutschemagetcode200response1)
class that deserializes responses | -## Code200Response1 -public static class Code200Response1
+## FakeresponsewithoutschemaGetCode200Response1 +public static class FakeresponsewithoutschemaGetCode200Response1
extends ResponseDeserializer a class that deserializes responses @@ -19,7 +19,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakeresponsewithoutschemaGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index c14bbbebf72..350511e4469 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -38,7 +38,7 @@ import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Fakete 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.Code200Response; +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; @@ -125,7 +125,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FaketestqueryparamtersPutResponses.EndpointCode200Response castResponse = (FaketestqueryparamtersPutResponses.EndpointCode200Response) response; +FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response castResponse = (FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md index 09f6ff3c47b..2107a4d5471 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFaketestqueryparamtersPutCode200Response](#endpointfaketestqueryparamtersputcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFaketestqueryparamtersPutCode200Response](#endpointfaketestqueryparamtersputcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFaketestqueryparamtersPutCode200Response +public record EndpointFaketestqueryparamtersPutCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index cd8b5fd26a4..e22df58ac69 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.reque 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.Code200Response; +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; @@ -97,8 +97,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeuploaddownloadfilePostResponses.EndpointCode200Response castResponse = (FakeuploaddownloadfilePostResponses.EndpointCode200Response) response; -Code200Response.ApplicationoctetstreamResponseBody deserializedBody = (Code200Response.ApplicationoctetstreamResponseBody) castResponse.body; +FakeuploaddownloadfilePostResponses.EndpointFakeuploaddownloadfilePostCode200Response castResponse = (FakeuploaddownloadfilePostResponses.EndpointFakeuploaddownloadfilePostCode200Response) response; +FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody deserializedBody = (FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md index 3baf46de2c9..f5e6266e68f 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeuploaddownloadfilePostCode200Response](#endpointfakeuploaddownloadfilepostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeuploaddownloadfilePostCode200Response](#endpointfakeuploaddownloadfilepostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeuploaddownloadfilePostCode200Response +public record EndpointFakeuploaddownloadfilePostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakeuploaddownloadfile/post/responses/Code200Response.md#sealedresponsebody) body, + [FakeuploaddownloadfilePostCode200Response.SealedResponseBody](../../../paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md index b26037cabf6..3a7e22da29c 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakeuploaddownloadfilePostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationoctetstreamResponseBody](#applicationoctetstreamresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/octet-stream" | ----------------- | ---------------------- | | ApplicationoctetstreamSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakeuploaddownloadfilePostCode200Response1 +public static class FakeuploaddownloadfilePostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakeuploaddownloadfilePostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md index add47071a9c..9e62745042c 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeuploadfilePostResponses.EndpointCode200Response castResponse = (FakeuploadfilePostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakeuploadfilePostResponses.EndpointFakeuploadfilePostCode200Response castResponse = (FakeuploadfilePostResponses.EndpointFakeuploadfilePostCode200Response) response; +FakeuploadfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeuploadfilePostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md index 6eeabf8af29..19391fd23db 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeuploadfilePostCode200Response](#endpointfakeuploadfilepostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeuploadfilePostCode200Response](#endpointfakeuploadfilepostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeuploadfilePostCode200Response +public record EndpointFakeuploadfilePostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakeuploadfile/post/responses/Code200Response.md#sealedresponsebody) body, + [FakeuploadfilePostCode200Response.SealedResponseBody](../../../paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md similarity index 78% rename from samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md index 8f882ed5315..9d6a4abeeb9 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakeuploadfilePostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakeuploadfilePostCode200Response1 +public static class FakeuploadfilePostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakeuploadfilePostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md index 7584cc9b6a5..fc19a347165 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -37,7 +37,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -87,8 +87,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FakeuploadfilesPostResponses.EndpointCode200Response castResponse = (FakeuploadfilesPostResponses.EndpointCode200Response) response; -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +FakeuploadfilesPostResponses.EndpointFakeuploadfilesPostCode200Response castResponse = (FakeuploadfilesPostResponses.EndpointFakeuploadfilesPostCode200Response) response; +FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md index 9d0d511c99c..711c48ffd60 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointFakeuploadfilesPostCode200Response](#endpointfakeuploadfilespostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointFakeuploadfilesPostCode200Response](#endpointfakeuploadfilespostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakeuploadfilesPostCode200Response +public record EndpointFakeuploadfilesPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakeuploadfiles/post/responses/Code200Response.md#sealedresponsebody) body, + [FakeuploadfilesPostCode200Response.SealedResponseBody](../../../paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md similarity index 78% rename from samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md index 3afe4597cb4..995bbba0333 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakeuploadfilesPostCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakeuploadfilesPostCode200Response1 +public static class FakeuploadfilesPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakeuploadfilesPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md index 3d1c3937f5e..43e3195d078 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md @@ -35,12 +35,12 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code1XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code2XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code3XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code4XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code5XXResponse; +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; @@ -76,7 +76,7 @@ var request = new FakewildcardresponsesGet.GetRequestBuilder().build(); FakewildcardresponsesGetResponses.EndpointResponse response; try { response = apiClient.get(request); -} catch (Code4XXResponse.ResponseApiException | Code5XXResponse.ResponseApiException e) { +} catch (FakewildcardresponsesGetCode4XXResponse.ResponseApiException | FakewildcardresponsesGetCode5XXResponse.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -93,18 +93,18 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -if (response instanceof FakewildcardresponsesGetResponses.EndpointCode1XXResponse castResponse) { -Code1XXResponse.ApplicationjsonResponseBody deserializedBody = (Code1XXResponse.ApplicationjsonResponseBody) castResponse.body; +if (response instanceof FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode1XXResponse castResponse) { +FakewildcardresponsesGetCode1XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode1XXResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -} else if (response instanceof FakewildcardresponsesGetResponses.EndpointCode2XXResponse castResponse) { -Code2XXResponse.ApplicationjsonResponseBody deserializedBody = (Code2XXResponse.ApplicationjsonResponseBody) castResponse.body; +} else if (response instanceof FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode2XXResponse castResponse) { +FakewildcardresponsesGetCode2XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode2XXResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -} else if (response instanceof FakewildcardresponsesGetResponses.EndpointCode200Response castResponse) { -Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; +} else if (response instanceof FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode200Response castResponse) { +FakewildcardresponsesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } else { - FakewildcardresponsesGetResponses.EndpointCode3XXResponse castResponse = (FakewildcardresponsesGetResponses.EndpointCode3XXResponse) response; -Code3XXResponse.ApplicationjsonResponseBody deserializedBody = (Code3XXResponse.ApplicationjsonResponseBody) castResponse.body; + FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode3XXResponse castResponse = (FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode3XXResponse) response; +FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } ``` diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md index 42c16437148..9a356985f83 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md @@ -10,53 +10,53 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode1XXResponse](#endpointcode1xxresponse)
the response for 1XX | -| record | [EndpointCode2XXResponse](#endpointcode2xxresponse)
the response for 2XX | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | -| record | [EndpointCode3XXResponse](#endpointcode3xxresponse)
the response for 3XX | +| 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
-[EndpointCode1XXResponse](#endpointcode1xxresponse), -[EndpointCode2XXResponse](#endpointcode2xxresponse), -[EndpointCode200Response](#endpointcode200response), -[EndpointCode3XXResponse](#endpointcode3xxresponse) +[EndpointFakewildcardresponsesGetCode1XXResponse](#endpointfakewildcardresponsesgetcode1xxresponse), +[EndpointFakewildcardresponsesGetCode2XXResponse](#endpointfakewildcardresponsesgetcode2xxresponse), +[EndpointFakewildcardresponsesGetCode200Response](#endpointfakewildcardresponsesgetcode200response), +[EndpointFakewildcardresponsesGetCode3XXResponse](#endpointfakewildcardresponsesgetcode3xxresponse) a sealed interface that stores endpoint responses -## EndpointCode1XXResponse -public record EndpointCode1XXResponse( +## EndpointFakewildcardresponsesGetCode1XXResponse +public record EndpointFakewildcardresponsesGetCode1XXResponse( HttpResponse response, - [Code1XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/Code1XXResponse.md#sealedresponsebody) body, + [FakewildcardresponsesGetCode1XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response -## EndpointCode2XXResponse -public record EndpointCode2XXResponse( +## EndpointFakewildcardresponsesGetCode2XXResponse +public record EndpointFakewildcardresponsesGetCode2XXResponse( HttpResponse response, - [Code2XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/Code2XXResponse.md#sealedresponsebody) body, + [FakewildcardresponsesGetCode2XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointFakewildcardresponsesGetCode200Response +public record EndpointFakewildcardresponsesGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/Code200Response.md#sealedresponsebody) body, + [FakewildcardresponsesGetCode200Response.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response -## EndpointCode3XXResponse -public record EndpointCode3XXResponse( +## EndpointFakewildcardresponsesGetCode3XXResponse +public record EndpointFakewildcardresponsesGetCode3XXResponse( HttpResponse response, - [Code3XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/Code3XXResponse.md#sealedresponsebody) body, + [FakewildcardresponsesGetCode3XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md index b2d2e8f2a08..23636633dee 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md @@ -1,6 +1,6 @@ -# Code1XXResponse +# FakewildcardresponsesGetCode1XXResponse -public class Code1XXResponse +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code1XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code1XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code1XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code1XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code1XXResponse.Code1XXResponse1](#code1xxresponse1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code1XXResponse1 -public static class Code1XXResponse1
+## FakewildcardresponsesGetCode1XXResponse1 +public static class FakewildcardresponsesGetCode1XXResponse1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code1XXResponse1()
Creates an instance | +| FakewildcardresponsesGetCode1XXResponse1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md index 6263ecaf4ac..fa140c39b02 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# FakewildcardresponsesGetCode200Response -public class Code200Response +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## FakewildcardresponsesGetCode200Response1 +public static class FakewildcardresponsesGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| FakewildcardresponsesGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md index 53389585be9..dc0e68874f8 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md @@ -1,6 +1,6 @@ -# Code2XXResponse +# FakewildcardresponsesGetCode2XXResponse -public class Code2XXResponse +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code2XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code2XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code2XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code2XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code2XXResponse.Code2XXResponse1](#code2xxresponse1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code2XXResponse1 -public static class Code2XXResponse1
+## FakewildcardresponsesGetCode2XXResponse1 +public static class FakewildcardresponsesGetCode2XXResponse1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code2XXResponse1()
Creates an instance | +| FakewildcardresponsesGetCode2XXResponse1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md index d939aac9315..bb7f367daab 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md @@ -1,6 +1,6 @@ -# Code3XXResponse +# FakewildcardresponsesGetCode3XXResponse -public class Code3XXResponse +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code3XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code3XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code3XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code3XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code3XXResponse.Code3XXResponse1](#code3xxresponse1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code3XXResponse1 -public static class Code3XXResponse1
+## FakewildcardresponsesGetCode3XXResponse1 +public static class FakewildcardresponsesGetCode3XXResponse1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code3XXResponse1()
Creates an instance | +| FakewildcardresponsesGetCode3XXResponse1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md index 2950af0a0fa..a8fab3d2cf1 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md @@ -1,6 +1,6 @@ -# Code4XXResponse +# FakewildcardresponsesGetCode4XXResponse -public class Code4XXResponse +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code4XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code4XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code4XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code4XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code4XXResponse.Code4XXResponse1](#code4xxresponse1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code4XXResponse1 -public static class Code4XXResponse1
+## FakewildcardresponsesGetCode4XXResponse1 +public static class FakewildcardresponsesGetCode4XXResponse1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code4XXResponse1()
Creates an instance | +| FakewildcardresponsesGetCode4XXResponse1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md similarity index 76% rename from samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse.md rename to samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md index 960ef4a79ad..4b06440cd06 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md @@ -1,6 +1,6 @@ -# Code5XXResponse +# FakewildcardresponsesGetCode5XXResponse -public class Code5XXResponse +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code5XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code5XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code5XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code5XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code5XXResponse.Code5XXResponse1](#code5xxresponse1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code5XXResponse1 -public static class Code5XXResponse1
+## FakewildcardresponsesGetCode5XXResponse1 +public static class FakewildcardresponsesGetCode5XXResponse1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code5XXResponse1()
Creates an instance | +| FakewildcardresponsesGetCode5XXResponse1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/foo/FooGet.md b/samples/client/petstore/java/docs/paths/foo/FooGet.md index 961dd1feeae..eacbb37b3ab 100644 --- a/samples/client/petstore/java/docs/paths/foo/FooGet.md +++ b/samples/client/petstore/java/docs/paths/foo/FooGet.md @@ -34,7 +34,7 @@ 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.CodedefaultResponse; +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; @@ -84,8 +84,8 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -FooGetResponses.EndpointCodedefaultResponse castResponse = (FooGetResponses.EndpointCodedefaultResponse) response; -CodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (CodedefaultResponse.ApplicationjsonResponseBody) castResponse.body; +FooGetResponses.EndpointFooGetCodedefaultResponse castResponse = (FooGetResponses.EndpointFooGetCodedefaultResponse) response; +FooGetCodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (FooGetCodedefaultResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md b/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md index ab751e738b1..5bf9bb7e45b 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md +++ b/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCodedefaultResponse](#endpointcodedefaultresponse)
the response for default | +| record | [EndpointFooGetCodedefaultResponse](#endpointfoogetcodedefaultresponse)
the response for default | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCodedefaultResponse](#endpointcodedefaultresponse) +[EndpointFooGetCodedefaultResponse](#endpointfoogetcodedefaultresponse) a sealed interface that stores endpoint responses -## EndpointCodedefaultResponse -public record EndpointCodedefaultResponse( +## EndpointFooGetCodedefaultResponse +public record EndpointFooGetCodedefaultResponse( HttpResponse response, - [CodedefaultResponse.SealedResponseBody](../../../paths/foo/get/responses/CodedefaultResponse.md#sealedresponsebody) body, + [FooGetCodedefaultResponse.SealedResponseBody](../../../paths/foo/get/responses/FooGetCodedefaultResponse.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse.md b/samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md similarity index 80% rename from samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse.md rename to samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md index 3b6ba5ec6ac..5a45e3ba6d9 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse.md +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md @@ -1,6 +1,6 @@ -# CodedefaultResponse +# FooGetCodedefaultResponse -public class CodedefaultResponse +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 @@ -12,11 +12,11 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [CodedefaultResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [CodedefaultResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [CodedefaultResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [CodedefaultResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [CodedefaultResponse.CodedefaultResponse1](#codedefaultresponse1)
class that deserializes responses | +| 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
@@ -65,8 +65,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | -## CodedefaultResponse1 -public static class CodedefaultResponse1
+## FooGetCodedefaultResponse1 +public static class FooGetCodedefaultResponse1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -74,7 +74,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| CodedefaultResponse1()
Creates an instance | +| FooGetCodedefaultResponse1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md index a59ea0be9a2..c3c3925ecf2 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPost.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -44,8 +44,8 @@ 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.Code200Response; -import org.openapijsonschematools.client.paths.pet.post.responses.Code405Response; +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; @@ -133,7 +133,7 @@ var request = new PetPost.PostRequestBuilder() PetPostResponses.EndpointResponse response; try { response = apiClient.post(request); -} catch (Code405Response.ResponseApiException e) { +} catch (PetPostCode405Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -150,7 +150,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -PetPostResponses.EndpointCode200Response castResponse = (PetPostResponses.EndpointCode200Response) response; +PetPostResponses.EndpointPetPostCode200Response castResponse = (PetPostResponses.EndpointPetPostCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/pet/PetPut.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md index ed5018943db..92e217caa50 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPut.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -43,9 +43,9 @@ 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.Code400Response; -import org.openapijsonschematools.client.paths.pet.put.responses.Code404Response; -import org.openapijsonschematools.client.paths.pet.put.responses.Code405Response; +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; @@ -130,7 +130,7 @@ var request = new PetPut.PutRequestBuilder() Void response; try { response = apiClient.put(request); -} catch (Code400Response.ResponseApiException | Code404Response.ResponseApiException | Code405Response.ResponseApiException e) { +} catch (PetPutCode400Response.ResponseApiException | PetPutCode404Response.ResponseApiException | PetPutCode405Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { diff --git a/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md b/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md index 8a40ed2783b..d44b66c86e5 100644 --- a/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md +++ b/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointPetPostCode200Response](#endpointpetpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointPetPostCode200Response](#endpointpetpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointPetPostCode200Response +public record EndpointPetPostCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/pet/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/pet/post/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/Code405Response.md b/samples/client/petstore/java/docs/paths/pet/post/responses/Code405Response.md deleted file mode 100644 index 0c371e4143d..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/responses/Code405Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code405Response - -public class Code405Response - -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 | [Code405Response.Code405Response1](#code405response1)
class that deserializes responses | - -## Code405Response1 -public static class Code405Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code405Response1()
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/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/fakeredirection/get/responses/Code3XXResponse.md b/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md similarity index 73% rename from samples/client/petstore/java/docs/paths/fakeredirection/get/responses/Code3XXResponse.md rename to samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md index 613a79b19bf..6125c5e2063 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/Code3XXResponse.md +++ b/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md @@ -1,6 +1,6 @@ -# Code3XXResponse +# PetPostCode405Response -public class Code3XXResponse +public class PetPostCode405Response A class that contains necessary nested response classes - a class that extends ResponseDeserializer and is used to deserialize responses @@ -8,10 +8,10 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Code3XXResponse.Code3XXResponse1](#code3xxresponse1)
class that deserializes responses | +| static class | [PetPostCode405Response.PetPostCode405Response1](#petpostcode405response1)
class that deserializes responses | -## Code3XXResponse1 -public static class Code3XXResponse1
+## PetPostCode405Response1 +public static class PetPostCode405Response1
extends ResponseDeserializer a class that deserializes responses @@ -19,7 +19,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code3XXResponse1()
Creates an instance | +| PetPostCode405Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/pet/put/responses/Code400Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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/Code404Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/Code404Response.md deleted file mode 100644 index ee00cd369a7..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/responses/Code404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code404Response - -public class Code404Response - -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 | [Code404Response.Code404Response1](#code404response1)
class that deserializes responses | - -## Code404Response1 -public static class Code404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code404Response1()
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/Code405Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/Code405Response.md deleted file mode 100644 index 0c371e4143d..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/responses/Code405Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code405Response - -public class Code405Response - -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 | [Code405Response.Code405Response1](#code405response1)
class that deserializes responses | - -## Code405Response1 -public static class Code405Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code405Response1()
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/responses/Code404Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md similarity index 74% rename from samples/client/petstore/java/docs/paths/fake/post/responses/Code404Response.md rename to samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md index ee00cd369a7..d44abff6808 100644 --- a/samples/client/petstore/java/docs/paths/fake/post/responses/Code404Response.md +++ b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md @@ -1,6 +1,6 @@ -# Code404Response +# PetPutCode400Response -public class Code404Response +public class PetPutCode400Response A class that contains necessary nested response classes - a class that extends ResponseDeserializer and is used to deserialize responses @@ -8,10 +8,10 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Code404Response.Code404Response1](#code404response1)
class that deserializes responses | +| static class | [PetPutCode400Response.PetPutCode400Response1](#petputcode400response1)
class that deserializes responses | -## Code404Response1 -public static class Code404Response1
+## PetPutCode400Response1 +public static class PetPutCode400Response1
extends ResponseDeserializer a class that deserializes responses @@ -19,7 +19,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code404Response1()
Creates an instance | +| PetPutCode400Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.md b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md similarity index 74% rename from samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.md rename to samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md index c2dd3d15c8b..9643229862a 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.md +++ b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md @@ -1,6 +1,6 @@ -# CodedefaultResponse +# PetPutCode404Response -public class CodedefaultResponse +public class PetPutCode404Response A class that contains necessary nested response classes - a class that extends ResponseDeserializer and is used to deserialize responses @@ -8,10 +8,10 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [CodedefaultResponse.CodedefaultResponse1](#codedefaultresponse1)
class that deserializes responses | +| static class | [PetPutCode404Response.PetPutCode404Response1](#petputcode404response1)
class that deserializes responses | -## CodedefaultResponse1 -public static class CodedefaultResponse1
+## PetPutCode404Response1 +public static class PetPutCode404Response1
extends ResponseDeserializer a class that deserializes responses @@ -19,7 +19,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| CodedefaultResponse1()
Creates an instance | +| PetPutCode404Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/Code303Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md similarity index 74% rename from samples/client/petstore/java/docs/paths/fakeredirection/get/responses/Code303Response.md rename to samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md index 9fe8de9f05b..51dbe825682 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/Code303Response.md +++ b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md @@ -1,6 +1,6 @@ -# Code303Response +# PetPutCode405Response -public class Code303Response +public class PetPutCode405Response A class that contains necessary nested response classes - a class that extends ResponseDeserializer and is used to deserialize responses @@ -8,10 +8,10 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [Code303Response.Code303Response1](#code303response1)
class that deserializes responses | +| static class | [PetPutCode405Response.PetPutCode405Response1](#petputcode405response1)
class that deserializes responses | -## Code303Response1 -public static class Code303Response1
+## PetPutCode405Response1 +public static class PetPutCode405Response1
extends ResponseDeserializer a class that deserializes responses @@ -19,7 +19,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code303Response1()
Creates an instance | +| PetPutCode405Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index edf395e711c..cdfd53f5265 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -42,8 +42,8 @@ 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.Code200Response; -import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.Code400Response; +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; @@ -103,7 +103,7 @@ var request = new PetfindbystatusGet.GetRequestBuilder() PetfindbystatusGetResponses.EndpointResponse response; try { response = apiClient.get(request); -} catch (Code400Response.ResponseApiException e) { +} catch (PetfindbystatusGetCode400Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -120,7 +120,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -PetfindbystatusGetResponses.EndpointCode200Response castResponse = (PetfindbystatusGetResponses.EndpointCode200Response) response; +PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response castResponse = (PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response) response; } ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md index d20ef89dac1..79ad32a583c 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointPetfindbystatusGetCode200Response](#endpointpetfindbystatusgetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointPetfindbystatusGetCode200Response](#endpointpetfindbystatusgetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointPetfindbystatusGetCode200Response +public record EndpointPetfindbystatusGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/petfindbystatus/get/responses/Code200Response.md#sealedresponsebody) body, + [PetfindbystatusGetCode200Response.SealedResponseBody](../../../paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/Code200Response.md deleted file mode 100644 index 0e7affa0f68..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/Code400Response.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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/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/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index f24881f9c6f..4edd276cc1c 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -42,8 +42,8 @@ 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.Code200Response; -import org.openapijsonschematools.client.paths.petfindbytags.get.responses.Code400Response; +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; @@ -100,7 +100,7 @@ var request = new PetfindbytagsGet.GetRequestBuilder() PetfindbytagsGetResponses.EndpointResponse response; try { response = apiClient.get(request); -} catch (Code400Response.ResponseApiException e) { +} catch (PetfindbytagsGetCode400Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -117,7 +117,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -PetfindbytagsGetResponses.EndpointCode200Response castResponse = (PetfindbytagsGetResponses.EndpointCode200Response) response; +PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response castResponse = (PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response) response; } ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md index 2cd230e2afe..fcdbec4dfbe 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointPetfindbytagsGetCode200Response](#endpointpetfindbytagsgetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointPetfindbytagsGetCode200Response](#endpointpetfindbytagsgetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointPetfindbytagsGetCode200Response +public record EndpointPetfindbytagsGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/petfindbytags/get/responses/Code200Response.md#sealedresponsebody) body, + [PetfindbytagsGetCode200Response.SealedResponseBody](../../../paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/Code200Response.md deleted file mode 100644 index c28458ec7e5..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/Code400Response.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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/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/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index 97d98fae0d0..8aa0c7f8e30 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -43,7 +43,7 @@ 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.Code400Response; +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; @@ -100,7 +100,7 @@ var request = new PetpetidDelete.DeleteRequestBuilder() Void response; try { response = apiClient.delete(request); -} catch (Code400Response.ResponseApiException e) { +} catch (PetpetidDeleteCode400Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index c57cb31991b..c22416e2776 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -41,9 +41,9 @@ 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.Code200Response; -import org.openapijsonschematools.client.paths.petpetid.get.responses.Code400Response; -import org.openapijsonschematools.client.paths.petpetid.get.responses.Code404Response; +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; @@ -100,7 +100,7 @@ var request = new PetpetidGet.GetRequestBuilder() PetpetidGetResponses.EndpointResponse response; try { response = apiClient.get(request); -} catch (Code400Response.ResponseApiException | Code404Response.ResponseApiException e) { +} catch (PetpetidGetCode400Response.ResponseApiException | PetpetidGetCode404Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -117,11 +117,11 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -PetpetidGetResponses.EndpointCode200Response castResponse = (PetpetidGetResponses.EndpointCode200Response) response; -if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { +PetpetidGetResponses.EndpointPetpetidGetCode200Response castResponse = (PetpetidGetResponses.EndpointPetpetidGetCode200Response) response; +if (castResponse.body instanceof PetpetidGetCode200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { - Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; + PetpetidGetCode200Response.ApplicationjsonResponseBody deserializedBody = (PetpetidGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } ``` diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index c0487ebce9b..ff6890e06d0 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -43,7 +43,7 @@ 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.Code405Response; +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; @@ -100,7 +100,7 @@ var request = new PetpetidPost.PostRequestBuilder() Void response; try { response = apiClient.post(request); -} catch (Code405Response.ResponseApiException e) { +} catch (PetpetidPostCode405Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/responses/Code400Response.md b/samples/client/petstore/java/docs/paths/petpetid/delete/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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/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/get/PetpetidGetResponses.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md index f91d5df91ca..12cc6f49fef 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointPetpetidGetCode200Response](#endpointpetpetidgetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointPetpetidGetCode200Response](#endpointpetpetidgetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointPetpetidGetCode200Response +public record EndpointPetpetidGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/petpetid/get/responses/Code200Response.md#sealedresponsebody) body, + [PetpetidGetCode200Response.SealedResponseBody](../../../paths/petpetid/get/responses/PetpetidGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code400Response.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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/Code404Response.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code404Response.md deleted file mode 100644 index ee00cd369a7..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code404Response - -public class Code404Response - -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 | [Code404Response.Code404Response1](#code404response1)
class that deserializes responses | - -## Code404Response1 -public static class Code404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code404Response1()
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.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md similarity index 81% rename from samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md index 933410bb71e..45e02b46ba7 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# PetpetidGetCode200Response -public class Code200Response +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 @@ -12,13 +12,13 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -101,8 +101,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## PetpetidGetCode200Response1 +public static class PetpetidGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -110,7 +110,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| PetpetidGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | 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/post/responses/Code405Response.md b/samples/client/petstore/java/docs/paths/petpetid/post/responses/Code405Response.md deleted file mode 100644 index 0c371e4143d..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/responses/Code405Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code405Response - -public class Code405Response - -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 | [Code405Response.Code405Response1](#code405response1)
class that deserializes responses | - -## Code405Response1 -public static class Code405Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code405Response1()
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/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/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index d4a56445d73..d460129644e 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -42,7 +42,7 @@ 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.Code200Response; +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; @@ -111,7 +111,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -PetpetiduploadimagePostResponses.EndpointCode200Response castResponse = (PetpetiduploadimagePostResponses.EndpointCode200Response) response; +PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response castResponse = (PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response) response; } ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md index d51644024d5..b961dc0e86b 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointPetpetiduploadimagePostCode200Response](#endpointpetpetiduploadimagepostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointPetpetiduploadimagePostCode200Response](#endpointpetpetiduploadimagepostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointPetpetiduploadimagePostCode200Response +public record EndpointPetpetiduploadimagePostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/petpetiduploadimage/post/responses/Code200Response.md#sealedresponsebody) body, + [PetpetiduploadimagePostCode200Response.SealedResponseBody](../../../paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md#sealedresponsebody) body, [SuccessWithJsonApiResponseHeadersSchema.SuccessWithJsonApiResponseHeadersSchemaMap](../../../components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.md#successwithjsonapiresponseheadersschemamap) headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/Code200Response.md deleted file mode 100644 index 024be23487f..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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/solidus/SolidusGet.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md index 7187e0d97c7..ca5fec9c41e 100644 --- a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md +++ b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md @@ -35,7 +35,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.Code200Response; +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; @@ -85,7 +85,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -SolidusGetResponses.EndpointCode200Response castResponse = (SolidusGetResponses.EndpointCode200Response) response; +SolidusGetResponses.EndpointSolidusGetCode200Response castResponse = (SolidusGetResponses.EndpointSolidusGetCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md b/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md index 73e4a043723..70dc55d02a0 100644 --- a/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md +++ b/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointSolidusGetCode200Response](#endpointsolidusgetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointSolidusGetCode200Response](#endpointsolidusgetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointSolidusGetCode200Response +public record EndpointSolidusGetCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/solidus/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/solidus/get/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/solidus/get/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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 index cee8b7eb4f2..f32fc482e2d 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md @@ -38,7 +38,7 @@ 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.Code200Response; +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; @@ -98,7 +98,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -StoreinventoryGetResponses.EndpointCode200Response castResponse = (StoreinventoryGetResponses.EndpointCode200Response) response; +StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response castResponse = (StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response) response; } ``` ### Constructor Summary diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md index fe1806f4060..9f064be5958 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointStoreinventoryGetCode200Response](#endpointstoreinventorygetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointStoreinventoryGetCode200Response](#endpointstoreinventorygetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointStoreinventoryGetCode200Response +public record EndpointStoreinventoryGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/storeinventory/get/responses/Code200Response.md#sealedresponsebody) body, + [StoreinventoryGetCode200Response.SealedResponseBody](../../../paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md#sealedresponsebody) body, [SuccessInlineContentAndHeaderHeadersSchema.SuccessInlineContentAndHeaderHeadersSchemaMap](../../../components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.md#successinlinecontentandheaderheadersschemamap) headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/storeinventory/get/responses/Code200Response.md deleted file mode 100644 index fa53032832a..00000000000 --- a/samples/client/petstore/java/docs/paths/storeinventory/get/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/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/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md index 9043e1c0f42..efb9264ed70 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md +++ b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md @@ -39,8 +39,8 @@ 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.Code200Response; -import org.openapijsonschematools.client.paths.storeorder.post.responses.Code400Response; +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; @@ -98,7 +98,7 @@ var request = new StoreorderPost.PostRequestBuilder() StoreorderPostResponses.EndpointResponse response; try { response = apiClient.post(request); -} catch (Code400Response.ResponseApiException e) { +} catch (StoreorderPostCode400Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -115,11 +115,11 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -StoreorderPostResponses.EndpointCode200Response castResponse = (StoreorderPostResponses.EndpointCode200Response) response; -if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { +StoreorderPostResponses.EndpointStoreorderPostCode200Response castResponse = (StoreorderPostResponses.EndpointStoreorderPostCode200Response) response; +if (castResponse.body instanceof StoreorderPostCode200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { - Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; + StoreorderPostCode200Response.ApplicationjsonResponseBody deserializedBody = (StoreorderPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } ``` diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md index 2040cb7141a..48c83e88df4 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointStoreorderPostCode200Response](#endpointstoreorderpostcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointStoreorderPostCode200Response](#endpointstoreorderpostcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointStoreorderPostCode200Response +public record EndpointStoreorderPostCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/storeorder/post/responses/Code200Response.md#sealedresponsebody) body, + [StoreorderPostCode200Response.SealedResponseBody](../../../paths/storeorder/post/responses/StoreorderPostCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code400Response.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md similarity index 80% rename from samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md index 27b46f7c421..0f5af758ef6 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# StoreorderPostCode200Response -public class Code200Response +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 @@ -12,13 +12,13 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -101,8 +101,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## StoreorderPostCode200Response1 +public static class StoreorderPostCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -110,7 +110,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| StoreorderPostCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | 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/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index 516d373abd1..41b9335edd4 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -38,8 +38,8 @@ import org.openapijsonschematools.client.paths.storeorderorderid.delete.Storeord 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.Code400Response; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.Code404Response; +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; @@ -87,7 +87,7 @@ var request = new StoreorderorderidDelete.DeleteRequestBuilder() Void response; try { response = apiClient.delete(request); -} catch (Code400Response.ResponseApiException | Code404Response.ResponseApiException e) { +} catch (StoreorderorderidDeleteCode400Response.ResponseApiException | StoreorderorderidDeleteCode404Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index e24d385721e..4bf97dc0261 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -38,9 +38,9 @@ import org.openapijsonschematools.client.paths.storeorderorderid.get.Storeordero 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.Code200Response; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code400Response; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code404Response; +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; @@ -88,7 +88,7 @@ var request = new StoreorderorderidGet.GetRequestBuilder() StoreorderorderidGetResponses.EndpointResponse response; try { response = apiClient.get(request); -} catch (Code400Response.ResponseApiException | Code404Response.ResponseApiException e) { +} catch (StoreorderorderidGetCode400Response.ResponseApiException | StoreorderorderidGetCode404Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -105,11 +105,11 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -StoreorderorderidGetResponses.EndpointCode200Response castResponse = (StoreorderorderidGetResponses.EndpointCode200Response) response; -if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { +StoreorderorderidGetResponses.EndpointStoreorderorderidGetCode200Response castResponse = (StoreorderorderidGetResponses.EndpointStoreorderorderidGetCode200Response) response; +if (castResponse.body instanceof StoreorderorderidGetCode200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { - Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; + StoreorderorderidGetCode200Response.ApplicationjsonResponseBody deserializedBody = (StoreorderorderidGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } ``` diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/Code400Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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/Code404Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/Code404Response.md deleted file mode 100644 index ee00cd369a7..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/Code404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code404Response - -public class Code404Response - -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 | [Code404Response.Code404Response1](#code404response1)
class that deserializes responses | - -## Code404Response1 -public static class Code404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code404Response1()
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/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/StoreorderorderidGetResponses.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md index e1b54511549..307f363c7c5 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointStoreorderorderidGetCode200Response](#endpointstoreorderorderidgetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointStoreorderorderidGetCode200Response](#endpointstoreorderorderidgetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointStoreorderorderidGetCode200Response +public record EndpointStoreorderorderidGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/storeorderorderid/get/responses/Code200Response.md#sealedresponsebody) body, + [StoreorderorderidGetCode200Response.SealedResponseBody](../../../paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code400Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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/Code404Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code404Response.md deleted file mode 100644 index ee00cd369a7..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code404Response - -public class Code404Response - -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 | [Code404Response.Code404Response1](#code404response1)
class that deserializes responses | - -## Code404Response1 -public static class Code404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code404Response1()
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.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md similarity index 79% rename from samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md index e1f587a4eb6..fe8b3a5b61d 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# StoreorderorderidGetCode200Response -public class Code200Response +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 @@ -12,13 +12,13 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -101,8 +101,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## StoreorderorderidGetCode200Response1 +public static class StoreorderorderidGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -110,7 +110,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| StoreorderorderidGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | 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/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md index 56e3e6e3583..664cd1ebac2 100644 --- a/samples/client/petstore/java/docs/paths/user/UserPost.md +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -39,7 +39,7 @@ 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.CodedefaultResponse; +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; @@ -117,7 +117,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -UserPostResponses.EndpointCodedefaultResponse castResponse = (UserPostResponses.EndpointCodedefaultResponse) response; +UserPostResponses.EndpointUserPostCodedefaultResponse castResponse = (UserPostResponses.EndpointUserPostCodedefaultResponse) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md b/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md index d8dc81f6d8d..50ad602e72f 100644 --- a/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md +++ b/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCodedefaultResponse](#endpointcodedefaultresponse)
the response for default | +| record | [EndpointUserPostCodedefaultResponse](#endpointuserpostcodedefaultresponse)
the response for default | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCodedefaultResponse](#endpointcodedefaultresponse) +[EndpointUserPostCodedefaultResponse](#endpointuserpostcodedefaultresponse) a sealed interface that stores endpoint responses -## EndpointCodedefaultResponse -public record EndpointCodedefaultResponse( +## EndpointUserPostCodedefaultResponse +public record EndpointUserPostCodedefaultResponse( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/user/post/responses/CodedefaultResponse.md b/samples/client/petstore/java/docs/paths/user/post/responses/CodedefaultResponse.md deleted file mode 100644 index c2dd3d15c8b..00000000000 --- a/samples/client/petstore/java/docs/paths/user/post/responses/CodedefaultResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# CodedefaultResponse - -public class CodedefaultResponse - -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 | [CodedefaultResponse.CodedefaultResponse1](#codedefaultresponse1)
class that deserializes responses | - -## CodedefaultResponse1 -public static class CodedefaultResponse1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CodedefaultResponse1()
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/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 index b294be9b1a2..b6ce7c339c3 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.components.requestbodies.userarray.cont 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.CodedefaultResponse; +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; @@ -139,7 +139,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -UsercreatewitharrayPostResponses.EndpointCodedefaultResponse castResponse = (UsercreatewitharrayPostResponses.EndpointCodedefaultResponse) response; +UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse castResponse = (UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md index c39ef5dab37..c50e9f127c5 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCodedefaultResponse](#endpointcodedefaultresponse)
the response for default | +| record | [EndpointUsercreatewitharrayPostCodedefaultResponse](#endpointusercreatewitharraypostcodedefaultresponse)
the response for default | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCodedefaultResponse](#endpointcodedefaultresponse) +[EndpointUsercreatewitharrayPostCodedefaultResponse](#endpointusercreatewitharraypostcodedefaultresponse) a sealed interface that stores endpoint responses -## EndpointCodedefaultResponse -public record EndpointCodedefaultResponse( +## EndpointUsercreatewitharrayPostCodedefaultResponse +public record EndpointUsercreatewitharrayPostCodedefaultResponse( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/CodedefaultResponse.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/CodedefaultResponse.md deleted file mode 100644 index c2dd3d15c8b..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/CodedefaultResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# CodedefaultResponse - -public class CodedefaultResponse - -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 | [CodedefaultResponse.CodedefaultResponse1](#codedefaultresponse1)
class that deserializes responses | - -## CodedefaultResponse1 -public static class CodedefaultResponse1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CodedefaultResponse1()
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/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 index ad790a1d115..45efa4d01c3 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.components.requestbodies.userarray.cont 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.CodedefaultResponse; +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; @@ -139,7 +139,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -UsercreatewithlistPostResponses.EndpointCodedefaultResponse castResponse = (UsercreatewithlistPostResponses.EndpointCodedefaultResponse) response; +UsercreatewithlistPostResponses.EndpointUsercreatewithlistPostCodedefaultResponse castResponse = (UsercreatewithlistPostResponses.EndpointUsercreatewithlistPostCodedefaultResponse) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md index 98c216c4969..05dc4b47005 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCodedefaultResponse](#endpointcodedefaultresponse)
the response for default | +| record | [EndpointUsercreatewithlistPostCodedefaultResponse](#endpointusercreatewithlistpostcodedefaultresponse)
the response for default | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCodedefaultResponse](#endpointcodedefaultresponse) +[EndpointUsercreatewithlistPostCodedefaultResponse](#endpointusercreatewithlistpostcodedefaultresponse) a sealed interface that stores endpoint responses -## EndpointCodedefaultResponse -public record EndpointCodedefaultResponse( +## EndpointUsercreatewithlistPostCodedefaultResponse +public record EndpointUsercreatewithlistPostCodedefaultResponse( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/CodedefaultResponse.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/CodedefaultResponse.md deleted file mode 100644 index c2dd3d15c8b..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/CodedefaultResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# CodedefaultResponse - -public class CodedefaultResponse - -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 | [CodedefaultResponse.CodedefaultResponse1](#codedefaultresponse1)
class that deserializes responses | - -## CodedefaultResponse1 -public static class CodedefaultResponse1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CodedefaultResponse1()
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/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 index d7858b69cc2..6396d553f50 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -38,9 +38,9 @@ import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryPa 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.Code200Response; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.Code200ResponseHeadersSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.Code400Response; +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; @@ -90,7 +90,7 @@ var request = new UserloginGet.GetRequestBuilder() UserloginGetResponses.EndpointResponse response; try { response = apiClient.get(request); -} catch (Code400Response.ResponseApiException e) { +} catch (UserloginGetCode400Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -107,11 +107,11 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -UserloginGetResponses.EndpointCode200Response castResponse = (UserloginGetResponses.EndpointCode200Response) response; -if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { +UserloginGetResponses.EndpointUserloginGetCode200Response castResponse = (UserloginGetResponses.EndpointUserloginGetCode200Response) response; +if (castResponse.body instanceof UserloginGetCode200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { - Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; + UserloginGetCode200Response.ApplicationjsonResponseBody deserializedBody = (UserloginGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } ``` diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md index 0359b64abd5..2bec55a9491 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointUserloginGetCode200Response](#endpointuserlogingetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointUserloginGetCode200Response](#endpointuserlogingetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointUserloginGetCode200Response +public record EndpointUserloginGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/userlogin/get/responses/Code200Response.md#sealedresponsebody) body, - [Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap](../../../paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md#code200responseheadersschemamap) headers -) implements EndpointResponse, ApiResponse
+ [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/responses/Code400Response.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md similarity index 71% rename from samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md index 0b06d1bdf31..14b2b09ab89 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# UserloginGetCode200Response -public class Code200Response +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 @@ -12,13 +12,13 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -101,16 +101,16 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), [Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap](../../../../paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md#code200responseheadersschemamap), [SealedMediaType](#sealedmediatype)> +## 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 | | --------------------------- | -| Code200Response1()
Creates an instance | +| UserloginGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | @@ -120,4 +120,4 @@ a class that deserializes responses ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), [Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap](../../../../paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md#code200responseheadersschemamap)> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | +| 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/Code200ResponseHeadersSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md deleted file mode 100644 index 508abc4d1a2..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md +++ /dev/null @@ -1,389 +0,0 @@ -# Code200ResponseHeadersSchema -public class Code200ResponseHeadersSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), 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 | [Code200ResponseHeadersSchema.Code200ResponseHeadersSchema1Boxed](#code200responseheadersschema1boxed)
sealed interface for validated payloads | -| record | [Code200ResponseHeadersSchema.Code200ResponseHeadersSchema1BoxedMap](#code200responseheadersschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [Code200ResponseHeadersSchema.Code200ResponseHeadersSchema1](#code200responseheadersschema1)
schema class | -| static class | [Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMapBuilder](#code200responseheadersschemamapbuilder)
builder for Map payloads | -| static class | [Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap](#code200responseheadersschemamap)
output class for Map payloads | -| sealed interface | [Code200ResponseHeadersSchema.Code200ResponseAdditionalPropertiesBoxed](#code200responseadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Code200ResponseHeadersSchema.Code200ResponseAdditionalPropertiesBoxedVoid](#code200responseadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Code200ResponseHeadersSchema.Code200ResponseAdditionalPropertiesBoxedBoolean](#code200responseadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Code200ResponseHeadersSchema.Code200ResponseAdditionalPropertiesBoxedNumber](#code200responseadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Code200ResponseHeadersSchema.Code200ResponseAdditionalPropertiesBoxedString](#code200responseadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Code200ResponseHeadersSchema.Code200ResponseAdditionalPropertiesBoxedList](#code200responseadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Code200ResponseHeadersSchema.Code200ResponseAdditionalPropertiesBoxedMap](#code200responseadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Code200ResponseHeadersSchema.Code200ResponseAdditionalProperties](#code200responseadditionalproperties)
schema class | - -## Code200ResponseHeadersSchema1Boxed -public sealed interface Code200ResponseHeadersSchema1Boxed
-permits
-[Code200ResponseHeadersSchema1BoxedMap](#code200responseheadersschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Code200ResponseHeadersSchema1BoxedMap -public record Code200ResponseHeadersSchema1BoxedMap
-implements [Code200ResponseHeadersSchema1Boxed](#code200responseheadersschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseHeadersSchema1BoxedMap([Code200ResponseHeadersSchemaMap](#code200responseheadersschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Code200ResponseHeadersSchemaMap](#code200responseheadersschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Code200ResponseHeadersSchema1 -public static class Code200ResponseHeadersSchema1
-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.Code200ResponseHeadersSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap validatedPayload = - Code200ResponseHeadersSchema.Code200ResponseHeadersSchema1.validate( - new Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMapBuilder() - .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 = [Code200ResponseAdditionalProperties.class](#code200responseadditionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Code200ResponseHeadersSchemaMap](#code200responseheadersschemamap) | validate([Map<?, ?>](#code200responseheadersschemamapbuilder) arg, SchemaConfiguration configuration) | -| [Code200ResponseHeadersSchema1BoxedMap](#code200responseheadersschema1boxedmap) | validateAndBox([Map<?, ?>](#code200responseheadersschemamapbuilder) arg, SchemaConfiguration configuration) | -| [Code200ResponseHeadersSchema1Boxed](#code200responseheadersschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Code200ResponseHeadersSchemaMap000Builder -public class Code200ResponseHeadersSchemaMap000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseHeadersSchemaMap000Builder(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 | -| [Code200ResponseHeadersSchemaMap000Builder](#code200responseheadersschemamap000builder) | xHyphenMinusExpiresHyphenMinusAfter(String value) | -| [Code200ResponseHeadersSchemaMap000Builder](#code200responseheadersschemamap000builder) | numberHeader(String value) | - -## Code200ResponseHeadersSchemaMap001Builder -public class Code200ResponseHeadersSchemaMap001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseHeadersSchemaMap001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Code200ResponseHeadersSchemaMap000Builder](#code200responseheadersschemamap000builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | - -## Code200ResponseHeadersSchemaMap010Builder -public class Code200ResponseHeadersSchemaMap010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseHeadersSchemaMap010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Code200ResponseHeadersSchemaMap000Builder](#code200responseheadersschemamap000builder) | int32(int value) | -| [Code200ResponseHeadersSchemaMap000Builder](#code200responseheadersschemamap000builder) | int32(float value) | - -## Code200ResponseHeadersSchemaMap011Builder -public class Code200ResponseHeadersSchemaMap011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseHeadersSchemaMap011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Code200ResponseHeadersSchemaMap001Builder](#code200responseheadersschemamap001builder) | int32(int value) | -| [Code200ResponseHeadersSchemaMap001Builder](#code200responseheadersschemamap001builder) | int32(float value) | -| [Code200ResponseHeadersSchemaMap010Builder](#code200responseheadersschemamap010builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | - -## Code200ResponseHeadersSchemaMap100Builder -public class Code200ResponseHeadersSchemaMap100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseHeadersSchemaMap100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Code200ResponseHeadersSchemaMap000Builder](#code200responseheadersschemamap000builder) | xHyphenMinusRateHyphenMinusLimit(int value) | -| [Code200ResponseHeadersSchemaMap000Builder](#code200responseheadersschemamap000builder) | xHyphenMinusRateHyphenMinusLimit(float value) | - -## Code200ResponseHeadersSchemaMap101Builder -public class Code200ResponseHeadersSchemaMap101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseHeadersSchemaMap101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Code200ResponseHeadersSchemaMap001Builder](#code200responseheadersschemamap001builder) | xHyphenMinusRateHyphenMinusLimit(int value) | -| [Code200ResponseHeadersSchemaMap001Builder](#code200responseheadersschemamap001builder) | xHyphenMinusRateHyphenMinusLimit(float value) | -| [Code200ResponseHeadersSchemaMap100Builder](#code200responseheadersschemamap100builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | - -## Code200ResponseHeadersSchemaMap110Builder -public class Code200ResponseHeadersSchemaMap110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseHeadersSchemaMap110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Code200ResponseHeadersSchemaMap010Builder](#code200responseheadersschemamap010builder) | xHyphenMinusRateHyphenMinusLimit(int value) | -| [Code200ResponseHeadersSchemaMap010Builder](#code200responseheadersschemamap010builder) | xHyphenMinusRateHyphenMinusLimit(float value) | -| [Code200ResponseHeadersSchemaMap100Builder](#code200responseheadersschemamap100builder) | int32(int value) | -| [Code200ResponseHeadersSchemaMap100Builder](#code200responseheadersschemamap100builder) | int32(float value) | - -## Code200ResponseHeadersSchemaMapBuilder -public class Code200ResponseHeadersSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseHeadersSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Code200ResponseHeadersSchemaMap011Builder](#code200responseheadersschemamap011builder) | xHyphenMinusRateHyphenMinusLimit(int value) | -| [Code200ResponseHeadersSchemaMap011Builder](#code200responseheadersschemamap011builder) | xHyphenMinusRateHyphenMinusLimit(float value) | -| [Code200ResponseHeadersSchemaMap101Builder](#code200responseheadersschemamap101builder) | int32(int value) | -| [Code200ResponseHeadersSchemaMap101Builder](#code200responseheadersschemamap101builder) | int32(float value) | -| [Code200ResponseHeadersSchemaMap110Builder](#code200responseheadersschemamap110builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | - -## Code200ResponseHeadersSchemaMap -public static class Code200ResponseHeadersSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [Code200ResponseHeadersSchemaMap](#code200responseheadersschemamap) | of([Map](#code200responseheadersschemamapbuilder) 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"], | - -## Code200ResponseAdditionalPropertiesBoxed -public sealed interface Code200ResponseAdditionalPropertiesBoxed
-permits
-[Code200ResponseAdditionalPropertiesBoxedVoid](#code200responseadditionalpropertiesboxedvoid), -[Code200ResponseAdditionalPropertiesBoxedBoolean](#code200responseadditionalpropertiesboxedboolean), -[Code200ResponseAdditionalPropertiesBoxedNumber](#code200responseadditionalpropertiesboxednumber), -[Code200ResponseAdditionalPropertiesBoxedString](#code200responseadditionalpropertiesboxedstring), -[Code200ResponseAdditionalPropertiesBoxedList](#code200responseadditionalpropertiesboxedlist), -[Code200ResponseAdditionalPropertiesBoxedMap](#code200responseadditionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Code200ResponseAdditionalPropertiesBoxedVoid -public record Code200ResponseAdditionalPropertiesBoxedVoid
-implements [Code200ResponseAdditionalPropertiesBoxed](#code200responseadditionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseAdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Code200ResponseAdditionalPropertiesBoxedBoolean -public record Code200ResponseAdditionalPropertiesBoxedBoolean
-implements [Code200ResponseAdditionalPropertiesBoxed](#code200responseadditionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseAdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Code200ResponseAdditionalPropertiesBoxedNumber -public record Code200ResponseAdditionalPropertiesBoxedNumber
-implements [Code200ResponseAdditionalPropertiesBoxed](#code200responseadditionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseAdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Code200ResponseAdditionalPropertiesBoxedString -public record Code200ResponseAdditionalPropertiesBoxedString
-implements [Code200ResponseAdditionalPropertiesBoxed](#code200responseadditionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseAdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Code200ResponseAdditionalPropertiesBoxedList -public record Code200ResponseAdditionalPropertiesBoxedList
-implements [Code200ResponseAdditionalPropertiesBoxed](#code200responseadditionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseAdditionalPropertiesBoxedList(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 | - -## Code200ResponseAdditionalPropertiesBoxedMap -public record Code200ResponseAdditionalPropertiesBoxedMap
-implements [Code200ResponseAdditionalPropertiesBoxed](#code200responseadditionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code200ResponseAdditionalPropertiesBoxedMap(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 | - -## Code200ResponseAdditionalProperties -public static class Code200ResponseAdditionalProperties
-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/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/userlogout/UserlogoutGet.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md index 66d4dcdb083..2ea3eac94f9 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md +++ b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md @@ -35,7 +35,7 @@ import org.openapijsonschematools.client.RootServerInfo; 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.CodedefaultResponse; +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; @@ -85,7 +85,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -UserlogoutGetResponses.EndpointCodedefaultResponse castResponse = (UserlogoutGetResponses.EndpointCodedefaultResponse) response; +UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse castResponse = (UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md b/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md index 1f225c66ac5..794cda537cb 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md +++ b/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCodedefaultResponse](#endpointcodedefaultresponse)
the response for default | +| record | [EndpointUserlogoutGetCodedefaultResponse](#endpointuserlogoutgetcodedefaultresponse)
the response for default | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCodedefaultResponse](#endpointcodedefaultresponse) +[EndpointUserlogoutGetCodedefaultResponse](#endpointuserlogoutgetcodedefaultresponse) a sealed interface that stores endpoint responses -## EndpointCodedefaultResponse -public record EndpointCodedefaultResponse( +## EndpointUserlogoutGetCodedefaultResponse +public record EndpointUserlogoutGetCodedefaultResponse( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/userlogout/get/responses/CodedefaultResponse.md b/samples/client/petstore/java/docs/paths/userlogout/get/responses/CodedefaultResponse.md deleted file mode 100644 index 6a7ba49992d..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogout/get/responses/CodedefaultResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# CodedefaultResponse - -public class CodedefaultResponse 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 | [CodedefaultResponse.CodedefaultResponse1](#codedefaultresponse1)
class that deserializes responses | - -## CodedefaultResponse1 -public static class CodedefaultResponse1 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/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 index b95e93e6a97..fbdba6fb391 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -38,8 +38,8 @@ import org.openapijsonschematools.client.paths.userusername.delete.UserusernameD 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.Code200Response; -import org.openapijsonschematools.client.paths.userusername.delete.responses.Code404Response; +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; @@ -87,7 +87,7 @@ var request = new UserusernameDelete.DeleteRequestBuilder() UserusernameDeleteResponses.EndpointResponse response; try { response = apiClient.delete(request); -} catch (Code404Response.ResponseApiException e) { +} catch (UserusernameDeleteCode404Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -104,7 +104,7 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -UserusernameDeleteResponses.EndpointCode200Response castResponse = (UserusernameDeleteResponses.EndpointCode200Response) response; +UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response castResponse = (UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response) response; ``` ### Constructor Summary | Constructor and Description | diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index 0d0837c7ac1..5bc6077d82e 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -38,9 +38,9 @@ import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetP 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.Code200Response; -import org.openapijsonschematools.client.paths.userusername.get.responses.Code400Response; -import org.openapijsonschematools.client.paths.userusername.get.responses.Code404Response; +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; @@ -88,7 +88,7 @@ var request = new UserusernameGet.GetRequestBuilder() UserusernameGetResponses.EndpointResponse response; try { response = apiClient.get(request); -} catch (Code400Response.ResponseApiException | Code404Response.ResponseApiException e) { +} catch (UserusernameGetCode400Response.ResponseApiException | UserusernameGetCode404Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { @@ -105,11 +105,11 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -UserusernameGetResponses.EndpointCode200Response castResponse = (UserusernameGetResponses.EndpointCode200Response) response; -if (castResponse.body instanceof Code200Response.ApplicationxmlResponseBody deserializedBody) { +UserusernameGetResponses.EndpointUserusernameGetCode200Response castResponse = (UserusernameGetResponses.EndpointUserusernameGetCode200Response) response; +if (castResponse.body instanceof UserusernameGetCode200Response.ApplicationxmlResponseBody deserializedBody) { // handle deserialized body here } else { - Code200Response.ApplicationjsonResponseBody deserializedBody = (Code200Response.ApplicationjsonResponseBody) castResponse.body; + UserusernameGetCode200Response.ApplicationjsonResponseBody deserializedBody = (UserusernameGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } ``` diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index 4531c33840d..6ca5f51ec61 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -42,8 +42,8 @@ import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutP 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.Code400Response; -import org.openapijsonschematools.client.paths.userusername.put.responses.Code404Response; +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; @@ -118,7 +118,7 @@ var request = new UserusernamePut.PutRequestBuilder() Void response; try { response = apiClient.put(request); -} catch (Code400Response.ResponseApiException | Code404Response.ResponseApiException e) { +} catch (UserusernamePutCode400Response.ResponseApiException | UserusernamePutCode404Response.ResponseApiException e) { // server returned an error response defined in the openapi document throw e; } catch (ApiException e) { diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md index 420e675f171..b753c79b8d9 100644 --- a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md +++ b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md @@ -10,16 +10,16 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointUserusernameDeleteCode200Response](#endpointuserusernamedeletecode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointUserusernameDeleteCode200Response](#endpointuserusernamedeletecode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointUserusernameDeleteCode200Response +public record EndpointUserusernameDeleteCode200Response( HttpResponse response, Void body, Void headers diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/userusername/delete/responses/Code200Response.md deleted file mode 100644 index e89c75b2e12..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/delete/responses/Code200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# Code200Response - -public class Code200Response 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 | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | - -## Code200Response1 -public static class Code200Response1 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/Code404Response.md b/samples/client/petstore/java/docs/paths/userusername/delete/responses/Code404Response.md deleted file mode 100644 index ee00cd369a7..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/delete/responses/Code404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code404Response - -public class Code404Response - -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 | [Code404Response.Code404Response1](#code404response1)
class that deserializes responses | - -## Code404Response1 -public static class Code404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code404Response1()
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/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/UserusernameGetResponses.md b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md index 2acd38f0a4b..25ade8993d1 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md @@ -10,20 +10,20 @@ A class that contains necessary responses classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCode200Response](#endpointcode200response)
the response for 200 | +| record | [EndpointUserusernameGetCode200Response](#endpointuserusernamegetcode200response)
the response for 200 | ## EndpointResponse public sealed interface EndpointResponse permits
-[EndpointCode200Response](#endpointcode200response) +[EndpointUserusernameGetCode200Response](#endpointuserusernamegetcode200response) a sealed interface that stores endpoint responses -## EndpointCode200Response -public record EndpointCode200Response( +## EndpointUserusernameGetCode200Response +public record EndpointUserusernameGetCode200Response( HttpResponse response, - [Code200Response.SealedResponseBody](../../../paths/userusername/get/responses/Code200Response.md#sealedresponsebody) body, + [UserusernameGetCode200Response.SealedResponseBody](../../../paths/userusername/get/responses/UserusernameGetCode200Response.md#sealedresponsebody) body, Void headers -) implements EndpointResponse, ApiResponse
+) implements EndpointResponse, ApiResponse
a class that stores an endpoint response diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code400Response.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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/Code404Response.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code404Response.md deleted file mode 100644 index ee00cd369a7..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code404Response - -public class Code404Response - -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 | [Code404Response.Code404Response1](#code404response1)
class that deserializes responses | - -## Code404Response1 -public static class Code404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code404Response1()
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.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md similarity index 80% rename from samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response.md rename to samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md index 0096aa4e61d..cb23ae18478 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md @@ -1,6 +1,6 @@ -# Code200Response +# UserusernameGetCode200Response -public class Code200Response +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 @@ -12,13 +12,13 @@ A class that contains necessary nested response classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| sealed interface | [Code200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Code200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [Code200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Code200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Code200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [Code200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Code200Response.Code200Response1](#code200response1)
class that deserializes responses | +| 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
@@ -101,8 +101,8 @@ A record class to store response body for contentType="application/json" | ----------------- | ---------------------- | | ApplicationjsonSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | -## Code200Response1 -public static class Code200Response1
+## UserusernameGetCode200Response1 +public static class UserusernameGetCode200Response1
extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -110,7 +110,7 @@ a class that deserializes responses ### Constructor Summary | Constructor and Description | | --------------------------- | -| Code200Response1()
Creates an instance | +| UserusernameGetCode200Response1()
Creates an instance | ### Field Summary | Modifier and Type | Field and Description | 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/put/responses/Code400Response.md b/samples/client/petstore/java/docs/paths/userusername/put/responses/Code400Response.md deleted file mode 100644 index 6f3af2df6d2..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/responses/Code400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code400Response - -public class Code400Response - -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 | [Code400Response.Code400Response1](#code400response1)
class that deserializes responses | - -## Code400Response1 -public static class Code400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code400Response1()
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/Code404Response.md b/samples/client/petstore/java/docs/paths/userusername/put/responses/Code404Response.md deleted file mode 100644 index ee00cd369a7..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/responses/Code404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# Code404Response - -public class Code404Response - -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 | [Code404Response.Code404Response1](#code404response1)
class that deserializes responses | - -## Code404Response1 -public static class Code404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Code404Response1()
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/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/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 index 9698bf5a703..a5f6eda3357 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.anotherfakedummy.patch; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class AnotherfakedummyPatchResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointAnotherfakedummyPatchCode200Response {} - public record EndpointCode200Response( + public record EndpointAnotherfakedummyPatchCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + AnotherfakedummyPatchCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusAnotherfakedummyPatchCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusAnotherfakedummyPatchCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusAnotherfakedummyPatchCode200ResponseDeserializer castDeserializer = (StatusAnotherfakedummyPatchCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + 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/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java index b01a73ce335..41c15430532 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class AnotherfakedummyPatchCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class AnotherfakedummyPatchCode200Response1 extends ResponseDeserializer { + public AnotherfakedummyPatchCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 22a8e56a9e8..f5f9155ead2 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.commonparamsubdir.delete; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class CommonparamsubdirDeleteResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointCommonparamsubdirDeleteCode200Response {} - public record EndpointCode200Response( + public record EndpointCommonparamsubdirDeleteCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusCommonparamsubdirDeleteCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusCommonparamsubdirDeleteCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusCommonparamsubdirDeleteCode200ResponseDeserializer castDeserializer = (StatusCommonparamsubdirDeleteCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointCommonparamsubdirDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java deleted file mode 100644 index d91fc8bb9f7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/CommonparamsubdirGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java index 2f747bbf54b..ec3fa0f14d3 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.commonparamsubdir.get; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class CommonparamsubdirGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointCommonparamsubdirGetCode200Response {} - public record EndpointCode200Response( + public record EndpointCommonparamsubdirGetCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusCommonparamsubdirGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusCommonparamsubdirGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusCommonparamsubdirGetCode200ResponseDeserializer castDeserializer = (StatusCommonparamsubdirGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointCommonparamsubdirGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java deleted file mode 100644 index 92947e99863..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/post/CommonparamsubdirPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java index fe8f2a5e46a..b0290f6651b 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.commonparamsubdir.post; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class CommonparamsubdirPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointCommonparamsubdirPostCode200Response {} - public record EndpointCode200Response( + public record EndpointCommonparamsubdirPostCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusCommonparamsubdirPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusCommonparamsubdirPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusCommonparamsubdirPostCode200ResponseDeserializer castDeserializer = (StatusCommonparamsubdirPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointCommonparamsubdirPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java deleted file mode 100644 index 81cdc60a4cd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.post.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/delete/FakeDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java index df054653228..6482372de63 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fake.delete; -import org.openapijsonschematools.client.paths.fake.delete.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeDeleteResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeDeleteCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeDeleteCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeDeleteCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeDeleteCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeDeleteCode200ResponseDeserializer castDeserializer = (StatusFakeDeleteCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java similarity index 50% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java index 5094d251738..a9caf9729de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} +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/get/FakeGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java index 5e5dac19f7b..ff46bc65ce0 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fake.get; -import org.openapijsonschematools.client.paths.fake.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.fake.get.responses.Code404Response; +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; @@ -15,28 +15,28 @@ import java.util.AbstractMap; public class FakeGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeGetCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode404ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeGetCode200ResponseDeserializer, StatusFakeGetCode404ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusFakeGetCode200ResponseDeserializer extends FakeGetCode200Response.FakeGetCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusFakeGetCode404ResponseDeserializer()) ); } @@ -49,13 +49,13 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusFakeGetCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } else { - StatusCode404ResponseDeserializer castDeserializer = (StatusCode404ResponseDeserializer) statusCodeDeserializer; + StatusFakeGetCode404ResponseDeserializer castDeserializer = (StatusFakeGetCode404ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code404Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java similarity index 50% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java index 4c45da77e38..5787a626bfc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} +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/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java index 34af3ea2174..7ed1e9138ab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code404Response { +public class FakeGetCode404Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.MapJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code404Response1 extends ResponseDeserializer { - public Code404Response1() { + public static class FakeGetCode404Response1 extends ResponseDeserializer { + public FakeGetCode404Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index a5d94a82299..bdd4f5eaf64 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fake.patch; -import org.openapijsonschematools.client.paths.fake.patch.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakePatchResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakePatchCode200Response {} - public record EndpointCode200Response( + public record EndpointFakePatchCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakePatchCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakePatchCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakePatchCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakePatchCode200ResponseDeserializer castDeserializer = (StatusFakePatchCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + 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/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java index 9e368e1e05c..8e41f415025 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakePatchCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakePatchCode200Response1 extends ResponseDeserializer { + public FakePatchCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 8e505c5da84..407615511d5 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fake.post; -import org.openapijsonschematools.client.paths.fake.post.responses.Code200Response; -import org.openapijsonschematools.client.paths.fake.post.responses.Code404Response; +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; @@ -15,28 +15,28 @@ import java.util.AbstractMap; public class FakePostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakePostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakePostCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode404ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakePostCode200ResponseDeserializer, StatusFakePostCode404ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusFakePostCode200ResponseDeserializer extends FakePostCode200Response.FakePostCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakePostCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusFakePostCode404ResponseDeserializer()) ); } @@ -49,13 +49,13 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusFakePostCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } else { - StatusCode404ResponseDeserializer castDeserializer = (StatusCode404ResponseDeserializer) statusCodeDeserializer; + StatusFakePostCode404ResponseDeserializer castDeserializer = (StatusFakePostCode404ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code404Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java similarity index 50% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java index e04e39b1f73..1806211707c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} +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/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java index 4e6abc094e0..7da6740e34e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code404Response { +public class FakePostCode404Response { - public static class Code404Response1 extends ResponseDeserializer { - public Code404Response1() { + public static class FakePostCode404Response1 extends ResponseDeserializer { + public FakePostCode404Response1() { super( MapUtils.makeMap( ) 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 index 0e0c576c903..072cf25c108 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeadditionalpropertieswitharrayofenumsGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer castDeserializer = (StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java index 0a17d85055f..1e32b3e20ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakeadditionalpropertieswitharrayofenumsGetCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakeadditionalpropertieswitharrayofenumsGetCode200Response1 extends ResponseDeserializer { + public FakeadditionalpropertieswitharrayofenumsGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 7451f85ae22..afcdcd2bd1a 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakebodywithfileschema.put; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakebodywithfileschemaPutResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakebodywithfileschemaPutCode200Response {} - public record EndpointCode200Response( + public record EndpointFakebodywithfileschemaPutCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakebodywithfileschemaPutCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakebodywithfileschemaPutCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakebodywithfileschemaPutCode200ResponseDeserializer castDeserializer = (StatusFakebodywithfileschemaPutCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakebodywithfileschemaPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java deleted file mode 100644 index 71a49134261..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/put/FakebodywithqueryparamsPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java index e7af87d7721..ad26d9ceb92 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakebodywithqueryparamsPutResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakebodywithqueryparamsPutCode200Response {} - public record EndpointCode200Response( + public record EndpointFakebodywithqueryparamsPutCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakebodywithqueryparamsPutCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakebodywithqueryparamsPutCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakebodywithqueryparamsPutCode200ResponseDeserializer castDeserializer = (StatusFakebodywithqueryparamsPutCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakebodywithqueryparamsPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java deleted file mode 100644 index 4370c358e93..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/put/FakecasesensitiveparamsPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java index 52ab88e29c6..4c72b6a0a50 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakecasesensitiveparamsPutResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakecasesensitiveparamsPutCode200Response {} - public record EndpointCode200Response( + public record EndpointFakecasesensitiveparamsPutCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakecasesensitiveparamsPutCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakecasesensitiveparamsPutCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakecasesensitiveparamsPutCode200ResponseDeserializer castDeserializer = (StatusFakecasesensitiveparamsPutCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakecasesensitiveparamsPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java deleted file mode 100644 index 3b79dac0ee0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/patch/FakeclassnametestPatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java index e3549ca88d6..4d9a18471e8 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeclassnametest.patch; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeclassnametestPatchResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeclassnametestPatchCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeclassnametestPatchCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakeclassnametestPatchCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeclassnametestPatchCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeclassnametestPatchCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeclassnametestPatchCode200ResponseDeserializer castDeserializer = (StatusFakeclassnametestPatchCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeclassnametestPatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java index 89d40f66041..93fdc3843da 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakeclassnametestPatchCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakeclassnametestPatchCode200Response1 extends ResponseDeserializer { + public FakeclassnametestPatchCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index e55d8ef7555..d58495afcb2 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.Code200Response; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.CodedefaultResponse; +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; @@ -15,47 +15,47 @@ import java.util.AbstractMap; public class FakedeletecoffeeidDeleteResponses { - public sealed interface EndpointResponse permits EndpointCode200Response, EndpointCodedefaultResponse {} + public sealed interface EndpointResponse permits EndpointFakedeletecoffeeidDeleteCode200Response, EndpointFakedeletecoffeeidDeleteCodedefaultResponse {} - public record EndpointCode200Response( + public record EndpointFakedeletecoffeeidDeleteCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public record EndpointCodedefaultResponse( + public record EndpointFakedeletecoffeeidDeleteCodedefaultResponse( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer extends FakedeletecoffeeidDeleteCode200Response.FakedeletecoffeeidDeleteCode200Response1 implements StatusCodeResponseDeserializer { } public static final class FakedeletecoffeeidDeleteResponses1 implements ResponsesDeserializer { private final Map statusCodeToResponseDeserializer; - private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; + private final FakedeletecoffeeidDeleteCodedefaultResponse.FakedeletecoffeeidDeleteCodedefaultResponse1 defaultResponseDeserializer; public FakedeletecoffeeidDeleteResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer()) ); - this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); + 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) { - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer castDeserializer = (StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakedeletecoffeeidDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakedeletecoffeeidDeleteCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java deleted file mode 100644 index 29983a94575..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java similarity index 86% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java index 1035e7e22d1..2a5713c9f0d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class CodedefaultResponse { +public class FakedeletecoffeeidDeleteCodedefaultResponse { - public static class CodedefaultResponse1 extends ResponseDeserializer { - public CodedefaultResponse1() { + public static class FakedeletecoffeeidDeleteCodedefaultResponse1 extends ResponseDeserializer { + public FakedeletecoffeeidDeleteCodedefaultResponse1() { super( MapUtils.makeMap( ) 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 index a8e7a507b81..e926fe15b5a 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakehealth.get; -import org.openapijsonschematools.client.paths.fakehealth.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakehealthGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakehealthGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakehealthGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakehealthGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakehealthGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakehealthGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakehealthGetCode200ResponseDeserializer castDeserializer = (StatusFakehealthGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + 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/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java index 1de1e383c20..1d60e2ef28d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakehealthGetCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.HealthCheckResult1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakehealthGetCode200Response1 extends ResponseDeserializer { + public FakehealthGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 3e4c0925598..2fa1bf18e40 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeinlineadditionalpropertiesPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeinlineadditionalpropertiesPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeinlineadditionalpropertiesPostCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer castDeserializer = (StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeinlineadditionalpropertiesPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java deleted file mode 100644 index ce64200111e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/post/FakeinlinecompositionPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java index d25ee082c13..a1799f4cc66 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeinlinecompositionPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeinlinecompositionPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeinlinecompositionPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakeinlinecompositionPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeinlinecompositionPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeinlinecompositionPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeinlinecompositionPostCode200ResponseDeserializer castDeserializer = (StatusFakeinlinecompositionPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeinlinecompositionPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java index d8bdbbf90a7..11da1d76b4a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakeinlinecompositionPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -41,8 +41,8 @@ public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } public record MultipartformdataResponseBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakeinlinecompositionPostCode200Response1 extends ResponseDeserializer { + public FakeinlinecompositionPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), 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 index 3716b7bfd85..eb89e916396 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakejsonformdata.get; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakejsonformdataGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakejsonformdataGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakejsonformdataGetCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakejsonformdataGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakejsonformdataGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakejsonformdataGetCode200ResponseDeserializer castDeserializer = (StatusFakejsonformdataGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakejsonformdataGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java deleted file mode 100644 index 7973ff46632..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonformdata.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/patch/FakejsonpatchPatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java index b3c6bc9ceed..f1699dcc589 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakejsonpatch.patch; -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakejsonpatchPatchResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakejsonpatchPatchCode200Response {} - public record EndpointCode200Response( + public record EndpointFakejsonpatchPatchCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakejsonpatchPatchCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakejsonpatchPatchCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakejsonpatchPatchCode200ResponseDeserializer castDeserializer = (StatusFakejsonpatchPatchCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakejsonpatchPatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java deleted file mode 100644 index 261e52cbb39..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/post/FakejsonwithcharsetPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java index c0a29dc3246..f695b513166 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakejsonwithcharset.post; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakejsonwithcharsetPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakejsonwithcharsetPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakejsonwithcharsetPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakejsonwithcharsetPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakejsonwithcharsetPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakejsonwithcharsetPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakejsonwithcharsetPostCode200ResponseDeserializer castDeserializer = (StatusFakejsonwithcharsetPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakejsonwithcharsetPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java index d1c8cfba01a..71a35408633 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakejsonwithcharsetPostCode200Response { public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaType {} public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits Applicationjsoncharsetutf8ResponseBody {} public record Applicationjsoncharsetutf8ResponseBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakejsonwithcharsetPostCode200Response1 extends ResponseDeserializer { + public FakejsonwithcharsetPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new Applicationjsoncharsetutf8MediaType()) 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 index dc86e7c0e80..fedc18554a6 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakemultiplerequestbodycontenttypesPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakemultiplerequestbodycontenttypesPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakemultiplerequestbodycontenttypesPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakemultiplerequestbodycontenttypesPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer castDeserializer = (StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakemultiplerequestbodycontenttypesPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java index 30659d828c6..31866cb56d6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakemultiplerequestbodycontenttypesPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakemultiplerequestbodycontenttypesPostCode200Response1 extends ResponseDeserializer { + public FakemultiplerequestbodycontenttypesPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 700bc23b9f3..328ed565f80 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.Code202Response; +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; @@ -15,35 +15,35 @@ import java.util.AbstractMap; public class FakemultipleresponsebodiesGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response, EndpointCode202Response {} + public sealed interface EndpointResponse permits EndpointFakemultipleresponsebodiesGetCode200Response, EndpointFakemultipleresponsebodiesGetCode202Response {} - public record EndpointCode200Response( + public record EndpointFakemultipleresponsebodiesGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakemultipleresponsebodiesGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public record EndpointCode202Response( + public record EndpointFakemultipleresponsebodiesGetCode202Response( HttpResponse response, - Code202Response.SealedResponseBody body, + FakemultipleresponsebodiesGetCode202Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode202ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer, StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer extends FakemultipleresponsebodiesGetCode200Response.FakemultipleresponsebodiesGetCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode202ResponseDeserializer extends Code202Response.Code202Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("202", new StatusCode202ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("202", new StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer()) ); } @@ -56,13 +56,13 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakemultipleresponsebodiesGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } else { - StatusCode202ResponseDeserializer castDeserializer = (StatusCode202ResponseDeserializer) statusCodeDeserializer; + StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer castDeserializer = (StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode202Response(response, deserializedResponse.body(), deserializedResponse.headers()); + 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/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java index 567d4148b74..aa57e66abcc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakemultipleresponsebodiesGetCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakemultipleresponsebodiesGetCode200Response1 extends ResponseDeserializer { + public FakemultipleresponsebodiesGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java index 2783f09c99f..059d4284e0d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/Code202Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code202Response { +public class FakemultipleresponsebodiesGetCode202Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code202Response1 extends ResponseDeserializer { - public Code202Response1() { + public static class FakemultipleresponsebodiesGetCode202Response1 extends ResponseDeserializer { + public FakemultipleresponsebodiesGetCode202Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 67afb058043..c10a56a840a 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakemultiplesecurities.get; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakemultiplesecuritiesGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakemultiplesecuritiesGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakemultiplesecuritiesGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakemultiplesecuritiesGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakemultiplesecuritiesGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakemultiplesecuritiesGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakemultiplesecuritiesGetCode200ResponseDeserializer castDeserializer = (StatusFakemultiplesecuritiesGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakemultiplesecuritiesGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java index 14964db98f2..06c0ea10767 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakemultiplesecuritiesGetCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakemultiplesecuritiesGetCode200Response1 extends ResponseDeserializer { + public FakemultiplesecuritiesGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 1ee76ea412f..f3b4fc6711e 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeobjinquery.get; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeobjinqueryGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeobjinqueryGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeobjinqueryGetCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeobjinqueryGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeobjinqueryGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeobjinqueryGetCode200ResponseDeserializer castDeserializer = (StatusFakeobjinqueryGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeobjinqueryGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java deleted file mode 100644 index 3e317ea4671..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeobjinquery.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/post/Fakeparametercollisions1ababselfabPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java index 42642e9f177..b5e3bc67446 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class Fakeparametercollisions1ababselfabPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeparametercollisions1ababselfabPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeparametercollisions1ababselfabPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + Fakeparametercollisions1ababselfabPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer castDeserializer = (StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeparametercollisions1ababselfabPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java index 7cda67e481f..372e5b1d702 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class Fakeparametercollisions1ababselfabPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class Fakeparametercollisions1ababselfabPostCode200Response1 extends ResponseDeserializer { + public Fakeparametercollisions1ababselfabPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index a90fd00d1f3..e5e32aacfe3 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakepemcontenttype.get; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakepemcontenttypeGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakepemcontenttypeGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakepemcontenttypeGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakepemcontenttypeGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakepemcontenttypeGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakepemcontenttypeGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakepemcontenttypeGetCode200ResponseDeserializer castDeserializer = (StatusFakepemcontenttypeGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakepemcontenttypeGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java index 499c915f8f3..b8af4640702 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakepemcontenttypeGetCode200Response { public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationxpemfileResponseBody {} public record ApplicationxpemfileResponseBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakepemcontenttypeGetCode200Response1 extends ResponseDeserializer { + public FakepemcontenttypeGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/x-pem-file", new ApplicationxpemfileMediaType()) 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 index e503a883cc0..94855836183 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakepetiduploadimagewithrequiredfilePostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakepetiduploadimagewithrequiredfilePostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakepetiduploadimagewithrequiredfilePostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakepetiduploadimagewithrequiredfilePostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer castDeserializer = (StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakepetiduploadimagewithrequiredfilePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java index e12ad3e1ff1..6cd3b657919 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakepetiduploadimagewithrequiredfilePostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakepetiduploadimagewithrequiredfilePostCode200Response1 extends ResponseDeserializer { + public FakepetiduploadimagewithrequiredfilePostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 196c779552e..ad96c808b19 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakequeryparamwithjsoncontenttypeGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakequeryparamwithjsoncontenttypeGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakequeryparamwithjsoncontenttypeGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakequeryparamwithjsoncontenttypeGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer castDeserializer = (StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakequeryparamwithjsoncontenttypeGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java index 1c25969ab61..c7368eb4fc1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakequeryparamwithjsoncontenttypeGetCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakequeryparamwithjsoncontenttypeGetCode200Response1 extends ResponseDeserializer { + public FakequeryparamwithjsoncontenttypeGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 118bb131bc9..6928c6ba66e 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeredirection.get; -import org.openapijsonschematools.client.paths.fakeredirection.get.responses.Code303Response; -import org.openapijsonschematools.client.paths.fakeredirection.get.responses.Code3XXResponse; +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; @@ -15,29 +15,29 @@ import java.util.AbstractMap; public class FakeredirectionGetResponses { - public sealed interface EndpointResponse permits EndpointCode3XXResponse, EndpointCode303Response {} + public sealed interface EndpointResponse permits EndpointFakeredirectionGetCode3XXResponse, EndpointFakeredirectionGetCode303Response {} - public record EndpointCode3XXResponse( + public record EndpointFakeredirectionGetCode3XXResponse( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public record EndpointCode303Response( + public record EndpointFakeredirectionGetCode303Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode303ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeredirectionGetCode303ResponseDeserializer {} - public static final class StatusCode303ResponseDeserializer extends Code303Response.Code303Response1 implements StatusCodeResponseDeserializer { + public static final class StatusFakeredirectionGetCode303ResponseDeserializer extends FakeredirectionGetCode303Response.FakeredirectionGetCode303Response1 implements StatusCodeResponseDeserializer { } - public sealed interface WildcardCodeResponseDeserializer permits WildcardCode3XXResponseDeserializer {} + public sealed interface WildcardCodeResponseDeserializer permits WildcardFakeredirectionGetCode3XXResponseDeserializer {} - public static final class WildcardCode3XXResponseDeserializer extends Code3XXResponse.Code3XXResponse1 implements WildcardCodeResponseDeserializer { + public static final class WildcardFakeredirectionGetCode3XXResponseDeserializer extends FakeredirectionGetCode3XXResponse.FakeredirectionGetCode3XXResponse1 implements WildcardCodeResponseDeserializer { } public static final class FakeredirectionGetResponses1 implements ResponsesDeserializer { @@ -45,10 +45,10 @@ public static final class FakeredirectionGetResponses1 implements ResponsesDeser private final Map wildcardCodeToResponseDeserializer; public FakeredirectionGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("303", new StatusCode303ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("303", new StatusFakeredirectionGetCode303ResponseDeserializer()) ); this.wildcardCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("3", new WildcardCode3XXResponseDeserializer()) + new AbstractMap.SimpleEntry<>("3", new WildcardFakeredirectionGetCode3XXResponseDeserializer()) ); } @@ -56,9 +56,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu String statusCode = String.valueOf(response.statusCode()); @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); if (statusCodeDeserializer != null) { - StatusCode303ResponseDeserializer castDeserializer = (StatusCode303ResponseDeserializer) statusCodeDeserializer; + StatusFakeredirectionGetCode303ResponseDeserializer castDeserializer = (StatusFakeredirectionGetCode303ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode303Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeredirectionGetCode303Response(response, deserializedResponse.body(), deserializedResponse.headers()); } @Nullable WildcardCodeResponseDeserializer wildcardCodeDeserializer = wildcardCodeToResponseDeserializer.get(statusCode); if (wildcardCodeDeserializer == null) { @@ -67,9 +67,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - WildcardCode3XXResponseDeserializer castDeserializer = (WildcardCode3XXResponseDeserializer) wildcardCodeDeserializer; + WildcardFakeredirectionGetCode3XXResponseDeserializer castDeserializer = (WildcardFakeredirectionGetCode3XXResponseDeserializer) wildcardCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code3XXResponse.ResponseApiException( + 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/Code303Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java index 80bbe5222cf..8feee1d93ad 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code303Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code303Response { +public class FakeredirectionGetCode303Response { - public static class Code303Response1 extends ResponseDeserializer { - public Code303Response1() { + public static class FakeredirectionGetCode303Response1 extends ResponseDeserializer { + public FakeredirectionGetCode303Response1() { super( MapUtils.makeMap( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java index fc5125abeca..c2e9f302411 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code3XXResponse { +public class FakeredirectionGetCode3XXResponse { - public static class Code3XXResponse1 extends ResponseDeserializer { - public Code3XXResponse1() { + public static class FakeredirectionGetCode3XXResponse1 extends ResponseDeserializer { + public FakeredirectionGetCode3XXResponse1() { super( MapUtils.makeMap( ) 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 index 874c6815d48..18a07a581a2 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefobjinquery.get; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefobjinqueryGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefobjinqueryGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefobjinqueryGetCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefobjinqueryGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefobjinqueryGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefobjinqueryGetCode200ResponseDeserializer castDeserializer = (StatusFakerefobjinqueryGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefobjinqueryGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java deleted file mode 100644 index ef459550ec7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/post/FakerefsarraymodelPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java index 47cd5e8a8a2..563a821044a 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsarraymodel.post; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefsarraymodelPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefsarraymodelPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefsarraymodelPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakerefsarraymodelPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsarraymodelPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsarraymodelPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefsarraymodelPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsarraymodelPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefsarraymodelPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java index c6902020026..292fe11781b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakerefsarraymodelPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnimalFarm1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakerefsarraymodelPostCode200Response1 extends ResponseDeserializer { + public FakerefsarraymodelPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index bf77112dbe0..5fa02b7fa60 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefsarrayofenumsPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefsarrayofenumsPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefsarrayofenumsPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakerefsarrayofenumsPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsarrayofenumsPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsarrayofenumsPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefsarrayofenumsPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsarrayofenumsPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefsarrayofenumsPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java index 9ee1287a9d1..5f83f4d05d1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakerefsarrayofenumsPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakerefsarrayofenumsPostCode200Response1 extends ResponseDeserializer { + public FakerefsarrayofenumsPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index b390ac324fc..ad09fb08b97 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsboolean.post; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefsbooleanPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefsbooleanPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefsbooleanPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakerefsbooleanPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsbooleanPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsbooleanPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefsbooleanPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsbooleanPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefsbooleanPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java index 2f85215f463..8018c18af9e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakerefsbooleanPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakerefsbooleanPostCode200Response1 extends ResponseDeserializer { + public FakerefsbooleanPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 648d833f435..3e86f10d166 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefscomposedoneofnumberwithvalidationsPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer castDeserializer = (StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java index aa7d008cb6e..f5b17537155 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakerefscomposedoneofnumberwithvalidationsPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakerefscomposedoneofnumberwithvalidationsPostCode200Response1 extends ResponseDeserializer { + public FakerefscomposedoneofnumberwithvalidationsPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 9d5b22f3061..ca9be127a78 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsenum.post; -import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefsenumPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefsenumPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefsenumPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakerefsenumPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsenumPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsenumPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefsenumPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsenumPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefsenumPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java index 23ed2009366..c250f33f370 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakerefsenumPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringEnum1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakerefsenumPostCode200Response1 extends ResponseDeserializer { + public FakerefsenumPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 71ca375aa6b..57581467ece 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsmammal.post; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefsmammalPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefsmammalPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefsmammalPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakerefsmammalPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsmammalPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsmammalPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefsmammalPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsmammalPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefsmammalPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java index 6565afc0de3..7818cef0191 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakerefsmammalPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.Mammal1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakerefsmammalPostCode200Response1 extends ResponseDeserializer { + public FakerefsmammalPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 498288dc13a..b8ca69723bb 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsnumber.post; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefsnumberPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefsnumberPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefsnumberPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakerefsnumberPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsnumberPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsnumberPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefsnumberPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsnumberPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefsnumberPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java index 9e8e93aca7f..0a439671493 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakerefsnumberPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakerefsnumberPostCode200Response1 extends ResponseDeserializer { + public FakerefsnumberPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index d92c415eef7..002b379bf62 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefsobjectmodelwithrefpropsPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefsobjectmodelwithrefpropsPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefsobjectmodelwithrefpropsPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakerefsobjectmodelwithrefpropsPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefsobjectmodelwithrefpropsPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java similarity index 90% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java index a2b03d8a56d..5a7bacf97cc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakerefsobjectmodelwithrefpropsPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakerefsobjectmodelwithrefpropsPostCode200Response1 extends ResponseDeserializer { + public FakerefsobjectmodelwithrefpropsPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index f979f5a867e..3617898cf51 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakerefsstring.post; -import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakerefsstringPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakerefsstringPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakerefsstringPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakerefsstringPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsstringPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsstringPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakerefsstringPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsstringPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakerefsstringPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java index 78842227518..52adfde1ffc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakerefsstringPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakerefsstringPostCode200Response1 extends ResponseDeserializer { + public FakerefsstringPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index da0b9517ef9..061491da53c 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeresponsewithoutschemaGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeresponsewithoutschemaGetCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeresponsewithoutschemaGetCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer castDeserializer = (StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + 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/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java index 01622b70b62..a190bfa972c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java @@ -13,10 +13,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakeresponsewithoutschemaGetCode200Response { - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakeresponsewithoutschemaGetCode200Response1 extends ResponseDeserializer { + public FakeresponsewithoutschemaGetCode200Response1() { super( MapUtils.makeMap( new AbstractMap.SimpleEntry("application/json", null), 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 index 220d62e5fdc..ed5c4a6f030 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.faketestqueryparamters.put; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FaketestqueryparamtersPutResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFaketestqueryparamtersPutCode200Response {} - public record EndpointCode200Response( + public record EndpointFaketestqueryparamtersPutCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFaketestqueryparamtersPutCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFaketestqueryparamtersPutCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFaketestqueryparamtersPutCode200ResponseDeserializer castDeserializer = (StatusFaketestqueryparamtersPutCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFaketestqueryparamtersPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java deleted file mode 100644 index ca41d3b2624..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/post/FakeuploaddownloadfilePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java index a05b0ba62b8..04f4e9c3706 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeuploaddownloadfilePostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeuploaddownloadfilePostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeuploaddownloadfilePostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakeuploaddownloadfilePostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeuploaddownloadfilePostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeuploaddownloadfilePostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeuploaddownloadfilePostCode200ResponseDeserializer castDeserializer = (StatusFakeuploaddownloadfilePostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeuploaddownloadfilePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java index f9b8bd33e16..dd4052cb616 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakeuploaddownloadfilePostCode200Response { public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType {} public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationoctetstreamResponseBody {} public record ApplicationoctetstreamResponseBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakeuploaddownloadfilePostCode200Response1 extends ResponseDeserializer { + public FakeuploaddownloadfilePostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/octet-stream", new ApplicationoctetstreamMediaType()) 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 index df35e516fc2..976aaee314e 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeuploadfile.post; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeuploadfilePostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeuploadfilePostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeuploadfilePostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakeuploadfilePostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeuploadfilePostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeuploadfilePostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeuploadfilePostCode200ResponseDeserializer castDeserializer = (StatusFakeuploadfilePostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeuploadfilePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java index 5ef05875230..19ee4cb8e6b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakeuploadfilePostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakeuploadfilePostCode200Response1 extends ResponseDeserializer { + public FakeuploadfilePostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index 6fa72c33c62..77ed06b1d42 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.fakeuploadfiles.post; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class FakeuploadfilesPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointFakeuploadfilesPostCode200Response {} - public record EndpointCode200Response( + public record EndpointFakeuploadfilesPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakeuploadfilesPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakeuploadfilesPostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakeuploadfilesPostCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakeuploadfilesPostCode200ResponseDeserializer castDeserializer = (StatusFakeuploadfilesPostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakeuploadfilesPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java similarity index 92% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java index 8491068775e..b2d4ff90442 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakeuploadfilesPostCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakeuploadfilesPostCode200Response1 extends ResponseDeserializer { + public FakeuploadfilesPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index bacc1ffae42..893cf1358e5 100644 --- 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 @@ -1,11 +1,11 @@ package org.openapijsonschematools.client.paths.fakewildcardresponses.get; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code1XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code2XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code3XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code4XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code5XXResponse; +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; @@ -19,51 +19,51 @@ import java.util.AbstractMap; public class FakewildcardresponsesGetResponses { - public sealed interface EndpointResponse permits EndpointCode1XXResponse, EndpointCode2XXResponse, EndpointCode200Response, EndpointCode3XXResponse {} + public sealed interface EndpointResponse permits EndpointFakewildcardresponsesGetCode1XXResponse, EndpointFakewildcardresponsesGetCode2XXResponse, EndpointFakewildcardresponsesGetCode200Response, EndpointFakewildcardresponsesGetCode3XXResponse {} - public record EndpointCode1XXResponse( + public record EndpointFakewildcardresponsesGetCode1XXResponse( HttpResponse response, - Code1XXResponse.SealedResponseBody body, + FakewildcardresponsesGetCode1XXResponse.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public record EndpointCode2XXResponse( + public record EndpointFakewildcardresponsesGetCode2XXResponse( HttpResponse response, - Code2XXResponse.SealedResponseBody body, + FakewildcardresponsesGetCode2XXResponse.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public record EndpointCode200Response( + public record EndpointFakewildcardresponsesGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + FakewildcardresponsesGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public record EndpointCode3XXResponse( + public record EndpointFakewildcardresponsesGetCode3XXResponse( HttpResponse response, - Code3XXResponse.SealedResponseBody body, + FakewildcardresponsesGetCode3XXResponse.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusFakewildcardresponsesGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusFakewildcardresponsesGetCode200ResponseDeserializer extends FakewildcardresponsesGetCode200Response.FakewildcardresponsesGetCode200Response1 implements StatusCodeResponseDeserializer { } - public sealed interface WildcardCodeResponseDeserializer permits WildcardCode1XXResponseDeserializer, WildcardCode2XXResponseDeserializer, WildcardCode3XXResponseDeserializer, WildcardCode4XXResponseDeserializer, WildcardCode5XXResponseDeserializer {} + public sealed interface WildcardCodeResponseDeserializer permits WildcardFakewildcardresponsesGetCode1XXResponseDeserializer, WildcardFakewildcardresponsesGetCode2XXResponseDeserializer, WildcardFakewildcardresponsesGetCode3XXResponseDeserializer, WildcardFakewildcardresponsesGetCode4XXResponseDeserializer, WildcardFakewildcardresponsesGetCode5XXResponseDeserializer {} - public static final class WildcardCode1XXResponseDeserializer extends Code1XXResponse.Code1XXResponse1 implements WildcardCodeResponseDeserializer { + public static final class WildcardFakewildcardresponsesGetCode1XXResponseDeserializer extends FakewildcardresponsesGetCode1XXResponse.FakewildcardresponsesGetCode1XXResponse1 implements WildcardCodeResponseDeserializer { } - public static final class WildcardCode2XXResponseDeserializer extends Code2XXResponse.Code2XXResponse1 implements WildcardCodeResponseDeserializer { + public static final class WildcardFakewildcardresponsesGetCode2XXResponseDeserializer extends FakewildcardresponsesGetCode2XXResponse.FakewildcardresponsesGetCode2XXResponse1 implements WildcardCodeResponseDeserializer { } - public static final class WildcardCode3XXResponseDeserializer extends Code3XXResponse.Code3XXResponse1 implements WildcardCodeResponseDeserializer { + public static final class WildcardFakewildcardresponsesGetCode3XXResponseDeserializer extends FakewildcardresponsesGetCode3XXResponse.FakewildcardresponsesGetCode3XXResponse1 implements WildcardCodeResponseDeserializer { } - public static final class WildcardCode4XXResponseDeserializer extends Code4XXResponse.Code4XXResponse1 implements WildcardCodeResponseDeserializer { + public static final class WildcardFakewildcardresponsesGetCode4XXResponseDeserializer extends FakewildcardresponsesGetCode4XXResponse.FakewildcardresponsesGetCode4XXResponse1 implements WildcardCodeResponseDeserializer { } - public static final class WildcardCode5XXResponseDeserializer extends Code5XXResponse.Code5XXResponse1 implements WildcardCodeResponseDeserializer { + public static final class WildcardFakewildcardresponsesGetCode5XXResponseDeserializer extends FakewildcardresponsesGetCode5XXResponse.FakewildcardresponsesGetCode5XXResponse1 implements WildcardCodeResponseDeserializer { } public static final class FakewildcardresponsesGetResponses1 implements ResponsesDeserializer { @@ -71,14 +71,14 @@ public static final class FakewildcardresponsesGetResponses1 implements Response private final Map wildcardCodeToResponseDeserializer; public FakewildcardresponsesGetResponses1() { this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusFakewildcardresponsesGetCode200ResponseDeserializer()) ); this.wildcardCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("1", new WildcardCode1XXResponseDeserializer()), - new AbstractMap.SimpleEntry<>("2", new WildcardCode2XXResponseDeserializer()), - new AbstractMap.SimpleEntry<>("3", new WildcardCode3XXResponseDeserializer()), - new AbstractMap.SimpleEntry<>("4", new WildcardCode4XXResponseDeserializer()), - new AbstractMap.SimpleEntry<>("5", new WildcardCode5XXResponseDeserializer()) + 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()) ); } @@ -86,9 +86,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu String statusCode = String.valueOf(response.statusCode()); @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); if (statusCodeDeserializer != null) { - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusFakewildcardresponsesGetCode200ResponseDeserializer castDeserializer = (StatusFakewildcardresponsesGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFakewildcardresponsesGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } @Nullable WildcardCodeResponseDeserializer wildcardCodeDeserializer = wildcardCodeToResponseDeserializer.get(statusCode); if (wildcardCodeDeserializer == null) { @@ -97,38 +97,38 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (wildcardCodeDeserializer instanceof WildcardCode1XXResponseDeserializer castDeserializer) { + if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode1XXResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code1XXResponse.ResponseApiException( + throw new FakewildcardresponsesGetCode1XXResponse.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); - } else if (wildcardCodeDeserializer instanceof WildcardCode2XXResponseDeserializer castDeserializer) { + } else if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode2XXResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code2XXResponse.ResponseApiException( + throw new FakewildcardresponsesGetCode2XXResponse.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); - } else if (wildcardCodeDeserializer instanceof WildcardCode3XXResponseDeserializer castDeserializer) { + } else if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode3XXResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code3XXResponse.ResponseApiException( + throw new FakewildcardresponsesGetCode3XXResponse.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); - } else if (wildcardCodeDeserializer instanceof WildcardCode4XXResponseDeserializer castDeserializer) { + } else if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode4XXResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code4XXResponse.ResponseApiException( + throw new FakewildcardresponsesGetCode4XXResponse.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); } else { - WildcardCode5XXResponseDeserializer castDeserializer = (WildcardCode5XXResponseDeserializer) wildcardCodeDeserializer; + WildcardFakewildcardresponsesGetCode5XXResponseDeserializer castDeserializer = (WildcardFakewildcardresponsesGetCode5XXResponseDeserializer) wildcardCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code5XXResponse.ResponseApiException( + 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/Code1XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java index 4bb1a115b72..9be539481c2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code1XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code1XXResponse { +public class FakewildcardresponsesGetCode1XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code1XXResponse1 extends ResponseDeserializer { - public Code1XXResponse1() { + public static class FakewildcardresponsesGetCode1XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode1XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java index 8138d8bc1a7..6176befb30c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class FakewildcardresponsesGetCode200Response { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class FakewildcardresponsesGetCode200Response1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java index 3d9e6eb5638..5a471b38e05 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code2XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code2XXResponse { +public class FakewildcardresponsesGetCode2XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code2XXResponse1 extends ResponseDeserializer { - public Code2XXResponse1() { + public static class FakewildcardresponsesGetCode2XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode2XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java index 5a177c3e8ae..df2e4ea8d9d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code3XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code3XXResponse { +public class FakewildcardresponsesGetCode3XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code3XXResponse1 extends ResponseDeserializer { - public Code3XXResponse1() { + public static class FakewildcardresponsesGetCode3XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode3XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java index 944465a02ea..0c46483284c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code4XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code4XXResponse { +public class FakewildcardresponsesGetCode4XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code4XXResponse1 extends ResponseDeserializer { - public Code4XXResponse1() { + public static class FakewildcardresponsesGetCode4XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode4XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java similarity index 91% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java index 46d31fd8f01..f4c919e3ded 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/Code5XXResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code5XXResponse { +public class FakewildcardresponsesGetCode5XXResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code5XXResponse1 extends ResponseDeserializer { - public Code5XXResponse1() { + public static class FakewildcardresponsesGetCode5XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode5XXResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index f6397269a6b..c447c27c206 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.foo.get; -import org.openapijsonschematools.client.paths.foo.get.responses.CodedefaultResponse; +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; @@ -14,24 +14,24 @@ import java.util.AbstractMap; public class FooGetResponses { - public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} + public sealed interface EndpointResponse permits EndpointFooGetCodedefaultResponse {} - public record EndpointCodedefaultResponse( + public record EndpointFooGetCodedefaultResponse( HttpResponse response, - CodedefaultResponse.SealedResponseBody body, + FooGetCodedefaultResponse.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } public static final class FooGetResponses1 implements ResponsesDeserializer { - private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; + private final FooGetCodedefaultResponse.FooGetCodedefaultResponse1 defaultResponseDeserializer; public FooGetResponses1() { - this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); + this.defaultResponseDeserializer = new FooGetCodedefaultResponse.FooGetCodedefaultResponse1(); } public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointFooGetCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java similarity index 93% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java index 28ef2eae71c..8d43ab82cfb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java @@ -14,7 +14,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class CodedefaultResponse { +public class FooGetCodedefaultResponse { public sealed interface SealedMediaType permits ApplicationjsonMediaType {} public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { @@ -29,8 +29,8 @@ public Void encoding() { public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } - public static class CodedefaultResponse1 extends ResponseDeserializer { - public CodedefaultResponse1() { + public static class FooGetCodedefaultResponse1 extends ResponseDeserializer { + public FooGetCodedefaultResponse1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) 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 index b3d94dbc363..b5a6f364f9c 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.pet.post; -import org.openapijsonschematools.client.paths.pet.post.responses.Code200Response; -import org.openapijsonschematools.client.paths.pet.post.responses.Code405Response; +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; @@ -15,28 +15,28 @@ import java.util.AbstractMap; public class PetPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointPetPostCode200Response {} - public record EndpointCode200Response( + public record EndpointPetPostCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode405ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusPetPostCode200ResponseDeserializer, StatusPetPostCode405ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusPetPostCode200ResponseDeserializer extends PetPostCode200Response.PetPostCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode405ResponseDeserializer extends Code405Response.Code405Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("405", new StatusCode405ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusPetPostCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("405", new StatusPetPostCode405ResponseDeserializer()) ); } @@ -49,13 +49,13 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusPetPostCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointPetPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } else { - StatusCode405ResponseDeserializer castDeserializer = (StatusCode405ResponseDeserializer) statusCodeDeserializer; + StatusPetPostCode405ResponseDeserializer castDeserializer = (StatusPetPostCode405ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code405Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java similarity index 50% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java index 77a882b268d..d32f61af7bc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} +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/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java index 207a4ef554f..30ed877e1b3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code405Response { +public class PetPostCode405Response { - public static class Code405Response1 extends ResponseDeserializer { - public Code405Response1() { + public static class PetPostCode405Response1 extends ResponseDeserializer { + public PetPostCode405Response1() { super( MapUtils.makeMap( ) 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 index 9e2b6008b2b..a8e998184ef 100644 --- 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 @@ -1,8 +1,8 @@ package org.openapijsonschematools.client.paths.pet.put; -import org.openapijsonschematools.client.paths.pet.put.responses.Code400Response; -import org.openapijsonschematools.client.paths.pet.put.responses.Code404Response; -import org.openapijsonschematools.client.paths.pet.put.responses.Code405Response; +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; @@ -16,22 +16,22 @@ public class PetPutResponses { - public sealed interface StatusCodeResponseDeserializer permits StatusCode400ResponseDeserializer, StatusCode404ResponseDeserializer, StatusCode405ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusPetPutCode400ResponseDeserializer, StatusPetPutCode404ResponseDeserializer, StatusPetPutCode405ResponseDeserializer {} - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { + public static final class StatusPetPutCode400ResponseDeserializer extends PetPutCode400Response.PetPutCode400Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 implements StatusCodeResponseDeserializer { + public static final class StatusPetPutCode404ResponseDeserializer extends PetPutCode404Response.PetPutCode404Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode405ResponseDeserializer extends Code405Response.Code405Response1 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 StatusCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("405", new StatusCode405ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("400", new StatusPetPutCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusPetPutCode404ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("405", new StatusPetPutCode405ResponseDeserializer()) ); } @@ -44,24 +44,24 @@ public Void deserialize(HttpResponse response, SchemaConfiguration confi response ); } - if (statusCodeDeserializer instanceof StatusCode400ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusPetPutCode400ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + throw new PetPutCode400Response.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); - } else if (statusCodeDeserializer instanceof StatusCode404ResponseDeserializer castDeserializer) { + } else if (statusCodeDeserializer instanceof StatusPetPutCode404ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code404Response.ResponseApiException( + throw new PetPutCode404Response.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); } else { - StatusCode405ResponseDeserializer castDeserializer = (StatusCode405ResponseDeserializer) statusCodeDeserializer; + StatusPetPutCode405ResponseDeserializer castDeserializer = (StatusPetPutCode405ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code405Response.ResponseApiException( + 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/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java index 27021cdf728..f67abd8a562 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class PetPutCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class PetPutCode400Response1 extends ResponseDeserializer { + public PetPutCode400Response1() { super( MapUtils.makeMap( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java index b74b875389c..caa7f0ab930 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code404Response { +public class PetPutCode404Response { - public static class Code404Response1 extends ResponseDeserializer { - public Code404Response1() { + public static class PetPutCode404Response1 extends ResponseDeserializer { + public PetPutCode404Response1() { super( MapUtils.makeMap( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java similarity index 89% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java index 350e155a9c0..117fd9b4d99 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code405Response { +public class PetPutCode405Response { - public static class Code405Response1 extends ResponseDeserializer { - public Code405Response1() { + public static class PetPutCode405Response1 extends ResponseDeserializer { + public PetPutCode405Response1() { super( MapUtils.makeMap( ) 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 index e19dffeea05..c4507e80287 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.petfindbystatus.get; -import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.Code400Response; +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; @@ -15,28 +15,28 @@ import java.util.AbstractMap; public class PetfindbystatusGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointPetfindbystatusGetCode200Response {} - public record EndpointCode200Response( + public record EndpointPetfindbystatusGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + PetfindbystatusGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode400ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusPetfindbystatusGetCode200ResponseDeserializer, StatusPetfindbystatusGetCode400ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusPetfindbystatusGetCode200ResponseDeserializer extends PetfindbystatusGetCode200Response.PetfindbystatusGetCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusPetfindbystatusGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusPetfindbystatusGetCode400ResponseDeserializer()) ); } @@ -49,13 +49,13 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusPetfindbystatusGetCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointPetfindbystatusGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } else { - StatusCode400ResponseDeserializer castDeserializer = (StatusCode400ResponseDeserializer) statusCodeDeserializer; + StatusPetfindbystatusGetCode400ResponseDeserializer castDeserializer = (StatusPetfindbystatusGetCode400ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java deleted file mode 100644 index 0bfcce006b9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessfulXmlAndJsonArrayOfPet; - -public class Code200Response extends SuccessfulXmlAndJsonArrayOfPet { - public static class Code200Response1 extends SuccessfulXmlAndJsonArrayOfPet1 {} -} 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/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java index 3ea6e1da098..d05bfe4df56 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class PetfindbystatusGetCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class PetfindbystatusGetCode400Response1 extends ResponseDeserializer { + public PetfindbystatusGetCode400Response1() { super( MapUtils.makeMap( ) 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 index bacd20a2c40..9129f784d43 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.petfindbytags.get; -import org.openapijsonschematools.client.paths.petfindbytags.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.petfindbytags.get.responses.Code400Response; +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; @@ -15,28 +15,28 @@ import java.util.AbstractMap; public class PetfindbytagsGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointPetfindbytagsGetCode200Response {} - public record EndpointCode200Response( + public record EndpointPetfindbytagsGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + PetfindbytagsGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode400ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusPetfindbytagsGetCode200ResponseDeserializer, StatusPetfindbytagsGetCode400ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusPetfindbytagsGetCode200ResponseDeserializer extends PetfindbytagsGetCode200Response.PetfindbytagsGetCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusPetfindbytagsGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusPetfindbytagsGetCode400ResponseDeserializer()) ); } @@ -49,13 +49,13 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusPetfindbytagsGetCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointPetfindbytagsGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } else { - StatusCode400ResponseDeserializer castDeserializer = (StatusCode400ResponseDeserializer) statusCodeDeserializer; + StatusPetfindbytagsGetCode400ResponseDeserializer castDeserializer = (StatusPetfindbytagsGetCode400ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java deleted file mode 100644 index ab2690f07ef..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get.responses; - -import org.openapijsonschematools.client.components.responses.RefSuccessfulXmlAndJsonArrayOfPet; - -public class Code200Response extends RefSuccessfulXmlAndJsonArrayOfPet { - public static class Code200Response1 extends RefSuccessfulXmlAndJsonArrayOfPet1 {} -} 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/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java index b674ee9ab33..96f6f4fc9fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class PetfindbytagsGetCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class PetfindbytagsGetCode400Response1 extends ResponseDeserializer { + public PetfindbytagsGetCode400Response1() { super( MapUtils.makeMap( ) 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 index 84aa9018aac..e5dbf441ebb 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.petpetid.delete; -import org.openapijsonschematools.client.paths.petpetid.delete.responses.Code400Response; +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; @@ -14,16 +14,16 @@ public class PetpetidDeleteResponses { - public sealed interface StatusCodeResponseDeserializer permits StatusCode400ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusPetpetidDeleteCode400ResponseDeserializer {} - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode400ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("400", new StatusPetpetidDeleteCode400ResponseDeserializer()) ); } @@ -36,9 +36,9 @@ public Void deserialize(HttpResponse response, SchemaConfiguration confi response ); } - StatusCode400ResponseDeserializer castDeserializer = (StatusCode400ResponseDeserializer) statusCodeDeserializer; + StatusPetpetidDeleteCode400ResponseDeserializer castDeserializer = (StatusPetpetidDeleteCode400ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + 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/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java index 48b687555cd..99deaad489e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class PetpetidDeleteCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class PetpetidDeleteCode400Response1 extends ResponseDeserializer { + public PetpetidDeleteCode400Response1() { super( MapUtils.makeMap( ) 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 index 1c443a27190..45efdb26f89 100644 --- 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 @@ -1,8 +1,8 @@ package org.openapijsonschematools.client.paths.petpetid.get; -import org.openapijsonschematools.client.paths.petpetid.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.petpetid.get.responses.Code400Response; -import org.openapijsonschematools.client.paths.petpetid.get.responses.Code404Response; +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; @@ -16,31 +16,31 @@ import java.util.AbstractMap; public class PetpetidGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointPetpetidGetCode200Response {} - public record EndpointCode200Response( + public record EndpointPetpetidGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + PetpetidGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode400ResponseDeserializer, StatusCode404ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusPetpetidGetCode200ResponseDeserializer, StatusPetpetidGetCode400ResponseDeserializer, StatusPetpetidGetCode404ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusPetpetidGetCode200ResponseDeserializer extends PetpetidGetCode200Response.PetpetidGetCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { + public static final class StatusPetpetidGetCode400ResponseDeserializer extends PetpetidGetCode400Response.PetpetidGetCode400Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusPetpetidGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusPetpetidGetCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusPetpetidGetCode404ResponseDeserializer()) ); } @@ -53,20 +53,20 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusPetpetidGetCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else if (statusCodeDeserializer instanceof StatusCode400ResponseDeserializer castDeserializer) { + return new EndpointPetpetidGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else if (statusCodeDeserializer instanceof StatusPetpetidGetCode400ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + throw new PetpetidGetCode400Response.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); } else { - StatusCode404ResponseDeserializer castDeserializer = (StatusCode404ResponseDeserializer) statusCodeDeserializer; + StatusPetpetidGetCode404ResponseDeserializer castDeserializer = (StatusPetpetidGetCode404ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code404Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java index 2e28a301c5d..ef57c8d7c8c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class PetpetidGetCode200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -41,8 +41,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.Pet1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.Pet1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class PetpetidGetCode200Response1 extends ResponseDeserializer { + public PetpetidGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java index 5bbc55f84a2..798be7c4d4b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class PetpetidGetCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class PetpetidGetCode400Response1 extends ResponseDeserializer { + public PetpetidGetCode400Response1() { super( MapUtils.makeMap( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java index 0aa19c5d169..8c7b60d64d7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code404Response { +public class PetpetidGetCode404Response { - public static class Code404Response1 extends ResponseDeserializer { - public Code404Response1() { + public static class PetpetidGetCode404Response1 extends ResponseDeserializer { + public PetpetidGetCode404Response1() { super( MapUtils.makeMap( ) 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 index 8935b3b371b..f7d62e199a3 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.petpetid.post; -import org.openapijsonschematools.client.paths.petpetid.post.responses.Code405Response; +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; @@ -14,16 +14,16 @@ public class PetpetidPostResponses { - public sealed interface StatusCodeResponseDeserializer permits StatusCode405ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusPetpetidPostCode405ResponseDeserializer {} - public static final class StatusCode405ResponseDeserializer extends Code405Response.Code405Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode405ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("405", new StatusPetpetidPostCode405ResponseDeserializer()) ); } @@ -36,9 +36,9 @@ public Void deserialize(HttpResponse response, SchemaConfiguration confi response ); } - StatusCode405ResponseDeserializer castDeserializer = (StatusCode405ResponseDeserializer) statusCodeDeserializer; + StatusPetpetidPostCode405ResponseDeserializer castDeserializer = (StatusPetpetidPostCode405ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code405Response.ResponseApiException( + 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/responses/Code405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java index 4dfaf36ff01..63a84f81656 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/Code405Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code405Response { +public class PetpetidPostCode405Response { - public static class Code405Response1 extends ResponseDeserializer { - public Code405Response1() { + public static class PetpetidPostCode405Response1 extends ResponseDeserializer { + public PetpetidPostCode405Response1() { super( MapUtils.makeMap( ) 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 index 45fbcc9ee28..ef9ecbb0b8a 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.petpetiduploadimage.post; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.Code200Response; +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; @@ -15,25 +15,25 @@ import java.util.AbstractMap; public class PetpetiduploadimagePostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointPetpetiduploadimagePostCode200Response {} - public record EndpointCode200Response( + public record EndpointPetpetiduploadimagePostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + PetpetiduploadimagePostCode200Response.SealedResponseBody body, SuccessWithJsonApiResponseHeadersSchema.SuccessWithJsonApiResponseHeadersSchemaMap headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusPetpetiduploadimagePostCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusPetpetiduploadimagePostCode200ResponseDeserializer()) ); } @@ -46,9 +46,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusPetpetiduploadimagePostCode200ResponseDeserializer castDeserializer = (StatusPetpetiduploadimagePostCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointPetpetiduploadimagePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java deleted file mode 100644 index 593e5a8bd71..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses; - -import org.openapijsonschematools.client.components.responses.SuccessWithJsonApiResponse; - -public class Code200Response extends SuccessWithJsonApiResponse { - public static class Code200Response1 extends SuccessWithJsonApiResponse1 {} -} 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/solidus/get/SolidusGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java index 57497f411e3..b6d5295cdce 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.solidus.get; -import org.openapijsonschematools.client.paths.solidus.get.responses.Code200Response; +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; @@ -14,25 +14,25 @@ import java.util.AbstractMap; public class SolidusGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointSolidusGetCode200Response {} - public record EndpointCode200Response( + public record EndpointSolidusGetCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusSolidusGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusSolidusGetCode200ResponseDeserializer()) ); } @@ -45,9 +45,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusSolidusGetCode200ResponseDeserializer castDeserializer = (StatusSolidusGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + 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/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java similarity index 50% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java index cc3db94ea0f..9560cc160dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java @@ -2,6 +2,6 @@ import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} +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/get/StoreinventoryGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java index d3baa1a1fdf..389cb0617a3 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.storeinventory.get; -import org.openapijsonschematools.client.paths.storeinventory.get.responses.Code200Response; +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; @@ -15,25 +15,25 @@ import java.util.AbstractMap; public class StoreinventoryGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointStoreinventoryGetCode200Response {} - public record EndpointCode200Response( + public record EndpointStoreinventoryGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + StoreinventoryGetCode200Response.SealedResponseBody body, SuccessInlineContentAndHeaderHeadersSchema.SuccessInlineContentAndHeaderHeadersSchemaMap headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusStoreinventoryGetCode200ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + 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 StatusCode200ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusStoreinventoryGetCode200ResponseDeserializer()) ); } @@ -46,9 +46,9 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - StatusCode200ResponseDeserializer castDeserializer = (StatusCode200ResponseDeserializer) statusCodeDeserializer; + StatusStoreinventoryGetCode200ResponseDeserializer castDeserializer = (StatusStoreinventoryGetCode200ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointStoreinventoryGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java deleted file mode 100644 index 0dcc3b8d63f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.storeinventory.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessInlineContentAndHeader; - -public class Code200Response extends SuccessInlineContentAndHeader { - public static class Code200Response1 extends SuccessInlineContentAndHeader1 {} -} 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/storeorder/post/StoreorderPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java index 85261c84562..5afb42352d9 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.storeorder.post; -import org.openapijsonschematools.client.paths.storeorder.post.responses.Code200Response; -import org.openapijsonschematools.client.paths.storeorder.post.responses.Code400Response; +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; @@ -15,28 +15,28 @@ import java.util.AbstractMap; public class StoreorderPostResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointStoreorderPostCode200Response {} - public record EndpointCode200Response( + public record EndpointStoreorderPostCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + StoreorderPostCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode400ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusStoreorderPostCode200ResponseDeserializer, StatusStoreorderPostCode400ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusStoreorderPostCode200ResponseDeserializer extends StoreorderPostCode200Response.StoreorderPostCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusStoreorderPostCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusStoreorderPostCode400ResponseDeserializer()) ); } @@ -49,13 +49,13 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusStoreorderPostCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointStoreorderPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } else { - StatusCode400ResponseDeserializer castDeserializer = (StatusCode400ResponseDeserializer) statusCodeDeserializer; + StatusStoreorderPostCode400ResponseDeserializer castDeserializer = (StatusStoreorderPostCode400ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java index fc535ab3955..233b54e530b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class StoreorderPostCode200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -41,8 +41,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class StoreorderPostCode200Response1 extends ResponseDeserializer { + public StoreorderPostCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java index 3d9ae44d402..255fd7c4195 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class StoreorderPostCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class StoreorderPostCode400Response1 extends ResponseDeserializer { + public StoreorderPostCode400Response1() { super( MapUtils.makeMap( ) 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 index dcf1f68979c..4e2878c3135 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.storeorderorderid.delete; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.Code400Response; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.Code404Response; +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; @@ -15,19 +15,19 @@ public class StoreorderorderidDeleteResponses { - public sealed interface StatusCodeResponseDeserializer permits StatusCode400ResponseDeserializer, StatusCode404ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusStoreorderorderidDeleteCode400ResponseDeserializer, StatusStoreorderorderidDeleteCode404ResponseDeserializer {} - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { + public static final class StatusStoreorderorderidDeleteCode400ResponseDeserializer extends StoreorderorderidDeleteCode400Response.StoreorderorderidDeleteCode400Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 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 StatusCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("400", new StatusStoreorderorderidDeleteCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusStoreorderorderidDeleteCode404ResponseDeserializer()) ); } @@ -40,17 +40,17 @@ public Void deserialize(HttpResponse response, SchemaConfiguration confi response ); } - if (statusCodeDeserializer instanceof StatusCode400ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusStoreorderorderidDeleteCode400ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + throw new StoreorderorderidDeleteCode400Response.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); } else { - StatusCode404ResponseDeserializer castDeserializer = (StatusCode404ResponseDeserializer) statusCodeDeserializer; + StatusStoreorderorderidDeleteCode404ResponseDeserializer castDeserializer = (StatusStoreorderorderidDeleteCode404ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code404Response.ResponseApiException( + 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/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java index 7ad936566fc..9cb784d6247 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class StoreorderorderidDeleteCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class StoreorderorderidDeleteCode400Response1 extends ResponseDeserializer { + public StoreorderorderidDeleteCode400Response1() { super( MapUtils.makeMap( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java index 565b71b9a4f..db72a798656 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code404Response { +public class StoreorderorderidDeleteCode404Response { - public static class Code404Response1 extends ResponseDeserializer { - public Code404Response1() { + public static class StoreorderorderidDeleteCode404Response1 extends ResponseDeserializer { + public StoreorderorderidDeleteCode404Response1() { super( MapUtils.makeMap( ) 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 index bf189d4503f..fe5a0ecb10f 100644 --- 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 @@ -1,8 +1,8 @@ package org.openapijsonschematools.client.paths.storeorderorderid.get; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code400Response; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code404Response; +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; @@ -16,31 +16,31 @@ import java.util.AbstractMap; public class StoreorderorderidGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointStoreorderorderidGetCode200Response {} - public record EndpointCode200Response( + public record EndpointStoreorderorderidGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + StoreorderorderidGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode400ResponseDeserializer, StatusCode404ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusStoreorderorderidGetCode200ResponseDeserializer, StatusStoreorderorderidGetCode400ResponseDeserializer, StatusStoreorderorderidGetCode404ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusStoreorderorderidGetCode200ResponseDeserializer extends StoreorderorderidGetCode200Response.StoreorderorderidGetCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { + public static final class StatusStoreorderorderidGetCode400ResponseDeserializer extends StoreorderorderidGetCode400Response.StoreorderorderidGetCode400Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusStoreorderorderidGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusStoreorderorderidGetCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusStoreorderorderidGetCode404ResponseDeserializer()) ); } @@ -53,20 +53,20 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusStoreorderorderidGetCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else if (statusCodeDeserializer instanceof StatusCode400ResponseDeserializer castDeserializer) { + return new EndpointStoreorderorderidGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else if (statusCodeDeserializer instanceof StatusStoreorderorderidGetCode400ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + throw new StoreorderorderidGetCode400Response.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); } else { - StatusCode404ResponseDeserializer castDeserializer = (StatusCode404ResponseDeserializer) statusCodeDeserializer; + StatusStoreorderorderidGetCode404ResponseDeserializer castDeserializer = (StatusStoreorderorderidGetCode404ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code404Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java index e0cea6e6191..f15a3a49f9f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class StoreorderorderidGetCode200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -41,8 +41,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class StoreorderorderidGetCode200Response1 extends ResponseDeserializer { + public StoreorderorderidGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java index c3304e02b39..c444b171ea4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class StoreorderorderidGetCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class StoreorderorderidGetCode400Response1 extends ResponseDeserializer { + public StoreorderorderidGetCode400Response1() { super( MapUtils.makeMap( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java index 5de14a5ccd1..39125cd7b5e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code404Response { +public class StoreorderorderidGetCode404Response { - public static class Code404Response1 extends ResponseDeserializer { - public Code404Response1() { + public static class StoreorderorderidGetCode404Response1 extends ResponseDeserializer { + public StoreorderorderidGetCode404Response1() { super( MapUtils.makeMap( ) 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 index 51561571bbd..f87b60de8c9 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.user.post; -import org.openapijsonschematools.client.paths.user.post.responses.CodedefaultResponse; +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; @@ -14,9 +14,9 @@ import java.util.AbstractMap; public class UserPostResponses { - public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} + public sealed interface EndpointResponse permits EndpointUserPostCodedefaultResponse {} - public record EndpointCodedefaultResponse( + public record EndpointUserPostCodedefaultResponse( HttpResponse response, Void body, Void headers @@ -24,14 +24,14 @@ public record EndpointCodedefaultResponse( } public static final class UserPostResponses1 implements ResponsesDeserializer { - private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; + private final UserPostCodedefaultResponse.UserPostCodedefaultResponse1 defaultResponseDeserializer; public UserPostResponses1() { - this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); + this.defaultResponseDeserializer = new UserPostCodedefaultResponse.UserPostCodedefaultResponse1(); } public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointUserPostCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); } } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java index 20148c56e39..c5be0393da1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class CodedefaultResponse { +public class UserPostCodedefaultResponse { - public static class CodedefaultResponse1 extends ResponseDeserializer { - public CodedefaultResponse1() { + public static class UserPostCodedefaultResponse1 extends ResponseDeserializer { + public UserPostCodedefaultResponse1() { super( MapUtils.makeMap( ) 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 index 75270caea9f..6e7f68122fb 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.usercreatewitharray.post; -import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.CodedefaultResponse; +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; @@ -14,9 +14,9 @@ import java.util.AbstractMap; public class UsercreatewitharrayPostResponses { - public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} + public sealed interface EndpointResponse permits EndpointUsercreatewitharrayPostCodedefaultResponse {} - public record EndpointCodedefaultResponse( + public record EndpointUsercreatewitharrayPostCodedefaultResponse( HttpResponse response, Void body, Void headers @@ -24,14 +24,14 @@ public record EndpointCodedefaultResponse( } public static final class UsercreatewitharrayPostResponses1 implements ResponsesDeserializer { - private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; + private final UsercreatewitharrayPostCodedefaultResponse.UsercreatewitharrayPostCodedefaultResponse1 defaultResponseDeserializer; public UsercreatewitharrayPostResponses1() { - this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); + this.defaultResponseDeserializer = new UsercreatewitharrayPostCodedefaultResponse.UsercreatewitharrayPostCodedefaultResponse1(); } public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + 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/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java similarity index 86% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java index bd617d9262d..9f3410d1091 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class CodedefaultResponse { +public class UsercreatewitharrayPostCodedefaultResponse { - public static class CodedefaultResponse1 extends ResponseDeserializer { - public CodedefaultResponse1() { + public static class UsercreatewitharrayPostCodedefaultResponse1 extends ResponseDeserializer { + public UsercreatewitharrayPostCodedefaultResponse1() { super( MapUtils.makeMap( ) 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 index b35c3394c5d..082e179676e 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.usercreatewithlist.post; -import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.CodedefaultResponse; +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; @@ -14,9 +14,9 @@ import java.util.AbstractMap; public class UsercreatewithlistPostResponses { - public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} + public sealed interface EndpointResponse permits EndpointUsercreatewithlistPostCodedefaultResponse {} - public record EndpointCodedefaultResponse( + public record EndpointUsercreatewithlistPostCodedefaultResponse( HttpResponse response, Void body, Void headers @@ -24,14 +24,14 @@ public record EndpointCodedefaultResponse( } public static final class UsercreatewithlistPostResponses1 implements ResponsesDeserializer { - private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; + private final UsercreatewithlistPostCodedefaultResponse.UsercreatewithlistPostCodedefaultResponse1 defaultResponseDeserializer; public UsercreatewithlistPostResponses1() { - this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); + this.defaultResponseDeserializer = new UsercreatewithlistPostCodedefaultResponse.UsercreatewithlistPostCodedefaultResponse1(); } public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + 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/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java similarity index 86% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java index a8989114b04..6966b53669d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/CodedefaultResponse.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class CodedefaultResponse { +public class UsercreatewithlistPostCodedefaultResponse { - public static class CodedefaultResponse1 extends ResponseDeserializer { - public CodedefaultResponse1() { + public static class UsercreatewithlistPostCodedefaultResponse1 extends ResponseDeserializer { + public UsercreatewithlistPostCodedefaultResponse1() { super( MapUtils.makeMap( ) 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 index 847cf803446..8e5613c7641 100644 --- 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 @@ -1,8 +1,8 @@ package org.openapijsonschematools.client.paths.userlogin.get; -import org.openapijsonschematools.client.paths.userlogin.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.Code200ResponseHeadersSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.Code400Response; +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; @@ -16,28 +16,28 @@ import java.util.AbstractMap; public class UserloginGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointUserloginGetCode200Response {} - public record EndpointCode200Response( + public record EndpointUserloginGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, - Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap headers - ) implements EndpointResponse, ApiResponse{ + UserloginGetCode200Response.SealedResponseBody body, + UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap headers + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode400ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusUserloginGetCode200ResponseDeserializer, StatusUserloginGetCode400ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusUserloginGetCode200ResponseDeserializer extends UserloginGetCode200Response.UserloginGetCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusUserloginGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusUserloginGetCode400ResponseDeserializer()) ); } @@ -50,13 +50,13 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusUserloginGetCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointUserloginGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } else { - StatusCode400ResponseDeserializer castDeserializer = (StatusCode400ResponseDeserializer) statusCodeDeserializer; + StatusUserloginGetCode400ResponseDeserializer castDeserializer = (StatusUserloginGetCode400ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java index 399cc9fd94f..07992812d1e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java @@ -9,7 +9,7 @@ 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.Code200ResponseHeadersSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.Headers; import java.util.AbstractMap; @@ -17,7 +17,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class UserloginGetCode200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -43,8 +43,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class UserloginGetCode200Response1 extends ResponseDeserializer { + public UserloginGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), @@ -66,7 +66,7 @@ protected SealedResponseBody getBody(String contentType, SealedMediaType mediaTy } @Override - protected Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap getHeaders(HttpHeaders headers, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + protected UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap getHeaders(HttpHeaders headers, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { return new Headers().deserialize(headers, configuration); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java index a30d61bec1a..a9e9d3cb6b0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class UserloginGetCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class UserloginGetCode400Response1 extends ResponseDeserializer { + public UserloginGetCode400Response1() { super( MapUtils.makeMap( ) 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 index 7c88b23b59b..5c6b5922c54 100644 --- 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 @@ -10,7 +10,7 @@ import java.util.Map; import java.util.AbstractMap; -public class Headers extends HeadersDeserializer { +public class Headers extends HeadersDeserializer { public Headers() { super( Map.ofEntries( @@ -20,7 +20,7 @@ public Headers() { new AbstractMap.SimpleEntry<>("ref-content-schema-header", new Refcontentschemaheader.Refcontentschemaheader1()), new AbstractMap.SimpleEntry<>("numberHeader", new NumberHeader.NumberHeader1()) ), - Code200ResponseHeadersSchema.Code200ResponseHeadersSchema1.getInstance() + 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/Code200ResponseHeadersSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java similarity index 52% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java index 26bd7f377fc..49828653caa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java @@ -29,24 +29,24 @@ import org.openapijsonschematools.client.schemas.validation.PropertyEntry; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class Code200ResponseHeadersSchema { +public class UserloginGetCode200ResponseHeadersSchema { // nest classes so all schemas and input/output classes can be public - public static class Code200ResponseAdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class UserloginGetCode200ResponseAdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Code200ResponseAdditionalProperties instance = null; - public static Code200ResponseAdditionalProperties getInstance() { + private static @Nullable UserloginGetCode200ResponseAdditionalProperties instance = null; + public static UserloginGetCode200ResponseAdditionalProperties getInstance() { if (instance == null) { - instance = new Code200ResponseAdditionalProperties(); + instance = new UserloginGetCode200ResponseAdditionalProperties(); } return instance; } } - public static class Code200ResponseHeadersSchemaMap extends FrozenMap<@Nullable Object> { - protected Code200ResponseHeadersSchemaMap(FrozenMap<@Nullable Object> m) { + public static class UserloginGetCode200ResponseHeadersSchemaMap extends FrozenMap<@Nullable Object> { + protected UserloginGetCode200ResponseHeadersSchemaMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -58,8 +58,8 @@ protected Code200ResponseHeadersSchemaMap(FrozenMap<@Nullable Object> m) { "X-Expires-After", "numberHeader" ); - public static Code200ResponseHeadersSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Code200ResponseHeadersSchema1.getInstance().validate(arg, configuration); + public static UserloginGetCode200ResponseHeadersSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserloginGetCode200ResponseHeadersSchema1.getInstance().validate(arg, configuration); } public Number int32() { @@ -81,74 +81,74 @@ public String numberHeader() throws UnsetPropertyException { } } - public interface SetterForCode200ResponseXRateLimit { + public interface SetterForUserloginGetCode200ResponseXRateLimit { Map getInstance(); - T getBuilderAfterCode200ResponseXRateLimit(Map instance); + T getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance); default T xHyphenMinusRateHyphenMinusLimit(int value) { var instance = getInstance(); instance.put("X-Rate-Limit", value); - return getBuilderAfterCode200ResponseXRateLimit(instance); + return getBuilderAfterUserloginGetCode200ResponseXRateLimit(instance); } default T xHyphenMinusRateHyphenMinusLimit(float value) { var instance = getInstance(); instance.put("X-Rate-Limit", value); - return getBuilderAfterCode200ResponseXRateLimit(instance); + return getBuilderAfterUserloginGetCode200ResponseXRateLimit(instance); } } - public interface SetterForCode200ResponseInt32 { + public interface SetterForUserloginGetCode200ResponseInt32 { Map getInstance(); - T getBuilderAfterCode200ResponseInt32(Map instance); + T getBuilderAfterUserloginGetCode200ResponseInt32(Map instance); default T int32(int value) { var instance = getInstance(); instance.put("int32", value); - return getBuilderAfterCode200ResponseInt32(instance); + return getBuilderAfterUserloginGetCode200ResponseInt32(instance); } default T int32(float value) { var instance = getInstance(); instance.put("int32", value); - return getBuilderAfterCode200ResponseInt32(instance); + return getBuilderAfterUserloginGetCode200ResponseInt32(instance); } } - public interface SetterForCode200ResponseRefcontentschemaheader { + public interface SetterForUserloginGetCode200ResponseRefcontentschemaheader { Map getInstance(); - T getBuilderAfterCode200ResponseRefcontentschemaheader(Map instance); + T getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance); default T refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) { var instance = getInstance(); instance.put("ref-content-schema-header", value); - return getBuilderAfterCode200ResponseRefcontentschemaheader(instance); + return getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(instance); } } - public interface SetterForCode200ResponseXExpiresAfter { + public interface SetterForUserloginGetCode200ResponseXExpiresAfter { Map getInstance(); - T getBuilderAfterCode200ResponseXExpiresAfter(Map instance); + T getBuilderAfterUserloginGetCode200ResponseXExpiresAfter(Map instance); default T xHyphenMinusExpiresHyphenMinusAfter(String value) { var instance = getInstance(); instance.put("X-Expires-After", value); - return getBuilderAfterCode200ResponseXExpiresAfter(instance); + return getBuilderAfterUserloginGetCode200ResponseXExpiresAfter(instance); } } - public interface SetterForCode200ResponseNumberHeader { + public interface SetterForUserloginGetCode200ResponseNumberHeader { Map getInstance(); - T getBuilderAfterCode200ResponseNumberHeader(Map instance); + T getBuilderAfterUserloginGetCode200ResponseNumberHeader(Map instance); default T numberHeader(String value) { var instance = getInstance(); instance.put("numberHeader", value); - return getBuilderAfterCode200ResponseNumberHeader(instance); + return getBuilderAfterUserloginGetCode200ResponseNumberHeader(instance); } } - public static class Code200ResponseHeadersSchemaMap000Builder implements GenericBuilder>, SetterForCode200ResponseXExpiresAfter, SetterForCode200ResponseNumberHeader { + public static class UserloginGetCode200ResponseHeadersSchemaMap000Builder implements GenericBuilder>, SetterForUserloginGetCode200ResponseXExpiresAfter, SetterForUserloginGetCode200ResponseNumberHeader { private final Map instance; private static final Set knownKeys = Set.of( "X-Rate-Limit", @@ -160,7 +160,7 @@ public static class Code200ResponseHeadersSchemaMap000Builder implements Generic public Set getKnownKeys() { return knownKeys; } - public Code200ResponseHeadersSchemaMap000Builder(Map instance) { + public UserloginGetCode200ResponseHeadersSchemaMap000Builder(Map instance) { this.instance = instance; } public Map build() { @@ -169,126 +169,126 @@ public Code200ResponseHeadersSchemaMap000Builder(Map i public Map getInstance() { return instance; } - public Code200ResponseHeadersSchemaMap000Builder getBuilderAfterCode200ResponseXExpiresAfter(Map instance) { + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseXExpiresAfter(Map instance) { return this; } - public Code200ResponseHeadersSchemaMap000Builder getBuilderAfterCode200ResponseNumberHeader(Map instance) { + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseNumberHeader(Map instance) { return this; } } - public static class Code200ResponseHeadersSchemaMap001Builder implements SetterForCode200ResponseRefcontentschemaheader { + public static class UserloginGetCode200ResponseHeadersSchemaMap001Builder implements SetterForUserloginGetCode200ResponseRefcontentschemaheader { private final Map instance; - public Code200ResponseHeadersSchemaMap001Builder(Map instance) { + public UserloginGetCode200ResponseHeadersSchemaMap001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Code200ResponseHeadersSchemaMap000Builder getBuilderAfterCode200ResponseRefcontentschemaheader(Map instance) { - return new Code200ResponseHeadersSchemaMap000Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap000Builder(instance); } } - public static class Code200ResponseHeadersSchemaMap010Builder implements SetterForCode200ResponseInt32 { + public static class UserloginGetCode200ResponseHeadersSchemaMap010Builder implements SetterForUserloginGetCode200ResponseInt32 { private final Map instance; - public Code200ResponseHeadersSchemaMap010Builder(Map instance) { + public UserloginGetCode200ResponseHeadersSchemaMap010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Code200ResponseHeadersSchemaMap000Builder getBuilderAfterCode200ResponseInt32(Map instance) { - return new Code200ResponseHeadersSchemaMap000Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap000Builder(instance); } } - public static class Code200ResponseHeadersSchemaMap011Builder implements SetterForCode200ResponseInt32, SetterForCode200ResponseRefcontentschemaheader { + public static class UserloginGetCode200ResponseHeadersSchemaMap011Builder implements SetterForUserloginGetCode200ResponseInt32, SetterForUserloginGetCode200ResponseRefcontentschemaheader { private final Map instance; - public Code200ResponseHeadersSchemaMap011Builder(Map instance) { + public UserloginGetCode200ResponseHeadersSchemaMap011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Code200ResponseHeadersSchemaMap001Builder getBuilderAfterCode200ResponseInt32(Map instance) { - return new Code200ResponseHeadersSchemaMap001Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap001Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap001Builder(instance); } - public Code200ResponseHeadersSchemaMap010Builder getBuilderAfterCode200ResponseRefcontentschemaheader(Map instance) { - return new Code200ResponseHeadersSchemaMap010Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap010Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap010Builder(instance); } } - public static class Code200ResponseHeadersSchemaMap100Builder implements SetterForCode200ResponseXRateLimit { + public static class UserloginGetCode200ResponseHeadersSchemaMap100Builder implements SetterForUserloginGetCode200ResponseXRateLimit { private final Map instance; - public Code200ResponseHeadersSchemaMap100Builder(Map instance) { + public UserloginGetCode200ResponseHeadersSchemaMap100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Code200ResponseHeadersSchemaMap000Builder getBuilderAfterCode200ResponseXRateLimit(Map instance) { - return new Code200ResponseHeadersSchemaMap000Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap000Builder(instance); } } - public static class Code200ResponseHeadersSchemaMap101Builder implements SetterForCode200ResponseXRateLimit, SetterForCode200ResponseRefcontentschemaheader { + public static class UserloginGetCode200ResponseHeadersSchemaMap101Builder implements SetterForUserloginGetCode200ResponseXRateLimit, SetterForUserloginGetCode200ResponseRefcontentschemaheader { private final Map instance; - public Code200ResponseHeadersSchemaMap101Builder(Map instance) { + public UserloginGetCode200ResponseHeadersSchemaMap101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Code200ResponseHeadersSchemaMap001Builder getBuilderAfterCode200ResponseXRateLimit(Map instance) { - return new Code200ResponseHeadersSchemaMap001Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap001Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap001Builder(instance); } - public Code200ResponseHeadersSchemaMap100Builder getBuilderAfterCode200ResponseRefcontentschemaheader(Map instance) { - return new Code200ResponseHeadersSchemaMap100Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap100Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap100Builder(instance); } } - public static class Code200ResponseHeadersSchemaMap110Builder implements SetterForCode200ResponseXRateLimit, SetterForCode200ResponseInt32 { + public static class UserloginGetCode200ResponseHeadersSchemaMap110Builder implements SetterForUserloginGetCode200ResponseXRateLimit, SetterForUserloginGetCode200ResponseInt32 { private final Map instance; - public Code200ResponseHeadersSchemaMap110Builder(Map instance) { + public UserloginGetCode200ResponseHeadersSchemaMap110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Code200ResponseHeadersSchemaMap010Builder getBuilderAfterCode200ResponseXRateLimit(Map instance) { - return new Code200ResponseHeadersSchemaMap010Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap010Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap010Builder(instance); } - public Code200ResponseHeadersSchemaMap100Builder getBuilderAfterCode200ResponseInt32(Map instance) { - return new Code200ResponseHeadersSchemaMap100Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap100Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap100Builder(instance); } } - public static class Code200ResponseHeadersSchemaMapBuilder implements SetterForCode200ResponseXRateLimit, SetterForCode200ResponseInt32, SetterForCode200ResponseRefcontentschemaheader { + public static class UserloginGetCode200ResponseHeadersSchemaMapBuilder implements SetterForUserloginGetCode200ResponseXRateLimit, SetterForUserloginGetCode200ResponseInt32, SetterForUserloginGetCode200ResponseRefcontentschemaheader { private final Map instance; - public Code200ResponseHeadersSchemaMapBuilder() { + public UserloginGetCode200ResponseHeadersSchemaMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public Code200ResponseHeadersSchemaMap011Builder getBuilderAfterCode200ResponseXRateLimit(Map instance) { - return new Code200ResponseHeadersSchemaMap011Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap011Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap011Builder(instance); } - public Code200ResponseHeadersSchemaMap101Builder getBuilderAfterCode200ResponseInt32(Map instance) { - return new Code200ResponseHeadersSchemaMap101Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap101Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap101Builder(instance); } - public Code200ResponseHeadersSchemaMap110Builder getBuilderAfterCode200ResponseRefcontentschemaheader(Map instance) { - return new Code200ResponseHeadersSchemaMap110Builder(instance); + public UserloginGetCode200ResponseHeadersSchemaMap110Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap110Builder(instance); } } - public sealed interface Code200ResponseHeadersSchema1Boxed permits Code200ResponseHeadersSchema1BoxedMap { + public sealed interface UserloginGetCode200ResponseHeadersSchema1Boxed permits UserloginGetCode200ResponseHeadersSchema1BoxedMap { @Nullable Object getData(); } - public record Code200ResponseHeadersSchema1BoxedMap(Code200ResponseHeadersSchemaMap data) implements Code200ResponseHeadersSchema1Boxed { + public record UserloginGetCode200ResponseHeadersSchema1BoxedMap(UserloginGetCode200ResponseHeadersSchemaMap data) implements UserloginGetCode200ResponseHeadersSchema1Boxed { @Override public @Nullable Object getData() { return data; @@ -296,10 +296,10 @@ public record Code200ResponseHeadersSchema1BoxedMap(Code200ResponseHeadersSchema } - public static class Code200ResponseHeadersSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Code200ResponseHeadersSchema1 instance = null; + public static class UserloginGetCode200ResponseHeadersSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserloginGetCode200ResponseHeadersSchema1 instance = null; - protected Code200ResponseHeadersSchema1() { + protected UserloginGetCode200ResponseHeadersSchema1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( @@ -314,18 +314,18 @@ protected Code200ResponseHeadersSchema1() { "int32", "ref-content-schema-header" )) - .additionalProperties(Code200ResponseAdditionalProperties.class) + .additionalProperties(UserloginGetCode200ResponseAdditionalProperties.class) ); } - public static Code200ResponseHeadersSchema1 getInstance() { + public static UserloginGetCode200ResponseHeadersSchema1 getInstance() { if (instance == null) { - instance = new Code200ResponseHeadersSchema1(); + instance = new UserloginGetCode200ResponseHeadersSchema1(); } return instance; } - public Code200ResponseHeadersSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public UserloginGetCode200ResponseHeadersSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -345,10 +345,10 @@ public Code200ResponseHeadersSchemaMap getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new Code200ResponseHeadersSchemaMap(castProperties); + return new UserloginGetCode200ResponseHeadersSchemaMap(castProperties); } - public Code200ResponseHeadersSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + 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); @@ -374,11 +374,11 @@ public Code200ResponseHeadersSchemaMap validate(Map arg, SchemaConfigurati throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public Code200ResponseHeadersSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Code200ResponseHeadersSchema1BoxedMap(validate(arg, configuration)); + public UserloginGetCode200ResponseHeadersSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserloginGetCode200ResponseHeadersSchema1BoxedMap(validate(arg, configuration)); } @Override - public Code200ResponseHeadersSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public UserloginGetCode200ResponseHeadersSchema1Boxed 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/userlogout/get/UserlogoutGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java index 224e5c5e986..e122fdd65e0 100644 --- 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 @@ -1,6 +1,6 @@ package org.openapijsonschematools.client.paths.userlogout.get; -import org.openapijsonschematools.client.paths.userlogout.get.responses.CodedefaultResponse; +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; @@ -14,9 +14,9 @@ import java.util.AbstractMap; public class UserlogoutGetResponses { - public sealed interface EndpointResponse permits EndpointCodedefaultResponse {} + public sealed interface EndpointResponse permits EndpointUserlogoutGetCodedefaultResponse {} - public record EndpointCodedefaultResponse( + public record EndpointUserlogoutGetCodedefaultResponse( HttpResponse response, Void body, Void headers @@ -24,14 +24,14 @@ public record EndpointCodedefaultResponse( } public static final class UserlogoutGetResponses1 implements ResponsesDeserializer { - private final CodedefaultResponse.CodedefaultResponse1 defaultResponseDeserializer; + private final UserlogoutGetCodedefaultResponse.UserlogoutGetCodedefaultResponse1 defaultResponseDeserializer; public UserlogoutGetResponses1() { - this.defaultResponseDeserializer = new CodedefaultResponse.CodedefaultResponse1(); + this.defaultResponseDeserializer = new UserlogoutGetCodedefaultResponse.UserlogoutGetCodedefaultResponse1(); } public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + 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/CodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java deleted file mode 100644 index 827132f3fd6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/CodedefaultResponse.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogout.get.responses; - -import org.openapijsonschematools.client.components.responses.RefSuccessDescriptionOnly; - -public class CodedefaultResponse extends RefSuccessDescriptionOnly { - public static class CodedefaultResponse1 extends RefSuccessDescriptionOnly1 {} -} 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/delete/UserusernameDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java index b414e03b63f..8ab4e2b7b08 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.userusername.delete; -import org.openapijsonschematools.client.paths.userusername.delete.responses.Code200Response; -import org.openapijsonschematools.client.paths.userusername.delete.responses.Code404Response; +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; @@ -15,28 +15,28 @@ import java.util.AbstractMap; public class UserusernameDeleteResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointUserusernameDeleteCode200Response {} - public record EndpointCode200Response( + public record EndpointUserusernameDeleteCode200Response( HttpResponse response, Void body, Void headers ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode404ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusUserusernameDeleteCode200ResponseDeserializer, StatusUserusernameDeleteCode404ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusUserusernameDeleteCode200ResponseDeserializer extends UserusernameDeleteCode200Response.UserusernameDeleteCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusUserusernameDeleteCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusUserusernameDeleteCode404ResponseDeserializer()) ); } @@ -49,13 +49,13 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusUserusernameDeleteCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + return new EndpointUserusernameDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); } else { - StatusCode404ResponseDeserializer castDeserializer = (StatusCode404ResponseDeserializer) statusCodeDeserializer; + StatusUserusernameDeleteCode404ResponseDeserializer castDeserializer = (StatusUserusernameDeleteCode404ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code404Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java deleted file mode 100644 index 3dc59f474c4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.delete.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class Code200Response extends SuccessDescriptionOnly { - public static class Code200Response1 extends SuccessDescriptionOnly1 {} -} 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/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java similarity index 87% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java index ab220b57b21..8bd53126538 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code404Response { +public class UserusernameDeleteCode404Response { - public static class Code404Response1 extends ResponseDeserializer { - public Code404Response1() { + public static class UserusernameDeleteCode404Response1 extends ResponseDeserializer { + public UserusernameDeleteCode404Response1() { super( MapUtils.makeMap( ) 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 index f4235252b70..042305694da 100644 --- 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 @@ -1,8 +1,8 @@ package org.openapijsonschematools.client.paths.userusername.get; -import org.openapijsonschematools.client.paths.userusername.get.responses.Code200Response; -import org.openapijsonschematools.client.paths.userusername.get.responses.Code400Response; -import org.openapijsonschematools.client.paths.userusername.get.responses.Code404Response; +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; @@ -16,31 +16,31 @@ import java.util.AbstractMap; public class UserusernameGetResponses { - public sealed interface EndpointResponse permits EndpointCode200Response {} + public sealed interface EndpointResponse permits EndpointUserusernameGetCode200Response {} - public record EndpointCode200Response( + public record EndpointUserusernameGetCode200Response( HttpResponse response, - Code200Response.SealedResponseBody body, + UserusernameGetCode200Response.SealedResponseBody body, Void headers - ) implements EndpointResponse, ApiResponse{ + ) implements EndpointResponse, ApiResponse{ } - public sealed interface StatusCodeResponseDeserializer permits StatusCode200ResponseDeserializer, StatusCode400ResponseDeserializer, StatusCode404ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusUserusernameGetCode200ResponseDeserializer, StatusUserusernameGetCode400ResponseDeserializer, StatusUserusernameGetCode404ResponseDeserializer {} - public static final class StatusCode200ResponseDeserializer extends Code200Response.Code200Response1 implements StatusCodeResponseDeserializer { + public static final class StatusUserusernameGetCode200ResponseDeserializer extends UserusernameGetCode200Response.UserusernameGetCode200Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { + public static final class StatusUserusernameGetCode400ResponseDeserializer extends UserusernameGetCode400Response.UserusernameGetCode400Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 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 StatusCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("200", new StatusUserusernameGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusUserusernameGetCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusUserusernameGetCode404ResponseDeserializer()) ); } @@ -53,20 +53,20 @@ public EndpointResponse deserialize(HttpResponse response, SchemaConfigu response ); } - if (statusCodeDeserializer instanceof StatusCode200ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusUserusernameGetCode200ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else if (statusCodeDeserializer instanceof StatusCode400ResponseDeserializer castDeserializer) { + return new EndpointUserusernameGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else if (statusCodeDeserializer instanceof StatusUserusernameGetCode400ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + throw new UserusernameGetCode400Response.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); } else { - StatusCode404ResponseDeserializer castDeserializer = (StatusCode404ResponseDeserializer) statusCodeDeserializer; + StatusUserusernameGetCode404ResponseDeserializer castDeserializer = (StatusUserusernameGetCode404ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code404Response.ResponseApiException( + 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/responses/Code200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java similarity index 94% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java index e83a0bb7634..a71bf43bca4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code200Response { +public class UserusernameGetCode200Response { public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { @@ -41,8 +41,8 @@ public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, A public record ApplicationxmlResponseBody(ApplicationxmlSchema.User1Boxed body) implements SealedResponseBody { } public record ApplicationjsonResponseBody(ApplicationjsonSchema.User1Boxed body) implements SealedResponseBody { } - public static class Code200Response1 extends ResponseDeserializer { - public Code200Response1() { + public static class UserusernameGetCode200Response1 extends ResponseDeserializer { + public UserusernameGetCode200Response1() { super( Map.ofEntries( new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java index 4fcdb4ca075..71459da89cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class UserusernameGetCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class UserusernameGetCode400Response1 extends ResponseDeserializer { + public UserusernameGetCode400Response1() { super( MapUtils.makeMap( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java index cfa381bd2a1..6c106f8d43b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code404Response { +public class UserusernameGetCode404Response { - public static class Code404Response1 extends ResponseDeserializer { - public Code404Response1() { + public static class UserusernameGetCode404Response1 extends ResponseDeserializer { + public UserusernameGetCode404Response1() { super( MapUtils.makeMap( ) 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 index b28806d632c..533a25eabe5 100644 --- 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 @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.userusername.put; -import org.openapijsonschematools.client.paths.userusername.put.responses.Code400Response; -import org.openapijsonschematools.client.paths.userusername.put.responses.Code404Response; +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; @@ -15,19 +15,19 @@ public class UserusernamePutResponses { - public sealed interface StatusCodeResponseDeserializer permits StatusCode400ResponseDeserializer, StatusCode404ResponseDeserializer {} + public sealed interface StatusCodeResponseDeserializer permits StatusUserusernamePutCode400ResponseDeserializer, StatusUserusernamePutCode404ResponseDeserializer {} - public static final class StatusCode400ResponseDeserializer extends Code400Response.Code400Response1 implements StatusCodeResponseDeserializer { + public static final class StatusUserusernamePutCode400ResponseDeserializer extends UserusernamePutCode400Response.UserusernamePutCode400Response1 implements StatusCodeResponseDeserializer { } - public static final class StatusCode404ResponseDeserializer extends Code404Response.Code404Response1 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 StatusCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusCode404ResponseDeserializer()) + new AbstractMap.SimpleEntry<>("400", new StatusUserusernamePutCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusUserusernamePutCode404ResponseDeserializer()) ); } @@ -40,17 +40,17 @@ public Void deserialize(HttpResponse response, SchemaConfiguration confi response ); } - if (statusCodeDeserializer instanceof StatusCode400ResponseDeserializer castDeserializer) { + if (statusCodeDeserializer instanceof StatusUserusernamePutCode400ResponseDeserializer castDeserializer) { var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code400Response.ResponseApiException( + throw new UserusernamePutCode400Response.ResponseApiException( "Received error statusCode response from server", response, deserializedResponse ); } else { - StatusCode404ResponseDeserializer castDeserializer = (StatusCode404ResponseDeserializer) statusCodeDeserializer; + StatusUserusernamePutCode404ResponseDeserializer castDeserializer = (StatusUserusernamePutCode404ResponseDeserializer) statusCodeDeserializer; var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new Code404Response.ResponseApiException( + 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/responses/Code400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java index 600fd3fe1df..b29bac8a12a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code400Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code400Response { +public class UserusernamePutCode400Response { - public static class Code400Response1 extends ResponseDeserializer { - public Code400Response1() { + public static class UserusernamePutCode400Response1 extends ResponseDeserializer { + public UserusernamePutCode400Response1() { super( MapUtils.makeMap( ) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java similarity index 88% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java index c7aea37db95..c050f90e377 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/Code404Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.net.http.HttpHeaders; -public class Code404Response { +public class UserusernamePutCode404Response { - public static class Code404Response1 extends ResponseDeserializer { - public Code404Response1() { + public static class UserusernamePutCode404Response1 extends ResponseDeserializer { + public UserusernamePutCode404Response1() { super( MapUtils.makeMap( ) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 5c645ead84d..8be1f678c66 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -1156,14 +1156,14 @@ public String toResponseModuleName(String componentName, String jsonPath) { } return toModuleFilename(componentName, jsonPath); } + String prefix = getPathClassNamePrefix(jsonPath); switch (pathPieces.length) { case 5: // #/paths/somePath/verb/responses - String prefix = getPathClassNamePrefix(jsonPath); return prefix + "Responses"; case 6: // #/paths/somePath/verb/responses/200 - return toModelName("Code"+componentName+"Response", null); + return prefix + "Code"+ componentName + "Response"; default: return toModuleFilename("code"+componentName+"response", null); } @@ -2638,13 +2638,13 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St if (jsonPath.startsWith("#/components/responses/")) { return toModelName(lastJsonPathFragment, null); } else { + String prefix = getPathClassNamePrefix(jsonPath); if (jsonPath.endsWith("/responses")) { - String prefix = getPathClassNamePrefix(jsonPath); // #/paths/somePath/get/responses return prefix + "Responses"; } // #/paths/somePath/get/responses/200 - return toModelName("Code"+lastJsonPathFragment+"Response", null); + return prefix + "Code" + lastJsonPathFragment + "Response"; } case SERVER: if (jsonPath != null) { From 2bcf9c4ffede2eb6cd11b71eae15cbdc58b48881 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 00:10:23 -0700 Subject: [PATCH 15/21] Adds path api docs --- .../petstore/java/.openapi-generator/FILES | 56 +++ .../java/docs/apis/paths/Anotherfakedummy.md | 115 +++++ .../java/docs/apis/paths/Commonparamsubdir.md | 311 ++++++++++++ .../petstore/java/docs/apis/paths/Fake.md | 447 ++++++++++++++++++ ...akeadditionalpropertieswitharrayofenums.md | 101 ++++ .../docs/apis/paths/Fakebodywithfileschema.md | 115 +++++ .../apis/paths/Fakebodywithqueryparams.md | 139 ++++++ .../apis/paths/Fakecasesensitiveparams.md | 116 +++++ .../java/docs/apis/paths/Fakeclassnametest.md | 127 +++++ .../docs/apis/paths/Fakedeletecoffeeid.md | 116 +++++ .../java/docs/apis/paths/Fakehealth.md | 99 ++++ .../paths/Fakeinlineadditionalproperties.md | 113 +++++ .../docs/apis/paths/Fakeinlinecomposition.md | 108 +++++ .../java/docs/apis/paths/Fakejsonformdata.md | 101 ++++ .../java/docs/apis/paths/Fakejsonpatch.md | 101 ++++ .../docs/apis/paths/Fakejsonwithcharset.md | 101 ++++ .../Fakemultiplerequestbodycontenttypes.md | 103 ++++ .../apis/paths/Fakemultipleresponsebodies.md | 105 ++++ .../docs/apis/paths/Fakemultiplesecurities.md | 116 +++++ .../java/docs/apis/paths/Fakeobjinquery.md | 98 ++++ .../Fakeparametercollisions1ababselfab.md | 124 +++++ .../docs/apis/paths/Fakepemcontenttype.md | 101 ++++ .../Fakepetiduploadimagewithrequiredfile.md | 124 +++++ .../Fakequeryparamwithjsoncontenttype.md | 110 +++++ .../java/docs/apis/paths/Fakeredirection.md | 101 ++++ .../java/docs/apis/paths/Fakerefobjinquery.md | 98 ++++ .../docs/apis/paths/Fakerefsarraymodel.md | 103 ++++ .../docs/apis/paths/Fakerefsarrayofenums.md | 101 ++++ .../java/docs/apis/paths/Fakerefsboolean.md | 103 ++++ ...erefscomposedoneofnumberwithvalidations.md | 103 ++++ .../java/docs/apis/paths/Fakerefsenum.md | 103 ++++ .../java/docs/apis/paths/Fakerefsmammal.md | 106 +++++ .../java/docs/apis/paths/Fakerefsnumber.md | 103 ++++ .../paths/Fakerefsobjectmodelwithrefprops.md | 103 ++++ .../java/docs/apis/paths/Fakerefsstring.md | 103 ++++ .../apis/paths/Fakeresponsewithoutschema.md | 97 ++++ .../docs/apis/paths/Faketestqueryparamters.md | 137 ++++++ .../docs/apis/paths/Fakeuploaddownloadfile.md | 111 +++++ .../java/docs/apis/paths/Fakeuploadfile.md | 103 ++++ .../java/docs/apis/paths/Fakeuploadfiles.md | 103 ++++ .../docs/apis/paths/Fakewildcardresponses.md | 118 +++++ .../petstore/java/docs/apis/paths/Foo.md | 98 ++++ .../petstore/java/docs/apis/paths/Pet.md | 308 ++++++++++++ .../java/docs/apis/paths/Petfindbystatus.md | 133 ++++++ .../java/docs/apis/paths/Petfindbytags.md | 130 +++++ .../petstore/java/docs/apis/paths/Petpetid.md | 367 ++++++++++++++ .../docs/apis/paths/Petpetiduploadimage.md | 124 +++++ .../petstore/java/docs/apis/paths/Solidus.md | 97 ++++ .../java/docs/apis/paths/Storeinventory.md | 113 +++++ .../java/docs/apis/paths/Storeorder.md | 133 ++++++ .../java/docs/apis/paths/Storeorderorderid.md | 226 +++++++++ .../petstore/java/docs/apis/paths/User.md | 129 +++++ .../docs/apis/paths/Usercreatewitharray.md | 151 ++++++ .../docs/apis/paths/Usercreatewithlist.md | 151 ++++++ .../java/docs/apis/paths/Userlogin.md | 125 +++++ .../java/docs/apis/paths/Userlogout.md | 99 ++++ .../java/docs/apis/paths/Userusername.md | 359 ++++++++++++++ .../anotherfakedummy/AnotherfakedummyPatch.md | 13 +- .../CommonparamsubdirDelete.md | 13 +- .../commonparamsubdir/CommonparamsubdirGet.md | 13 +- .../CommonparamsubdirPost.md | 13 +- .../java/docs/paths/fake/FakeDelete.md | 13 +- .../petstore/java/docs/paths/fake/FakeGet.md | 13 +- .../java/docs/paths/fake/FakePatch.md | 13 +- .../petstore/java/docs/paths/fake/FakePost.md | 13 +- ...additionalpropertieswitharrayofenumsGet.md | 13 +- .../FakebodywithfileschemaPut.md | 13 +- .../FakebodywithqueryparamsPut.md | 13 +- .../FakecasesensitiveparamsPut.md | 13 +- .../FakeclassnametestPatch.md | 13 +- .../FakedeletecoffeeidDelete.md | 13 +- .../docs/paths/fakehealth/FakehealthGet.md | 13 +- .../FakeinlineadditionalpropertiesPost.md | 13 +- .../FakeinlinecompositionPost.md | 13 +- .../fakejsonformdata/FakejsonformdataGet.md | 13 +- .../paths/fakejsonpatch/FakejsonpatchPatch.md | 13 +- .../FakejsonwithcharsetPost.md | 13 +- ...FakemultiplerequestbodycontenttypesPost.md | 13 +- .../FakemultipleresponsebodiesGet.md | 13 +- .../FakemultiplesecuritiesGet.md | 13 +- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 13 +- .../Fakeparametercollisions1ababselfabPost.md | 13 +- .../FakepemcontenttypeGet.md | 13 +- ...akepetiduploadimagewithrequiredfilePost.md | 13 +- .../FakequeryparamwithjsoncontenttypeGet.md | 13 +- .../fakeredirection/FakeredirectionGet.md | 13 +- .../fakerefobjinquery/FakerefobjinqueryGet.md | 13 +- .../FakerefsarraymodelPost.md | 13 +- .../FakerefsarrayofenumsPost.md | 13 +- .../fakerefsboolean/FakerefsbooleanPost.md | 13 +- ...scomposedoneofnumberwithvalidationsPost.md | 13 +- .../paths/fakerefsenum/FakerefsenumPost.md | 13 +- .../fakerefsmammal/FakerefsmammalPost.md | 13 +- .../fakerefsnumber/FakerefsnumberPost.md | 13 +- .../FakerefsobjectmodelwithrefpropsPost.md | 13 +- .../fakerefsstring/FakerefsstringPost.md | 13 +- .../FakeresponsewithoutschemaGet.md | 13 +- .../FaketestqueryparamtersPut.md | 13 +- .../FakeuploaddownloadfilePost.md | 13 +- .../fakeuploadfile/FakeuploadfilePost.md | 13 +- .../fakeuploadfiles/FakeuploadfilesPost.md | 13 +- .../FakewildcardresponsesGet.md | 13 +- .../petstore/java/docs/paths/foo/FooGet.md | 13 +- .../petstore/java/docs/paths/pet/PetPost.md | 13 +- .../petstore/java/docs/paths/pet/PetPut.md | 13 +- .../petfindbystatus/PetfindbystatusGet.md | 13 +- .../paths/petfindbytags/PetfindbytagsGet.md | 13 +- .../docs/paths/petpetid/PetpetidDelete.md | 13 +- .../java/docs/paths/petpetid/PetpetidGet.md | 13 +- .../java/docs/paths/petpetid/PetpetidPost.md | 13 +- .../PetpetiduploadimagePost.md | 13 +- .../java/docs/paths/solidus/SolidusGet.md | 13 +- .../paths/storeinventory/StoreinventoryGet.md | 13 +- .../docs/paths/storeorder/StoreorderPost.md | 13 +- .../StoreorderorderidDelete.md | 13 +- .../storeorderorderid/StoreorderorderidGet.md | 13 +- .../petstore/java/docs/paths/user/UserPost.md | 13 +- .../UsercreatewitharrayPost.md | 13 +- .../UsercreatewithlistPost.md | 13 +- .../java/docs/paths/userlogin/UserloginGet.md | 13 +- .../docs/paths/userlogout/UserlogoutGet.md | 13 +- .../paths/userusername/UserusernameDelete.md | 13 +- .../paths/userusername/UserusernameGet.md | 13 +- .../paths/userusername/UserusernamePut.md | 13 +- .../DefaultGeneratorRunner.java | 30 +- .../codegen/generators/DefaultGenerator.java | 4 +- .../generators/JavaClientGenerator.java | 6 + .../openapimodels/CodegenOperation.java | 12 +- .../java/packagename/apis/paths/ApiDoc.hbs | 42 ++ .../paths/path/verb/OperationDoc.hbs | 30 +- .../paths/path/verb/_FinalRequestClassDoc.hbs | 2 +- 131 files changed, 8599 insertions(+), 84 deletions(-) create mode 100644 samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fake.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakehealth.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeredirection.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Foo.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Pet.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Petfindbytags.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Petpetid.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Solidus.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Storeinventory.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Storeorder.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md create mode 100644 samples/client/petstore/java/docs/apis/paths/User.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Userlogin.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Userlogout.md create mode 100644 samples/client/petstore/java/docs/apis/paths/Userusername.md create mode 100644 src/main/resources/java/src/main/java/packagename/apis/paths/ApiDoc.hbs diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 21b0e01ab3e..fb334932d4f 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -1,5 +1,61 @@ README.md docs/RootServerInfo.md +docs/apis/paths/Anotherfakedummy.md +docs/apis/paths/Commonparamsubdir.md +docs/apis/paths/Fake.md +docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md +docs/apis/paths/Fakebodywithfileschema.md +docs/apis/paths/Fakebodywithqueryparams.md +docs/apis/paths/Fakecasesensitiveparams.md +docs/apis/paths/Fakeclassnametest.md +docs/apis/paths/Fakedeletecoffeeid.md +docs/apis/paths/Fakehealth.md +docs/apis/paths/Fakeinlineadditionalproperties.md +docs/apis/paths/Fakeinlinecomposition.md +docs/apis/paths/Fakejsonformdata.md +docs/apis/paths/Fakejsonpatch.md +docs/apis/paths/Fakejsonwithcharset.md +docs/apis/paths/Fakemultiplerequestbodycontenttypes.md +docs/apis/paths/Fakemultipleresponsebodies.md +docs/apis/paths/Fakemultiplesecurities.md +docs/apis/paths/Fakeobjinquery.md +docs/apis/paths/Fakeparametercollisions1ababselfab.md +docs/apis/paths/Fakepemcontenttype.md +docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md +docs/apis/paths/Fakequeryparamwithjsoncontenttype.md +docs/apis/paths/Fakeredirection.md +docs/apis/paths/Fakerefobjinquery.md +docs/apis/paths/Fakerefsarraymodel.md +docs/apis/paths/Fakerefsarrayofenums.md +docs/apis/paths/Fakerefsboolean.md +docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md +docs/apis/paths/Fakerefsenum.md +docs/apis/paths/Fakerefsmammal.md +docs/apis/paths/Fakerefsnumber.md +docs/apis/paths/Fakerefsobjectmodelwithrefprops.md +docs/apis/paths/Fakerefsstring.md +docs/apis/paths/Fakeresponsewithoutschema.md +docs/apis/paths/Faketestqueryparamters.md +docs/apis/paths/Fakeuploaddownloadfile.md +docs/apis/paths/Fakeuploadfile.md +docs/apis/paths/Fakeuploadfiles.md +docs/apis/paths/Fakewildcardresponses.md +docs/apis/paths/Foo.md +docs/apis/paths/Pet.md +docs/apis/paths/Petfindbystatus.md +docs/apis/paths/Petfindbytags.md +docs/apis/paths/Petpetid.md +docs/apis/paths/Petpetiduploadimage.md +docs/apis/paths/Solidus.md +docs/apis/paths/Storeinventory.md +docs/apis/paths/Storeorder.md +docs/apis/paths/Storeorderorderid.md +docs/apis/paths/User.md +docs/apis/paths/Usercreatewitharray.md +docs/apis/paths/Usercreatewithlist.md +docs/apis/paths/Userlogin.md +docs/apis/paths/Userlogout.md +docs/apis/paths/Userusername.md docs/components/headers/Int32JsonContentTypeHeader.md docs/components/headers/NumberHeader.md docs/components/headers/RefContentSchemaHeader.md diff --git a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md new file mode 100644 index 00000000000..15de0791c21 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md @@ -0,0 +1,115 @@ +# Anotherfakedummy + +public class extends extends ApiClient implements +[AnotherfakedummyPatch.PatchOperation](../../paths/anotherfakedummy/AnotherfakedummyPatch.md#patchoperation) + +an api client class which contains all the routes for path="/another-fake/dummy" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | [patch](#patch)([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch#patchrequest) request)
To test special tags and operation ID starting with number | + +## Method Detail + +### patch +public [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) patch([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch#patchrequest) request) + +To test special tags and operation ID starting with number + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md new file mode 100644 index 00000000000..74c700fce3b --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md @@ -0,0 +1,311 @@ +# Commonparamsubdir + +public class extends extends ApiClient implements +[CommonparamsubdirDelete.DeleteOperation](../../paths/commonparamsubdir/CommonparamsubdirDelete.md#deleteoperation), +[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="/commonParam/{subDir}/" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | [delete](#delete)([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete#deleterequest) request)
common param is overwritten | +| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | [get](#get)([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet#getrequest) request) | +| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | [post](#post)([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost#postrequest) request) | + +## Method Detail + +### delete +public [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) delete([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete#deleterequest) request) + +common param is overwritten + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +CommonparamsubdirDelete.Delete apiClient = new CommonparamsubdirDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters = + CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( + new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMapBuilder() + .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; +``` +### get +public [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) get([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +CommonparamsubdirGet.Get apiClient = new CommonparamsubdirGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters = + CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( + new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMapBuilder() + .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; +``` +### post +public [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) post([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost#postrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +CommonparamsubdirPost.Post apiClient = new CommonparamsubdirPost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters = + CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( + new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMapBuilder() + .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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fake.md b/samples/client/petstore/java/docs/apis/paths/Fake.md new file mode 100644 index 00000000000..67f201561f3 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fake.md @@ -0,0 +1,447 @@ +# Fake + +public class extends extends ApiClient implements +[FakeDelete.DeleteOperation](../../paths/fake/FakeDelete.md#deleteoperation), +[FakeGet.GetOperation](../../paths/fake/FakeGet.md#getoperation), +[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="/fake" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | [delete](#delete)([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete#deleterequest) request)
Fake endpoint to test group parameters (optional) | +| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | [get](#get)([FakeGet.GetRequest](../../paths/fake/FakeGet#getrequest) request)
To test enum parameters | +| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | [patch](#patch)([FakePatch.PatchRequest](../../paths/fake/FakePatch#patchrequest) request)
To test "client" model | +| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | [post](#post)([FakePost.PostRequest](../../paths/fake/FakePost#postrequest) request)
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| + +## Method Detail + +### delete +public [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) delete([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete#deleterequest) request) + +Fake endpoint to test group parameters (optional) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeDelete.Delete apiClient = new FakeDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters = + FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( + new FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMapBuilder() + .required_boolean_group("true") + + .boolean_group("true") + + .build(), + schemaConfiguration +); + +// Map validation +FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters = + FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( + new FakeDeleteQueryParameters.FakeDeleteQueryParametersMapBuilder() + .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; +``` +### get +public [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) get([FakeGet.GetRequest](../../paths/fake/FakeGet#getrequest) request) + +To test enum parameters + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` +### patch +public [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) patch([FakePatch.PatchRequest](../../paths/fake/FakePatch#patchrequest) request) + +To test "client" model + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` +### post +public [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) post([FakePost.PostRequest](../../paths/fake/FakePost#postrequest) request) + +Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
+ +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md new file mode 100644 index 00000000000..fc7610b563f --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md @@ -0,0 +1,101 @@ +# Fakeadditionalpropertieswitharrayofenums + +public class extends extends ApiClient implements +[FakeadditionalpropertieswitharrayofenumsGet.GetOperation](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#getoperation) + +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 | +| ----------------- | ---------------------- | +| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | [get](#get)([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#getrequest) request) | + +## Method Detail + +### get +public [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) get([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md new file mode 100644 index 00000000000..18e03cc74b6 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md @@ -0,0 +1,115 @@ +# Fakebodywithfileschema + +public class extends extends ApiClient implements +[FakebodywithfileschemaPut.PutOperation](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#putoperation) + +an api client class which contains all the routes for path="/fake/body-with-file-schema" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | [put](#put)([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut#putrequest) request)
For this test, the body for this request much reference a schema named `File`. | + +## Method Detail + +### put +public [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) put([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut#putrequest) request) + +For this test, the body for this request much reference a schema named `File`. + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md new file mode 100644 index 00000000000..4480231eca1 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md @@ -0,0 +1,139 @@ +# Fakebodywithqueryparams + +public class extends extends ApiClient implements +[FakebodywithqueryparamsPut.PutOperation](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#putoperation) + +an api client class which contains all the routes for path="/fake/body-with-query-params" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | [put](#put)([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#putrequest) request) | + +## Method Detail + +### put +public [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) put([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#putrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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.FakebodywithqueryparamsPutQueryParametersMap queryParameters = + FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( + new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMapBuilder() + .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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md new file mode 100644 index 00000000000..a3ae96aef73 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md @@ -0,0 +1,116 @@ +# Fakecasesensitiveparams + +public class extends extends ApiClient implements +[FakecasesensitiveparamsPut.PutOperation](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#putoperation) + +an api client class which contains all the routes for path="/fake/case-sensitive-params" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | [put](#put)([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#putrequest) request)
Ensures that original naming is used in endpoint params, that way we don't have collisions | + +## Method Detail + +### put +public [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) put([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#putrequest) request) + +Ensures that original naming is used in endpoint params, that way we don't have collisions + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakecasesensitiveparamsPut.Put apiClient = new FakecasesensitiveparamsPut.Put(apiConfiguration, schemaConfiguration); + + +// Map validation +FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters = + FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( + new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMapBuilder() + .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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md new file mode 100644 index 00000000000..736de61ee18 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md @@ -0,0 +1,127 @@ +# Fakeclassnametest + +public class extends extends ApiClient implements +[FakeclassnametestPatch.PatchOperation](../../paths/fakeclassnametest/FakeclassnametestPatch.md#patchoperation) + +an api client class which contains all the routes for path="/fake_classname_test" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | [patch](#patch)([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch#patchrequest) request)
To test class name in snake case | + +## Method Detail + +### patch +public [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) patch([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch#patchrequest) request) + +To test class name in snake case + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md new file mode 100644 index 00000000000..3f453bb0fd3 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md @@ -0,0 +1,116 @@ +# Fakedeletecoffeeid + +public class extends extends ApiClient implements +[FakedeletecoffeeidDelete.DeleteOperation](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#deleteoperation) + +an api client class which contains all the routes for path="/fake/deleteCoffee/{id}" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | [delete](#delete)([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#deleterequest) request)
Delete the coffee identified by the given id, (delete without request body) | + +## Method Detail + +### delete +public [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) delete([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#deleterequest) request) + +Delete the coffee identified by the given id, (delete without request body) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakedeletecoffeeidDelete.Delete apiClient = new FakedeletecoffeeidDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters = + FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( + new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMapBuilder() + .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; +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md new file mode 100644 index 00000000000..361002d27cb --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md @@ -0,0 +1,99 @@ +# Fakehealth + +public class extends extends ApiClient implements +[FakehealthGet.GetOperation](../../paths/fakehealth/FakehealthGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/health" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | [get](#get)([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet#getrequest) request) | + +## Method Detail + +### get +public [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) get([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md new file mode 100644 index 00000000000..87761e0c47b --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md @@ -0,0 +1,113 @@ +# Fakeinlineadditionalproperties + +public class extends extends ApiClient implements +[FakeinlineadditionalpropertiesPost.PostOperation](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/inline-additionalProperties" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | [post](#post)([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#postrequest) request)
| + +## Method Detail + +### post +public [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) post([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md new file mode 100644 index 00000000000..023ff58cce1 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md @@ -0,0 +1,108 @@ +# Fakeinlinecomposition + +public class extends extends ApiClient implements +[FakeinlinecompositionPost.PostOperation](../../paths/fakeinlinecomposition/FakeinlinecompositionPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/inlineComposition/" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | [post](#post)([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | + +## Method Detail + +### post +public [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) post([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost#postrequest) request) + +composed schemas at inline locations + multiple requestBody content types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md new file mode 100644 index 00000000000..67db29a1ad0 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md @@ -0,0 +1,101 @@ +# Fakejsonformdata + +public class extends extends ApiClient implements +[FakejsonformdataGet.GetOperation](../../paths/fakejsonformdata/FakejsonformdataGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/jsonFormData" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | [get](#get)([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet#getrequest) request)
| + +## Method Detail + +### get +public [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) get([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet#getrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md new file mode 100644 index 00000000000..8dc355a710c --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md @@ -0,0 +1,101 @@ +# Fakejsonpatch + +public class extends extends ApiClient implements +[FakejsonpatchPatch.PatchOperation](../../paths/fakejsonpatch/FakejsonpatchPatch.md#patchoperation) + +an api client class which contains all the routes for path="/fake/jsonPatch" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | [patch](#patch)([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch#patchrequest) request)
json patch route with a requestBody | + +## Method Detail + +### patch +public [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) patch([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch#patchrequest) request) + +json patch route with a requestBody + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md new file mode 100644 index 00000000000..dcb951147ee --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md @@ -0,0 +1,101 @@ +# Fakejsonwithcharset + +public class extends extends ApiClient implements +[FakejsonwithcharsetPost.PostOperation](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/jsonWithCharset" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | [post](#post)([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost#postrequest) request) | + +## Method Detail + +### post +public [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) post([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost#postrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md new file mode 100644 index 00000000000..01ff9d126f0 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md @@ -0,0 +1,103 @@ +# Fakemultiplerequestbodycontenttypes + +public class extends extends ApiClient implements +[FakemultiplerequestbodycontenttypesPost.PostOperation](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/multipleRequestBodyContentTypes/" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | [post](#post)([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | + +## Method Detail + +### post +public [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) post([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#postrequest) request) + +composed schemas at inline locations + multiple requestBody content types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md new file mode 100644 index 00000000000..add58e6b94b --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md @@ -0,0 +1,105 @@ +# Fakemultipleresponsebodies + +public class extends extends ApiClient implements +[FakemultipleresponsebodiesGet.GetOperation](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/multipleResponseBodies" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | [get](#get)([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#getrequest) request) | + +## Method Detail + +### get +public [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) get([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md new file mode 100644 index 00000000000..344974b14b3 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md @@ -0,0 +1,116 @@ +# Fakemultiplesecurities + +public class extends extends ApiClient implements +[FakemultiplesecuritiesGet.GetOperation](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/multipleSecurities" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | [get](#get)([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet#getrequest) request) | + +## Method Detail + +### get +public [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) get([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md new file mode 100644 index 00000000000..d9eac90cd75 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md @@ -0,0 +1,98 @@ +# Fakeobjinquery + +public class extends extends ApiClient implements +[FakeobjinqueryGet.GetOperation](../../paths/fakeobjinquery/FakeobjinqueryGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/objInQuery" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | [get](#get)([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet#getrequest) request) | + +## Method Detail + +### get +public [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) get([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md new file mode 100644 index 00000000000..ba40dd12bfc --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md @@ -0,0 +1,124 @@ +# Fakeparametercollisions1ababselfab + +public class extends extends ApiClient implements +[Fakeparametercollisions1ababselfabPost.PostOperation](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#postoperation) + +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 | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | [post](#post)([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#postrequest) request) | + +## Method Detail + +### post +public [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) post([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#postrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fakeparametercollisions1ababselfabPost.Post apiClient = new Fakeparametercollisions1ababselfabPost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters = + Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( + new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() + .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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md new file mode 100644 index 00000000000..107f30fd7cd --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md @@ -0,0 +1,101 @@ +# Fakepemcontenttype + +public class extends extends ApiClient implements +[FakepemcontenttypeGet.GetOperation](../../paths/fakepemcontenttype/FakepemcontenttypeGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/pemContentType" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | [get](#get)([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet#getrequest) request) | + +## Method Detail + +### get +public [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) get([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md new file mode 100644 index 00000000000..72996808448 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md @@ -0,0 +1,124 @@ +# Fakepetiduploadimagewithrequiredfile + +public class extends extends ApiClient implements +[FakepetiduploadimagewithrequiredfilePost.PostOperation](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#postoperation) + +an api client class which contains all the routes for path="/fake/{petId}/uploadImageWithRequiredFile" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | [post](#post)([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#postrequest) request)
| + +## Method Detail + +### post +public [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) post([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakepetiduploadimagewithrequiredfilePost.Post apiClient = new FakepetiduploadimagewithrequiredfilePost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters = + FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( + new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() + .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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md new file mode 100644 index 00000000000..785ee0eabc4 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md @@ -0,0 +1,110 @@ +# Fakequeryparamwithjsoncontenttype + +public class extends extends ApiClient implements +[FakequeryparamwithjsoncontenttypeGet.GetOperation](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/queryParamWithJsonContentType" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | [get](#get)([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#getrequest) request) | + +## Method Detail + +### get +public [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) get([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakequeryparamwithjsoncontenttypeGet.Get apiClient = new FakequeryparamwithjsoncontenttypeGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters = + FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( + new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() + .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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md new file mode 100644 index 00000000000..7b6532db141 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md @@ -0,0 +1,101 @@ +# Fakeredirection + +public class extends extends ApiClient implements +[FakeredirectionGet.GetOperation](../../paths/fakeredirection/FakeredirectionGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/redirection" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | [get](#get)([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet#getrequest) request) | + +## Method Detail + +### get +public [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) get([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md new file mode 100644 index 00000000000..2fa55ebcc32 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md @@ -0,0 +1,98 @@ +# Fakerefobjinquery + +public class extends extends ApiClient implements +[FakerefobjinqueryGet.GetOperation](../../paths/fakerefobjinquery/FakerefobjinqueryGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/refObjInQuery" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | [get](#get)([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet#getrequest) request) | + +## Method Detail + +### get +public [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) get([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md new file mode 100644 index 00000000000..6907164d6bf --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md @@ -0,0 +1,103 @@ +# Fakerefsarraymodel + +public class extends extends ApiClient implements +[FakerefsarraymodelPost.PostOperation](../../paths/fakerefsarraymodel/FakerefsarraymodelPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/refs/arraymodel" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | [post](#post)([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost#postrequest) request)
Test serialization of ArrayModel | + +## Method Detail + +### post +public [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) post([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost#postrequest) request) + +Test serialization of ArrayModel + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md new file mode 100644 index 00000000000..a2ced298839 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md @@ -0,0 +1,101 @@ +# Fakerefsarrayofenums + +public class extends extends ApiClient implements +[FakerefsarrayofenumsPost.PostOperation](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/refs/array-of-enums" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | [post](#post)([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#postrequest) request) | + +## Method Detail + +### post +public [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) post([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#postrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md new file mode 100644 index 00000000000..f4aef212b6f --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md @@ -0,0 +1,103 @@ +# Fakerefsboolean + +public class extends extends ApiClient implements +[FakerefsbooleanPost.PostOperation](../../paths/fakerefsboolean/FakerefsbooleanPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/refs/boolean" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | [post](#post)([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost#postrequest) request)
Test serialization of outer boolean types | + +## Method Detail + +### post +public [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) post([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost#postrequest) request) + +Test serialization of outer boolean types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md new file mode 100644 index 00000000000..ad63439b19c --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md @@ -0,0 +1,103 @@ +# Fakerefscomposedoneofnumberwithvalidations + +public class extends extends ApiClient implements +[FakerefscomposedoneofnumberwithvalidationsPost.PostOperation](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#postoperation) + +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 | +| ----------------- | ---------------------- | +| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | [post](#post)([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#postrequest) request)
Test serialization of object with $refed properties | + +## Method Detail + +### post +public [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) post([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#postrequest) request) + +Test serialization of object with $refed properties + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md new file mode 100644 index 00000000000..f3fe6a74669 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md @@ -0,0 +1,103 @@ +# Fakerefsenum + +public class extends extends ApiClient implements +[FakerefsenumPost.PostOperation](../../paths/fakerefsenum/FakerefsenumPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/refs/enum" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | [post](#post)([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost#postrequest) request)
Test serialization of outer enum | + +## Method Detail + +### post +public [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) post([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost#postrequest) request) + +Test serialization of outer enum + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md new file mode 100644 index 00000000000..550ca0e1fca --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md @@ -0,0 +1,106 @@ +# Fakerefsmammal + +public class extends extends ApiClient implements +[FakerefsmammalPost.PostOperation](../../paths/fakerefsmammal/FakerefsmammalPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/refs/mammal" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | [post](#post)([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost#postrequest) request)
Test serialization of mammals | + +## Method Detail + +### post +public [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) post([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost#postrequest) request) + +Test serialization of mammals + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md new file mode 100644 index 00000000000..0b562b98feb --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md @@ -0,0 +1,103 @@ +# Fakerefsnumber + +public class extends extends ApiClient implements +[FakerefsnumberPost.PostOperation](../../paths/fakerefsnumber/FakerefsnumberPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/refs/number" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | [post](#post)([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost#postrequest) request)
Test serialization of outer number types | + +## Method Detail + +### post +public [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) post([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost#postrequest) request) + +Test serialization of outer number types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md new file mode 100644 index 00000000000..051e9eba088 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md @@ -0,0 +1,103 @@ +# Fakerefsobjectmodelwithrefprops + +public class extends extends ApiClient implements +[FakerefsobjectmodelwithrefpropsPost.PostOperation](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#postoperation) + +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 | +| ----------------- | ---------------------- | +| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | [post](#post)([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#postrequest) request)
Test serialization of object with $refed properties | + +## Method Detail + +### post +public [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) post([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#postrequest) request) + +Test serialization of object with $refed properties + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md new file mode 100644 index 00000000000..6b9581d75a1 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md @@ -0,0 +1,103 @@ +# Fakerefsstring + +public class extends extends ApiClient implements +[FakerefsstringPost.PostOperation](../../paths/fakerefsstring/FakerefsstringPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/refs/string" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | [post](#post)([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost#postrequest) request)
Test serialization of outer string types | + +## Method Detail + +### post +public [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) post([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost#postrequest) request) + +Test serialization of outer string types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md new file mode 100644 index 00000000000..37df922b043 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md @@ -0,0 +1,97 @@ +# Fakeresponsewithoutschema + +public class extends extends ApiClient implements +[FakeresponsewithoutschemaGet.GetOperation](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/responseWithoutSchema" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | [get](#get)([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#getrequest) request) | + +## Method Detail + +### get +public [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) get([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md new file mode 100644 index 00000000000..d8b8607eede --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md @@ -0,0 +1,137 @@ +# Faketestqueryparamters + +public class extends extends ApiClient implements +[FaketestqueryparamtersPut.PutOperation](../../paths/faketestqueryparamters/FaketestqueryparamtersPut.md#putoperation) + +an api client class which contains all the routes for path="/fake/test-query-paramters" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | [put](#put)([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut#putrequest) request)
To test the collection format in query parameters | + +## Method Detail + +### put +public [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) put([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut#putrequest) request) + +To test the collection format in query parameters + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FaketestqueryparamtersPut.Put apiClient = new FaketestqueryparamtersPut.Put(apiConfiguration, schemaConfiguration); + + +// Map validation +FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters = + FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( + new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMapBuilder() + .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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md new file mode 100644 index 00000000000..586a45700d3 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md @@ -0,0 +1,111 @@ +# Fakeuploaddownloadfile + +public class extends extends ApiClient implements +[FakeuploaddownloadfilePost.PostOperation](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#postoperation) + +an api client class which contains all the routes for path="/fake/uploadDownloadFile" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | [post](#post)([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#postrequest) request)
| + +## Method Detail + +### post +public [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) post([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md new file mode 100644 index 00000000000..8f6313a258a --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md @@ -0,0 +1,103 @@ +# Fakeuploadfile + +public class extends extends ApiClient implements +[FakeuploadfilePost.PostOperation](../../paths/fakeuploadfile/FakeuploadfilePost.md#postoperation) + +an api client class which contains all the routes for path="/fake/uploadFile" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | [post](#post)([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost#postrequest) request)
| + +## Method Detail + +### post +public [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) post([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md new file mode 100644 index 00000000000..5b73f1c5421 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md @@ -0,0 +1,103 @@ +# Fakeuploadfiles + +public class extends extends ApiClient implements +[FakeuploadfilesPost.PostOperation](../../paths/fakeuploadfiles/FakeuploadfilesPost.md#postoperation) + +an api client class which contains all the routes for path="/fake/uploadFiles" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | [post](#post)([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost#postrequest) request)
| + +## Method Detail + +### post +public [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) post([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md new file mode 100644 index 00000000000..a89d426a0ce --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md @@ -0,0 +1,118 @@ +# Fakewildcardresponses + +public class extends extends ApiClient implements +[FakewildcardresponsesGet.GetOperation](../../paths/fakewildcardresponses/FakewildcardresponsesGet.md#getoperation) + +an api client class which contains all the routes for path="/fake/wildCardResponses" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | [get](#get)([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet#getrequest) request) | + +## Method Detail + +### get +public [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) get([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Foo.md b/samples/client/petstore/java/docs/apis/paths/Foo.md new file mode 100644 index 00000000000..e59ee19a43e --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Foo.md @@ -0,0 +1,98 @@ +# Foo + +public class extends extends ApiClient implements +[FooGet.GetOperation](../../paths/foo/FooGet.md#getoperation) + +an api client class which contains all the routes for path="/foo" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | [get](#get)([FooGet.GetRequest](../../paths/foo/FooGet#getrequest) request) | + +## Method Detail + +### get +public [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) get([FooGet.GetRequest](../../paths/foo/FooGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.AbstractMap; + +// if you want to 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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Pet.md b/samples/client/petstore/java/docs/apis/paths/Pet.md new file mode 100644 index 00000000000..1f90a9ea082 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Pet.md @@ -0,0 +1,308 @@ +# Pet + +public class 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="/pet" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | [post](#post)([PetPost.PostRequest](../../paths/pet/PetPost#postrequest) request)
Add a new pet to the store | +| Void | [put](#put)([PetPut.PutRequest](../../paths/pet/PetPut#putrequest) request)
| + +## Method Detail + +### post +public [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) post([PetPost.PostRequest](../../paths/pet/PetPost#postrequest) request) + +Add a new pet to the store + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +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; +``` +### put +public Void put([PetPut.PutRequest](../../paths/pet/PetPut#putrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +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; +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md new file mode 100644 index 00000000000..57020242149 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md @@ -0,0 +1,133 @@ +# Petfindbystatus + +public class extends extends ApiClient implements +[PetfindbystatusGet.GetOperation](../../paths/petfindbystatus/PetfindbystatusGet.md#getoperation) + +an api client class which contains all the routes for path="/pet/findByStatus" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | [get](#get)([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet#getrequest) request)
Multiple status values can be provided with comma separated strings | + +## Method Detail + +### get +public [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) get([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet#getrequest) request) + +Multiple status values can be provided with comma separated strings + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.AbstractMap; + +// if you want to 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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetfindbystatusGet.Get apiClient = new PetfindbystatusGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters = + PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( + new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMapBuilder() + .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; +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md new file mode 100644 index 00000000000..4e0571df2ef --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md @@ -0,0 +1,130 @@ +# Petfindbytags + +public class extends extends ApiClient implements +[PetfindbytagsGet.GetOperation](../../paths/petfindbytags/PetfindbytagsGet.md#getoperation) + +an api client class which contains all the routes for path="/pet/findByTags" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | [get](#get)([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet#getrequest) request)
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. | + +## Method Detail + +### get +public [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) get([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet#getrequest) request) + +Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetfindbytagsGet.Get apiClient = new PetfindbytagsGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters = + PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( + new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMapBuilder() + .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; +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetid.md b/samples/client/petstore/java/docs/apis/paths/Petpetid.md new file mode 100644 index 00000000000..bfb275ecd83 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Petpetid.md @@ -0,0 +1,367 @@ +# Petpetid + +public class extends extends ApiClient implements +[PetpetidDelete.DeleteOperation](../../paths/petpetid/PetpetidDelete.md#deleteoperation), +[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="/pet/{petId}" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | [delete](#delete)([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete#deleterequest) request)
| +| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | [get](#get)([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet#getrequest) request)
Returns a single pet | +| Void | [post](#post)([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost#postrequest) request)
| + +## Method Detail + +### delete +public Void delete([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete#deleterequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetpetidDelete.Delete apiClient = new PetpetidDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters = + PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( + new PetpetidDeletePathParameters.PetpetidDeletePathParametersMapBuilder() + .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; +} +``` +### get +public [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) get([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet#getrequest) request) + +Returns a single pet + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetpetidGet.Get apiClient = new PetpetidGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters = + PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( + new PetpetidGetPathParameters.PetpetidGetPathParametersMapBuilder() + .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 +} +``` +### post +public Void post([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetpetidPost.Post apiClient = new PetpetidPost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters = + PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( + new PetpetidPostPathParameters.PetpetidPostPathParametersMapBuilder() + .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; +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md new file mode 100644 index 00000000000..3f34af79e7c --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md @@ -0,0 +1,124 @@ +# Petpetiduploadimage + +public class extends extends ApiClient implements +[PetpetiduploadimagePost.PostOperation](../../paths/petpetiduploadimage/PetpetiduploadimagePost.md#postoperation) + +an api client class which contains all the routes for path="/pet/{petId}/uploadImage" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | [post](#post)([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost#postrequest) request)
| + +## Method Detail + +### post +public [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) post([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetpetiduploadimagePost.Post apiClient = new PetpetiduploadimagePost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters = + PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( + new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMapBuilder() + .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; +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Solidus.md b/samples/client/petstore/java/docs/apis/paths/Solidus.md new file mode 100644 index 00000000000..e4d232875f6 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Solidus.md @@ -0,0 +1,97 @@ +# Solidus + +public class extends extends ApiClient implements +[SolidusGet.GetOperation](../../paths/solidus/SolidusGet.md#getoperation) + +an api client class which contains all the routes for path="/" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | [get](#get)([SolidusGet.GetRequest](../../paths/solidus/SolidusGet#getrequest) request) | + +## Method Detail + +### get +public [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) get([SolidusGet.GetRequest](../../paths/solidus/SolidusGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md new file mode 100644 index 00000000000..9301c27afb4 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md @@ -0,0 +1,113 @@ +# Storeinventory + +public class extends extends ApiClient implements +[StoreinventoryGet.GetOperation](../../paths/storeinventory/StoreinventoryGet.md#getoperation) + +an api client class which contains all the routes for path="/store/inventory" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | [get](#get)([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet#getrequest) request)
Returns a map of status codes to quantities | + +## Method Detail + +### get +public [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) get([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet#getrequest) request) + +Returns a map of status codes to quantities + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +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; +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorder.md b/samples/client/petstore/java/docs/apis/paths/Storeorder.md new file mode 100644 index 00000000000..3e6d7cc9eec --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Storeorder.md @@ -0,0 +1,133 @@ +# Storeorder + +public class extends extends ApiClient implements +[StoreorderPost.PostOperation](../../paths/storeorder/StoreorderPost.md#postoperation) + +an api client class which contains all the routes for path="/store/order" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | [post](#post)([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost#postrequest) request)
| + +## Method Detail + +### post +public [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) post([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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 +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md new file mode 100644 index 00000000000..5337cf88edd --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md @@ -0,0 +1,226 @@ +# Storeorderorderid + +public class 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="/store/order/{order_id}" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | [delete](#delete)([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete#deleterequest) request)
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors | +| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | [get](#get)([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet#getrequest) request)
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions | + +## Method Detail + +### delete +public Void delete([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete#deleterequest) request) + +For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +StoreorderorderidDelete.Delete apiClient = new StoreorderorderidDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters = + StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( + new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMapBuilder() + .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; +} +``` +### get +public [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) get([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet#getrequest) request) + +For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +StoreorderorderidGet.Get apiClient = new StoreorderorderidGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters = + StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( + new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMapBuilder() + .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 +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/User.md b/samples/client/petstore/java/docs/apis/paths/User.md new file mode 100644 index 00000000000..44616c44cc9 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/User.md @@ -0,0 +1,129 @@ +# User + +public class extends extends ApiClient implements +[UserPost.PostOperation](../../paths/user/UserPost.md#postoperation) + +an api client class which contains all the routes for path="/user" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | [post](#post)([UserPost.PostRequest](../../paths/user/UserPost#postrequest) request)
This can only be done by the logged in user. | + +## Method Detail + +### post +public [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) post([UserPost.PostRequest](../../paths/user/UserPost#postrequest) request) + +This can only be done by the logged in user. + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md new file mode 100644 index 00000000000..5dc76ea0766 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md @@ -0,0 +1,151 @@ +# Usercreatewitharray + +public class extends extends ApiClient implements +[UsercreatewitharrayPost.PostOperation](../../paths/usercreatewitharray/UsercreatewitharrayPost.md#postoperation) + +an api client class which contains all the routes for path="/user/createWithArray" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | [post](#post)([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost#postrequest) request)
| + +## Method Detail + +### post +public [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) post([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md new file mode 100644 index 00000000000..c7bc845fadb --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md @@ -0,0 +1,151 @@ +# Usercreatewithlist + +public class extends extends ApiClient implements +[UsercreatewithlistPost.PostOperation](../../paths/usercreatewithlist/UsercreatewithlistPost.md#postoperation) + +an api client class which contains all the routes for path="/user/createWithList" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | [post](#post)([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost#postrequest) request)
| + +## Method Detail + +### post +public [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) post([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogin.md b/samples/client/petstore/java/docs/apis/paths/Userlogin.md new file mode 100644 index 00000000000..01ed558d144 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Userlogin.md @@ -0,0 +1,125 @@ +# Userlogin + +public class extends extends ApiClient implements +[UserloginGet.GetOperation](../../paths/userlogin/UserloginGet.md#getoperation) + +an api client class which contains all the routes for path="/user/login" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | [get](#get)([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet#getrequest) request)
| + +## Method Detail + +### get +public [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) get([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet#getrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UserloginGet.Get apiClient = new UserloginGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters = + UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( + new UserloginGetQueryParameters.UserloginGetQueryParametersMapBuilder() + .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 +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogout.md b/samples/client/petstore/java/docs/apis/paths/Userlogout.md new file mode 100644 index 00000000000..267c9cb30be --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Userlogout.md @@ -0,0 +1,99 @@ +# Userlogout + +public class extends extends ApiClient implements +[UserlogoutGet.GetOperation](../../paths/userlogout/UserlogoutGet.md#getoperation) + +an api client class which contains all the routes for path="/user/logout" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | [get](#get)([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet#getrequest) request)
| + +## Method Detail + +### get +public [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) get([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet#getrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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; +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/apis/paths/Userusername.md b/samples/client/petstore/java/docs/apis/paths/Userusername.md new file mode 100644 index 00000000000..463d7378e3f --- /dev/null +++ b/samples/client/petstore/java/docs/apis/paths/Userusername.md @@ -0,0 +1,359 @@ +# Userusername + +public class extends extends ApiClient implements +[UserusernameDelete.DeleteOperation](../../paths/userusername/UserusernameDelete.md#deleteoperation), +[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="/user/{username}" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | [delete](#delete)([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete#deleterequest) request)
This can only be done by the logged in user. | +| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | [get](#get)([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet#getrequest) request)
| +| Void | [put](#put)([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut#putrequest) request)
This can only be done by the logged in user. | + +## Method Detail + +### delete +public [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) delete([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete#deleterequest) request) + +This can only be done by the logged in user. + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UserusernameDelete.Delete apiClient = new UserusernameDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters = + UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( + new UserusernameDeletePathParameters.UserusernameDeletePathParametersMapBuilder() + .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; +``` +### get +public [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) get([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet#getrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UserusernameGet.Get apiClient = new UserusernameGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters = + UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( + new UserusernameGetPathParameters.UserusernameGetPathParametersMapBuilder() + .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 +} +``` +### put +public Void put([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut#putrequest) request) + +This can only be done by the logged in user. + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.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.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +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.UserusernamePutPathParametersMap pathParameters = + UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( + new UserusernamePutPathParameters.UserusernamePutPathParametersMapBuilder() + .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; +} +``` \ No newline at end of file diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md index d246bcdf4fa..04da4972d6c 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Patch public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
a class that allows one to call the endpoint using a method named patch @@ -115,6 +116,16 @@ AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody deserializedBod | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index efd1b99e6b3..243e4b11f76 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Delete public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -113,6 +114,16 @@ CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index 4587e7e592f..4e7551ee4f6 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -113,6 +114,16 @@ CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response castRe | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index 0b52b0f49a8..6c2dbfa3503 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -113,6 +114,16 @@ CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response cast | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md index d7d6fff1dde..cef1ceb69ca 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -12,6 +12,7 @@ A class that contains necessary endpoint classes | 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 | @@ -19,7 +20,7 @@ A class that contains necessary endpoint classes | static class | [Delete10RequestBuilder](#delete10requestbuilder)
A builder for the request input class | | static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | -### Delete +## Delete public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -146,6 +147,16 @@ FakeDeleteResponses.EndpointFakeDeleteCode200Response castResponse = (FakeDelete | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index d3c7b7c5c64..ed501ec1511 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -105,6 +106,16 @@ FakeGetResponses.EndpointFakeGetCode200Response castResponse = (FakeGetResponses | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md index 5fe4989076e..e15fb436dde 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePatch.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Patch public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
a class that allows one to call the endpoint using a method named patch @@ -115,6 +116,16 @@ FakePatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakePat | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fake/FakePost.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md index 5f8c72b4b7a..defb5a55b0a 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePost.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -115,6 +116,16 @@ FakePostResponses.EndpointFakePostCode200Response castResponse = (FakePostRespon | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md index d7d5349d9ab..f4f97ce49de 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -101,6 +102,16 @@ FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonRespon | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md index 20a7161d87e..24abe638613 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Put public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -115,6 +116,16 @@ FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Respo | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index a8616744be0..df5797b9558 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -12,6 +12,7 @@ A class that contains necessary endpoint classes | 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 | @@ -19,7 +20,7 @@ A class that contains necessary endpoint classes | static class | [Put10RequestBuilder](#put10requestbuilder)
A builder for the request input class | | static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | -### Put +## Put public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -143,6 +144,16 @@ FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Res | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index 5ecd0cf0607..b101573c846 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Put public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -116,6 +117,16 @@ FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Res | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md index ba2bdc4375e..590a7635755 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Patch public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
a class that allows one to call the endpoint using a method named patch @@ -127,6 +128,16 @@ FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody deserializedBo | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index a662dd8ed22..1baea52750a 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Delete public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -116,6 +117,16 @@ if (response instanceof FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoff | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md index b2298fcdccf..7588058f9d5 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -99,6 +100,16 @@ FakehealthGetCode200Response.ApplicationjsonResponseBody deserializedBody = (Fak | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md index 05e1bbab9d3..49893d5b8b4 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -113,6 +114,16 @@ FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalproperti | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index 7d0f7d46c9c..954a304f276 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -106,6 +107,16 @@ if (castResponse.body instanceof FakeinlinecompositionPostCode200Response.Applic | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md index ce983dbb2d7..671a070557f 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -99,6 +100,16 @@ FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response castResp | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md index e9dc07cd671..5ec7d39f004 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Patch public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
a class that allows one to call the endpoint using a method named patch @@ -99,6 +100,16 @@ FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response castRespon | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md index c084eb346a3..c59c04d6fb4 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody de | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md index 0a5289f905f..cca820c2a0f 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBo | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md index 535d2fd309a..03689e7b07c 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -105,6 +106,16 @@ FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody deseria | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md index a8bc0a3736a..da3a2cc31a7 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -116,6 +117,16 @@ FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody deserialize | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index 1c5da1ca101..78ad271ec3b 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -98,6 +99,16 @@ FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response castResponse | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index 8443ecd2983..292dc8096de 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -126,6 +127,16 @@ Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBod | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md index f34334e87d4..a052361bc1f 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -101,6 +102,16 @@ FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody deserialize | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index 7cb9701d807..606fee4ae21 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -124,6 +125,16 @@ FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseB | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index 647150eccf6..7f6553a05cd 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -112,6 +113,16 @@ FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md index c04eec228ec..d710b032e45 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -101,6 +102,16 @@ if (response instanceof FakeredirectionGetResponses.EndpointFakeredirectionGetCo | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index 675f4dae7ff..cadef7383c1 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -98,6 +99,16 @@ FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response castRe | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md index 986e88828ba..0e158006b5c 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody deserializedBo | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md index f08a2b9072e..9544acc04e7 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody deserialized | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md index 9dea2879941..e89fc899063 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody deserializedBody | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md index 5931375e952..2bac04d35ba 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonRes | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md index 8630a3407e9..7b79118eb6b 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakerefsenumPostCode200Response.ApplicationjsonResponseBody deserializedBody = ( | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md index c7434713adc..ea741896a7e 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -106,6 +107,16 @@ FakerefsmammalPostCode200Response.ApplicationjsonResponseBody deserializedBody = | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md index 8550a6fa08c..48623046b25 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakerefsnumberPostCode200Response.ApplicationjsonResponseBody deserializedBody = | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md index a5f95f30d4d..a266053875e 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody d | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md index 281dc2f5419..80963690b66 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakerefsstringPostCode200Response.ApplicationjsonResponseBody deserializedBody = | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md index 3dd824ed719..4e0f92b77c1 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -97,6 +98,16 @@ FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode20 | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index 350511e4469..fe0ce1b5a84 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Put public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -137,6 +138,16 @@ FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Respo | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md index e22df58ac69..4b62fd5a54b 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -111,6 +112,16 @@ FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody des | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md index 9e62745042c..8f392916e85 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakeuploadfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md index fc19a347165..c4c8d15a4d9 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -101,6 +102,16 @@ FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody deserializedBody | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md index 43e3195d078..3730d8d17a6 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -118,6 +119,16 @@ FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody deserialized | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/foo/FooGet.md b/samples/client/petstore/java/docs/paths/foo/FooGet.md index eacbb37b3ab..c458490f4de 100644 --- a/samples/client/petstore/java/docs/paths/foo/FooGet.md +++ b/samples/client/petstore/java/docs/paths/foo/FooGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -98,6 +99,16 @@ FooGetCodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (FooGet | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md index c3c3925ecf2..89a5b611dd6 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPost.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -162,6 +163,16 @@ PetPostResponses.EndpointPetPostCode200Response castResponse = (PetPostResponses | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/pet/PetPut.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md index 92e217caa50..5b7c67d21fd 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPut.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Put public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -158,6 +159,16 @@ try { | ----------------- | ---------------------- | | 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
diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index cdfd53f5265..40c5bcc9fc0 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -133,6 +134,16 @@ PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response castRespon | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index 4edd276cc1c..4112881319f 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -130,6 +131,16 @@ PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response castResponse = | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index 8aa0c7f8e30..9d00adda840 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Delete public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -128,6 +129,16 @@ try { | ----------------- | ---------------------- | | 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
diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index c22416e2776..6796a4f368b 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -135,6 +136,16 @@ if (castResponse.body instanceof PetpetidGetCode200Response.ApplicationxmlRespon | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index ff6890e06d0..6e8e252f05a 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -128,6 +129,16 @@ try { | ----------------- | ---------------------- | | 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
diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index d460129644e..4e44739c84b 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -124,6 +125,16 @@ PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md index ca5fec9c41e..8794bb3d51a 100644 --- a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md +++ b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -97,6 +98,16 @@ SolidusGetResponses.EndpointSolidusGetCode200Response castResponse = (SolidusGet | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md index f32fc482e2d..efacddff2cd 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -111,6 +112,16 @@ StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response castResponse | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md index efb9264ed70..6b1f2d34607 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md +++ b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -133,6 +134,16 @@ if (castResponse.body instanceof StoreorderPostCode200Response.ApplicationxmlRes | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index 41b9335edd4..31530aa7b7c 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Delete public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -115,6 +116,16 @@ try { | ----------------- | ---------------------- | | 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
diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index 4bf97dc0261..8bce1036e40 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -123,6 +124,16 @@ if (castResponse.body instanceof StoreorderorderidGetCode200Response.Application | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md index 664cd1ebac2..326411e49b4 100644 --- a/samples/client/petstore/java/docs/paths/user/UserPost.md +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -129,6 +130,16 @@ UserPostResponses.EndpointUserPostCodedefaultResponse castResponse = (UserPostRe | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md index b6ce7c339c3..2291468f4d3 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -151,6 +152,16 @@ UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultRespo | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md index 45efa4d01c3..8eab60550b7 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Post public static class Post extends ApiClient.ApiClient1 implements PostOperation
a class that allows one to call the endpoint using a method named post @@ -151,6 +152,16 @@ UsercreatewithlistPostResponses.EndpointUsercreatewithlistPostCodedefaultRespons | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index 6396d553f50..8c68172aa07 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -125,6 +126,16 @@ if (castResponse.body instanceof UserloginGetCode200Response.ApplicationxmlRespo | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md index 2ea3eac94f9..8e851da3eda 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md +++ b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md @@ -12,10 +12,11 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -97,6 +98,16 @@ UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse castResponse = ( | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index fbdba6fb391..ffa3d7280a4 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Delete public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
a class that allows one to call the endpoint using a method named delete @@ -116,6 +117,16 @@ UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response castRespon | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index 5bc6077d82e..ae6cad77caf 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -12,12 +12,13 @@ A class that contains necessary endpoint classes | 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 +## Get public static class Get extends ApiClient.ApiClient1 implements GetOperation
a class that allows one to call the endpoint using a method named get @@ -123,6 +124,16 @@ if (castResponse.body instanceof UserusernameGetCode200Response.ApplicationxmlRe | ----------------- | ---------------------- | | [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
diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index 6ca5f51ec61..9e6a085dbb0 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -12,6 +12,7 @@ A class that contains necessary endpoint classes | 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 | @@ -19,7 +20,7 @@ A class that contains necessary endpoint classes | static class | [Put10RequestBuilder](#put10requestbuilder)
A builder for the request input class | | static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | -### Put +## Put public static class Put extends ApiClient.ApiClient1 implements PutOperation
a class that allows one to call the endpoint using a method named put @@ -146,6 +147,16 @@ try { | ----------------- | ---------------------- | | 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
diff --git a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java index 7657b53400e..c247194e6ae 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java +++ b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java @@ -1124,6 +1124,7 @@ void generateApis(List files, TreeMap paths) } String jsonPath = "#/apis"; Map apiPathsTemplates = generator.jsonPathTemplateFiles().get(CodegenConstants.JSON_PATH_LOCATION_TYPE.API_PATHS); + // paths api file(s) if (apiPathsTemplates != null) { for (Map.Entry apiPathEntry: apiPathsTemplates.entrySet()) { String templateFile = apiPathEntry.getKey(); @@ -1140,6 +1141,8 @@ void generateApis(List files, TreeMap paths) LinkedHashMap>> tagToPathToOperations = new LinkedHashMap<>(); HashMap>> tagToOperationIdToPathToOperation = new HashMap<>(); Map apiPathTemplates = generator.jsonPathTemplateFiles().get(CodegenConstants.JSON_PATH_LOCATION_TYPE.API_PATH); + Map apiDocPathTemplates = generator.jsonPathDocTemplateFiles().get(CodegenConstants.JSON_PATH_LOCATION_TYPE.API_PATH); + // path apis for(Map.Entry entry: paths.entrySet()) { CodegenKey path = entry.getKey(); CodegenPathItem pathItem = entry.getValue(); @@ -1159,6 +1162,26 @@ void generateApis(List files, TreeMap paths) } } + // path api docs + if (generateApiDocumentation && apiDocPathTemplates != null) { + for (Map.Entry apiPathEntry: apiDocPathTemplates.entrySet()) { + String templateFile = apiPathEntry.getKey(); + String fileName = apiPathEntry.getValue(); + String thisJsonPath = jsonPath + "/paths/" + ModelUtils.encodeSlashes(path.original); + String outputFile = generator.getDocsFilepath(thisJsonPath) + fileName; + Map apiData = new HashMap<>(); + String packageName = generator.packageName(); + apiData.put("packageName", packageName); + apiData.put("path", path); + apiData.put("pathItem", pathItem); + apiData.put("docRoot", "../../"); + apiData.put("headerSize", "#"); + generateFile(apiData, templateFile, outputFile, files, true, CodegenConstants.APIS); + } + } + + + // store operations by tag + path for(CodegenOperation op: pathItem.operations.values()) { for(CodegenTag tag: op.tags.values()) { @@ -1197,11 +1220,11 @@ void generateApis(List files, TreeMap paths) apiData.put("tagToPathToOperations", tagToPathToOperations); apiData.put("paths", paths); String outputFile = generator.getFilepath(jsonPath) + fileName; - generateFile(apiData, templateFile, outputFile, files, true, CodegenConstants.APIS); } } + // tags file(s) Map apiTagsTemplates = generator.jsonPathTemplateFiles().get(CodegenConstants.JSON_PATH_LOCATION_TYPE.API_TAGS); if (apiTagsTemplates != null) { for (Map.Entry apiPathEntry: apiTagsTemplates.entrySet()) { @@ -1233,6 +1256,8 @@ void generateApis(List files, TreeMap paths) apiData.put("pathToOperations", pathToOperations); apiData.put("operations", operations); apiData.put("apiPackage", generator.apiPackage()); + apiData.put("docRoot", "../../"); + apiData.put("headerSize", "#"); class OperationIdComparator implements Comparator{ @Override @@ -1245,6 +1270,7 @@ public int compare(CodegenKey e1, CodegenKey e2) { operationIdToPathToOperation.putAll(tagToOperationIdToPathToOperation.get(tag)); apiData.put("operationIdToPathToOperation", operationIdToPathToOperation); + // tag apis if (apiTagTemplates != null) { for (Map.Entry apiPathEntry: apiTagTemplates.entrySet()) { String templateFile = apiPathEntry.getKey(); @@ -1254,7 +1280,7 @@ public int compare(CodegenKey e1, CodegenKey e2) { generateFile(apiData, templateFile, outputFile, files, true, CodegenConstants.APIS); } } - // api docs + // tag api docs if (generateApiDocumentation && apiDocTagTemplates != null) { for (Map.Entry apiPathEntry: apiDocTagTemplates.entrySet()) { String templateFile = apiPathEntry.getKey(); diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 0df8260f81d..7675fd071f8 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -2962,6 +2962,7 @@ public CodegenOperation fromOperation(Operation operation, String jsonPath, Link List> builders = getOperationBuilders(jsonPath, requestBody, parametersInfo, usedServers, usedSecurity); CodegenKey method = getKey(pathPieces[pathPieces.length-1], "misc", jsonPath); String subpackage = getSubpackage(jsonPath); + String pathFromDocRoot = getPathFromDocRoot(jsonPath); return new CodegenOperation( deprecated, @@ -2992,7 +2993,8 @@ public CodegenOperation fromOperation(Operation operation, String jsonPath, Link method, requestBodySchema, builders, - subpackage + subpackage, + pathFromDocRoot ); } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 8be1f678c66..fb9245ffd80 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -1013,6 +1013,12 @@ public void processOpts() { put("src/main/java/packagename/apis/paths/Api.hbs", ".java"); }} ); + jsonPathDocTemplateFiles.put( + CodegenConstants.JSON_PATH_LOCATION_TYPE.API_PATH, + new HashMap<>() {{ + put("src/main/java/packagename/apis/paths/ApiDoc.hbs", ".md"); + }} + ); jsonPathTemplateFiles.put( CodegenConstants.JSON_PATH_LOCATION_TYPE.API_TAG, new HashMap<>() {{ diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenOperation.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenOperation.java index 8228355ad27..bec0cd6daeb 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenOperation.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenOperation.java @@ -21,7 +21,7 @@ import java.util.*; -public class CodegenOperation { +public class CodegenOperation implements PathFromDocRootProvider { public final Boolean deprecated; public final LinkedHashSet nonErrorStatusCodes; // values like 201 public final LinkedHashSet nonErrorWildcardStatusCodes; // values like 2 for @2XX @@ -53,6 +53,7 @@ public class CodegenOperation { public final CodegenKey method; public final List> builders; public final String subpackage; + public final String pathFromDocRoot; public CodegenOperation( Boolean deprecated, @@ -83,7 +84,8 @@ public CodegenOperation( CodegenKey method, CodegenSchema requestBodySchema, List> builders, - String subpackage + String subpackage, + String pathFromDocRoot ) { this.deprecated = deprecated; this.nonErrorStatusCodes = nonErrorStatusCodes; @@ -114,6 +116,7 @@ public CodegenOperation( this.requestBodySchema = requestBodySchema; this.builders = builders; this.subpackage = subpackage; + this.pathFromDocRoot = pathFromDocRoot; TreeMap nonErrorResponsesMap = new TreeMap<>(); if (statusCodeResponses != null) { for (Map.Entry entry: statusCodeResponses.entrySet()) { @@ -319,4 +322,9 @@ public int hashCode() { vendorExtensions, statusCodeResponses, wildcardCodeResponses, nonDefaultResponses, jsonPathPiece); } + + @Override + public String pathFromDocRoot() { + return pathFromDocRoot; + } } 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 new file mode 100644 index 00000000000..1cf0b5eb38b --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/apis/paths/ApiDoc.hbs @@ -0,0 +1,42 @@ +# {{pathItem.jsonPathPiece.pascalCase}} + +public class {{jsonPathPiece.pascalCase}} extends extends ApiClient implements +{{#each pathItem.operations}} +[{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Operation]({{docRoot}}{{pathFromDocRoot}}.md#{{method.kebabCase}}operation){{#unless @last}},{{/unless}} +{{/each}} + +an api client class which contains all the routes for path="{{path.original}}" + +{{headerSize}}# Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +{{#each pathItem.operations}} +| {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | [{{method.camelCase}}](#{{method.kebabCase}})([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}#{{method.kebabCase}}request) request){{#if description}}
{{description.originalWithBr}}{{/if}} | +{{/each}} + +{{headerSize}}# Method Detail +{{#each pathItem.operations}} + +{{headerSize}}## {{method.camelCase}} +public {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} {{method.camelCase}}([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}#{{method.kebabCase}}request) request) +{{#if description}} + +{{description.originalWithBr}} +{{/if}} + +**Parameters:**
+request - the input request + +**Returns:**
+{{#if nonErrorResponses }}the deserialized response{{else}}nothing (Void){{/if}} + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +{{headerSize}}### Code Sample +{{> src/main/java/packagename/paths/path/verb/_OperationDocCodeSample operation=this }} +{{/each}} diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs index 308f6754cce..9920910676d 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs @@ -1,12 +1,5 @@ {{#with operation}} -{{#eq identifierPieces.size 0}} -{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces identifierPieces=(append identifierPieces jsonPathPiece) }} -{{else}} -{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces }} -{{/eq}} -{{#if componentModule}} -{{jsonPathPiece.pascalCase}}.java -{{/if}} +{{headerSize}} {{jsonPathPiece.pascalCase}} public class {{jsonPathPiece.pascalCase}} @@ -20,6 +13,9 @@ A class that contains necessary endpoint classes | Modifier and Type | Class and Description | | ----------------- | --------------------- | | static class | [{{method.pascalCase}}](#{{method.kebabCase}})
The class that has a {{method.camelCase}} method to call the endpoint | +{{#neq method.pascalCase operationId.pascalCase}} +| interface | [{{operationId.pascalCase}}Operation](#{{operationId.kebabCase}}operation)
The interface that has a {{operationId.camelCase}} method to call the endpoint | +{{/neq}} {{#eq builders.size 1}} | static class | [{{method.pascalCase}}Request](#{{method.kebabCase}}request)
The request inputs class | {{else}} @@ -30,7 +26,7 @@ A class that contains necessary endpoint classes | static class | [{{className.pascalCase}}](#{{className.kebabCase}})
A builder for the request input class | {{/each}} -{{headerSize}}## {{method.pascalCase}} +{{headerSize}}# {{method.pascalCase}} public static class {{method.pascalCase}} extends ApiClient.ApiClient1 implements {{method.pascalCase}}Operation
a class that allows one to call the endpoint using a method named {{method.camelCase}} @@ -47,13 +43,25 @@ a class that allows one to call the endpoint using a method named {{method.camel | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | {{method.camelCase}}([{{method.pascalCase}}Request](#{{method.kebabCase}}request) request) | +{{#neq method.pascalCase operationId.pascalCase}} + +{{headerSize}}# {{operationId.pascalCase}}Operation +public interface {{operationId.pascalCase}}Operation
+ +an interface that allows one to call the endpoint using a method named {{operationId.camelCase}} by the operationId + +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | {{operationId.camelCase}}([{{method.pascalCase}}Request](#{{method.kebabCase}}request) request) | +{{/neq}} {{#eq builders.size 1}} {{> src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc }} {{else}} {{> src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc }} -{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join method.pascalCase "NullableRequest" "")) }} +{{headerSize}}# {{method.pascalCase}}NullableRequest public static class {{method.pascalCase}}NullableRequest
a class that stores the initial request inputs @@ -81,7 +89,7 @@ a class that stores the initial request inputs {{/eq}} {{#each builders}} -{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces className.pascalCase) }} +{{headerSize}}# {{className.pascalCase}} public static class {{className.pascalCase}}
a builder for request inputs diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc.hbs index ea4c50526a8..e53398ccf3e 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/_FinalRequestClassDoc.hbs @@ -1,4 +1,4 @@ -{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join method.pascalCase "Request" "")) }} +{{headerSize}}# {{method.pascalCase}}Request public static class {{method.pascalCase}}Request
a class that stores the final request inputs From 7333c860f91b1389cc95d946ab6a7502abb86b59 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 11:31:48 -0700 Subject: [PATCH 16/21] Fixes path api code samples --- .../java/docs/apis/paths/Anotherfakedummy.md | 9 ++++---- .../java/docs/apis/paths/Commonparamsubdir.md | 17 ++++++++------- .../petstore/java/docs/apis/paths/Fake.md | 21 ++++++++++--------- ...akeadditionalpropertieswitharrayofenums.md | 9 ++++---- .../docs/apis/paths/Fakebodywithfileschema.md | 9 ++++---- .../apis/paths/Fakebodywithqueryparams.md | 9 ++++---- .../apis/paths/Fakecasesensitiveparams.md | 9 ++++---- .../java/docs/apis/paths/Fakeclassnametest.md | 9 ++++---- .../docs/apis/paths/Fakedeletecoffeeid.md | 9 ++++---- .../java/docs/apis/paths/Fakehealth.md | 9 ++++---- .../paths/Fakeinlineadditionalproperties.md | 9 ++++---- .../docs/apis/paths/Fakeinlinecomposition.md | 9 ++++---- .../java/docs/apis/paths/Fakejsonformdata.md | 9 ++++---- .../java/docs/apis/paths/Fakejsonpatch.md | 9 ++++---- .../docs/apis/paths/Fakejsonwithcharset.md | 9 ++++---- .../Fakemultiplerequestbodycontenttypes.md | 9 ++++---- .../apis/paths/Fakemultipleresponsebodies.md | 9 ++++---- .../docs/apis/paths/Fakemultiplesecurities.md | 9 ++++---- .../java/docs/apis/paths/Fakeobjinquery.md | 9 ++++---- .../Fakeparametercollisions1ababselfab.md | 9 ++++---- .../docs/apis/paths/Fakepemcontenttype.md | 9 ++++---- .../Fakepetiduploadimagewithrequiredfile.md | 9 ++++---- .../Fakequeryparamwithjsoncontenttype.md | 9 ++++---- .../java/docs/apis/paths/Fakeredirection.md | 9 ++++---- .../java/docs/apis/paths/Fakerefobjinquery.md | 9 ++++---- .../docs/apis/paths/Fakerefsarraymodel.md | 9 ++++---- .../docs/apis/paths/Fakerefsarrayofenums.md | 9 ++++---- .../java/docs/apis/paths/Fakerefsboolean.md | 9 ++++---- ...erefscomposedoneofnumberwithvalidations.md | 9 ++++---- .../java/docs/apis/paths/Fakerefsenum.md | 9 ++++---- .../java/docs/apis/paths/Fakerefsmammal.md | 9 ++++---- .../java/docs/apis/paths/Fakerefsnumber.md | 9 ++++---- .../paths/Fakerefsobjectmodelwithrefprops.md | 9 ++++---- .../java/docs/apis/paths/Fakerefsstring.md | 9 ++++---- .../apis/paths/Fakeresponsewithoutschema.md | 9 ++++---- .../docs/apis/paths/Faketestqueryparamters.md | 9 ++++---- .../docs/apis/paths/Fakeuploaddownloadfile.md | 9 ++++---- .../java/docs/apis/paths/Fakeuploadfile.md | 9 ++++---- .../java/docs/apis/paths/Fakeuploadfiles.md | 9 ++++---- .../docs/apis/paths/Fakewildcardresponses.md | 9 ++++---- .../petstore/java/docs/apis/paths/Foo.md | 9 ++++---- .../petstore/java/docs/apis/paths/Pet.md | 13 ++++++------ .../java/docs/apis/paths/Petfindbystatus.md | 9 ++++---- .../java/docs/apis/paths/Petfindbytags.md | 9 ++++---- .../petstore/java/docs/apis/paths/Petpetid.md | 17 ++++++++------- .../docs/apis/paths/Petpetiduploadimage.md | 9 ++++---- .../petstore/java/docs/apis/paths/Solidus.md | 9 ++++---- .../java/docs/apis/paths/Storeinventory.md | 9 ++++---- .../java/docs/apis/paths/Storeorder.md | 9 ++++---- .../java/docs/apis/paths/Storeorderorderid.md | 13 ++++++------ .../petstore/java/docs/apis/paths/User.md | 9 ++++---- .../docs/apis/paths/Usercreatewitharray.md | 9 ++++---- .../docs/apis/paths/Usercreatewithlist.md | 9 ++++---- .../java/docs/apis/paths/Userlogin.md | 9 ++++---- .../java/docs/apis/paths/Userlogout.md | 9 ++++---- .../java/docs/apis/paths/Userusername.md | 17 ++++++++------- .../java/packagename/apis/paths/ApiDoc.hbs | 6 ++++-- .../paths/path/verb/OperationDoc.hbs | 2 +- .../path/verb/_OperationDocCodeSample.hbs | 6 ++---- 59 files changed, 309 insertions(+), 253 deletions(-) diff --git a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md index 15de0791c21..8151e25e768 100644 --- a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md +++ b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md @@ -1,6 +1,6 @@ # Anotherfakedummy -public class extends extends ApiClient implements +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="/another-fake/dummy" @@ -49,7 +49,7 @@ 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.paths.anotherfakedummy.AnotherfakedummyPatch; +import org.openapijsonschematools.client.apis.paths.Anotherfakedummy; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -AnotherfakedummyPatch.Patch apiClient = new AnotherfakedummyPatch.Patch(apiConfiguration, schemaConfiguration); +Anotherfakedummy apiClient = new Anotherfakedummy(apiConfiguration, schemaConfiguration); Client1BoxedMap requestBodyPayload = @@ -112,4 +112,5 @@ try { AnotherfakedummyPatchResponses.EndpointAnotherfakedummyPatchCode200Response castResponse = (AnotherfakedummyPatchResponses.EndpointAnotherfakedummyPatchCode200Response) response; AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody deserializedBody = (AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md index 74c700fce3b..f3445d31614 100644 --- a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md +++ b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md @@ -1,6 +1,6 @@ # Commonparamsubdir -public class extends extends ApiClient implements +public class Commonparamsubdir extends extends ApiClient implements [CommonparamsubdirDelete.DeleteOperation](../../paths/commonparamsubdir/CommonparamsubdirDelete.md#deleteoperation), [CommonparamsubdirGet.GetOperation](../../paths/commonparamsubdir/CommonparamsubdirGet.md#getoperation), [CommonparamsubdirPost.PostOperation](../../paths/commonparamsubdir/CommonparamsubdirPost.md#postoperation) @@ -53,7 +53,7 @@ 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.paths.commonparamsubdir.CommonparamsubdirDelete; +import org.openapijsonschematools.client.apis.paths.Commonparamsubdir; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; import java.io.IOException; @@ -79,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -CommonparamsubdirDelete.Delete apiClient = new CommonparamsubdirDelete.Delete(apiConfiguration, schemaConfiguration); +Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConfiguration); // Map validation @@ -150,7 +150,7 @@ 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.paths.commonparamsubdir.CommonparamsubdirGet; +import org.openapijsonschematools.client.apis.paths.Commonparamsubdir; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; import java.io.IOException; @@ -176,7 +176,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -CommonparamsubdirGet.Get apiClient = new CommonparamsubdirGet.Get(apiConfiguration, schemaConfiguration); +Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConfiguration); // Map validation @@ -247,7 +247,7 @@ 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.paths.commonparamsubdir.CommonparamsubdirPost; +import org.openapijsonschematools.client.apis.paths.Commonparamsubdir; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; import java.io.IOException; @@ -273,7 +273,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -CommonparamsubdirPost.Post apiClient = new CommonparamsubdirPost.Post(apiConfiguration, schemaConfiguration); +Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConfiguration); // Map validation @@ -308,4 +308,5 @@ try { throw e; } CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response castResponse = (CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fake.md b/samples/client/petstore/java/docs/apis/paths/Fake.md index 67f201561f3..3ac9e421003 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fake.md +++ b/samples/client/petstore/java/docs/apis/paths/Fake.md @@ -1,6 +1,6 @@ # Fake -public class extends extends ApiClient implements +public class Fake extends extends ApiClient implements [FakeDelete.DeleteOperation](../../paths/fake/FakeDelete.md#deleteoperation), [FakeGet.GetOperation](../../paths/fake/FakeGet.md#getoperation), [FakePatch.PatchOperation](../../paths/fake/FakePatch.md#patchoperation), @@ -58,7 +58,7 @@ 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.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; import java.io.IOException; @@ -93,7 +93,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeDelete.Delete apiClient = new FakeDelete.Delete(apiConfiguration, schemaConfiguration); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation @@ -188,7 +188,7 @@ 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.paths.fake.FakeGet; +import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; import java.io.IOException; @@ -214,7 +214,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeGet.Get apiClient = new FakeGet.Get(apiConfiguration, schemaConfiguration); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); var request = new FakeGet.GetRequestBuilder().build(); @@ -278,7 +278,7 @@ 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.paths.fake.FakePatch; +import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; import java.io.IOException; @@ -304,7 +304,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakePatch.Patch apiClient = new FakePatch.Patch(apiConfiguration, schemaConfiguration); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); Client1BoxedMap requestBodyPayload = @@ -383,7 +383,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpBasicTes 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.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; import java.io.IOException; @@ -418,7 +418,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakePost.Post apiClient = new FakePost.Post(apiConfiguration, schemaConfiguration); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); var request = new FakePost.PostRequestBuilder().build(); @@ -444,4 +444,5 @@ try { throw e; } FakePostResponses.EndpointFakePostCode200Response castResponse = (FakePostResponses.EndpointFakePostCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md index fc7610b563f..d37b1cedfb9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md @@ -1,6 +1,6 @@ # Fakeadditionalpropertieswitharrayofenums -public class extends extends ApiClient implements +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="/fake/additional-properties-with-array-of-enums" @@ -47,7 +47,7 @@ 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.paths.fakeadditionalpropertieswitharrayofenums.FakeadditionalpropertieswitharrayofenumsGet; +import org.openapijsonschematools.client.apis.paths.Fakeadditionalpropertieswitharrayofenums; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; import java.io.IOException; @@ -73,7 +73,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeadditionalpropertieswitharrayofenumsGet.Get apiClient = new FakeadditionalpropertieswitharrayofenumsGet.Get(apiConfiguration, schemaConfiguration); +Fakeadditionalpropertieswitharrayofenums apiClient = new Fakeadditionalpropertieswitharrayofenums(apiConfiguration, schemaConfiguration); var request = new FakeadditionalpropertieswitharrayofenumsGet.GetRequestBuilder().build(); @@ -98,4 +98,5 @@ try { FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response castResponse = (FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response) response; FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md index 18e03cc74b6..def10396afe 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md @@ -1,6 +1,6 @@ # Fakebodywithfileschema -public class extends extends ApiClient implements +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="/fake/body-with-file-schema" @@ -49,7 +49,7 @@ 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.paths.fakebodywithfileschema.FakebodywithfileschemaPut; +import org.openapijsonschematools.client.apis.paths.Fakebodywithfileschema; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakebodywithfileschemaPut.Put apiClient = new FakebodywithfileschemaPut.Put(apiConfiguration, schemaConfiguration); +Fakebodywithfileschema apiClient = new Fakebodywithfileschema(apiConfiguration, schemaConfiguration); FileSchemaTestClass1BoxedMap requestBodyPayload = @@ -112,4 +112,5 @@ try { throw e; } FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response castResponse = (FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md index 4480231eca1..7afde67cdfe 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md @@ -1,6 +1,6 @@ # Fakebodywithqueryparams -public class extends extends ApiClient implements +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="/fake/body-with-query-params" @@ -48,7 +48,7 @@ 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.paths.fakebodywithqueryparams.FakebodywithqueryparamsPut; +import org.openapijsonschematools.client.apis.paths.Fakebodywithqueryparams; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; import java.io.IOException; @@ -74,7 +74,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakebodywithqueryparamsPut.Put apiClient = new FakebodywithqueryparamsPut.Put(apiConfiguration, schemaConfiguration); +Fakebodywithqueryparams apiClient = new Fakebodywithqueryparams(apiConfiguration, schemaConfiguration); User1BoxedMap requestBodyPayload = @@ -136,4 +136,5 @@ try { throw e; } FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response castResponse = (FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md index a3ae96aef73..b642eb170b5 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md @@ -1,6 +1,6 @@ # Fakecasesensitiveparams -public class extends extends ApiClient implements +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="/fake/case-sensitive-params" @@ -48,7 +48,7 @@ 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.paths.fakecasesensitiveparams.FakecasesensitiveparamsPut; +import org.openapijsonschematools.client.apis.paths.Fakecasesensitiveparams; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; import java.io.IOException; @@ -74,7 +74,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakecasesensitiveparamsPut.Put apiClient = new FakecasesensitiveparamsPut.Put(apiConfiguration, schemaConfiguration); +Fakecasesensitiveparams apiClient = new Fakecasesensitiveparams(apiConfiguration, schemaConfiguration); // Map validation @@ -113,4 +113,5 @@ try { throw e; } FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response castResponse = (FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md index 736de61ee18..b908b2f2f7c 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md @@ -1,6 +1,6 @@ # Fakeclassnametest -public class extends extends ApiClient implements +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="/fake_classname_test" @@ -52,7 +52,7 @@ 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.apis.paths.Fakeclassnametest; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; import java.io.IOException; @@ -87,7 +87,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeclassnametestPatch.Patch apiClient = new FakeclassnametestPatch.Patch(apiConfiguration, schemaConfiguration); +Fakeclassnametest apiClient = new Fakeclassnametest(apiConfiguration, schemaConfiguration); Client1BoxedMap requestBodyPayload = @@ -124,4 +124,5 @@ try { FakeclassnametestPatchResponses.EndpointFakeclassnametestPatchCode200Response castResponse = (FakeclassnametestPatchResponses.EndpointFakeclassnametestPatchCode200Response) response; FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md index 3f453bb0fd3..bfc84e96965 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md @@ -1,6 +1,6 @@ # Fakedeletecoffeeid -public class extends extends ApiClient implements +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="/fake/deleteCoffee/{id}" @@ -49,7 +49,7 @@ 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.paths.fakedeletecoffeeid.FakedeletecoffeeidDelete; +import org.openapijsonschematools.client.apis.paths.Fakedeletecoffeeid; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakedeletecoffeeidDelete.Delete apiClient = new FakedeletecoffeeidDelete.Delete(apiConfiguration, schemaConfiguration); +Fakedeletecoffeeid apiClient = new Fakedeletecoffeeid(apiConfiguration, schemaConfiguration); // Map validation @@ -113,4 +113,5 @@ if (response instanceof FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoff } else { FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCodedefaultResponse castResponse = (FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCodedefaultResponse) response; } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md index 361002d27cb..94b4a55434e 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md @@ -1,6 +1,6 @@ # Fakehealth -public class extends extends ApiClient implements +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="/fake/health" @@ -45,7 +45,7 @@ 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.paths.fakehealth.FakehealthGet; +import org.openapijsonschematools.client.apis.paths.Fakehealth; import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; import java.io.IOException; @@ -71,7 +71,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakehealthGet.Get apiClient = new FakehealthGet.Get(apiConfiguration, schemaConfiguration); +Fakehealth apiClient = new Fakehealth(apiConfiguration, schemaConfiguration); var request = new FakehealthGet.GetRequestBuilder().build(); @@ -96,4 +96,5 @@ try { FakehealthGetResponses.EndpointFakehealthGetCode200Response castResponse = (FakehealthGetResponses.EndpointFakehealthGetCode200Response) response; FakehealthGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakehealthGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md index 87761e0c47b..04477934dab 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md @@ -1,6 +1,6 @@ # Fakeinlineadditionalproperties -public class extends extends ApiClient implements +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="/fake/inline-additionalProperties" @@ -49,7 +49,7 @@ 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.paths.fakeinlineadditionalproperties.FakeinlineadditionalpropertiesPost; +import org.openapijsonschematools.client.apis.paths.Fakeinlineadditionalproperties; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeinlineadditionalpropertiesPost.Post apiClient = new FakeinlineadditionalpropertiesPost.Post(apiConfiguration, schemaConfiguration); +Fakeinlineadditionalproperties apiClient = new Fakeinlineadditionalproperties(apiConfiguration, schemaConfiguration); ApplicationjsonSchema1BoxedMap requestBodyPayload = @@ -110,4 +110,5 @@ try { throw e; } FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response castResponse = (FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md index 023ff58cce1..e383cae29b9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md @@ -1,6 +1,6 @@ # Fakeinlinecomposition -public class extends extends ApiClient implements +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="/fake/inlineComposition/" @@ -50,7 +50,7 @@ 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.paths.fakeinlinecomposition.FakeinlinecompositionPost; +import org.openapijsonschematools.client.apis.paths.Fakeinlinecomposition; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; import java.io.IOException; @@ -76,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeinlinecompositionPost.Post apiClient = new FakeinlinecompositionPost.Post(apiConfiguration, schemaConfiguration); +Fakeinlinecomposition apiClient = new Fakeinlinecomposition(apiConfiguration, schemaConfiguration); var request = new FakeinlinecompositionPost.PostRequestBuilder().build(); @@ -105,4 +105,5 @@ if (castResponse.body instanceof FakeinlinecompositionPostCode200Response.Applic FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody deserializedBody = (FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody) castResponse.body; // handle deserialized body here } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md index 67db29a1ad0..bc81b2d9871 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md @@ -1,6 +1,6 @@ # Fakejsonformdata -public class extends extends ApiClient implements +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="/fake/jsonFormData" @@ -49,7 +49,7 @@ 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.paths.fakejsonformdata.FakejsonformdataGet; +import org.openapijsonschematools.client.apis.paths.Fakejsonformdata; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakejsonformdataGet.Get apiClient = new FakejsonformdataGet.Get(apiConfiguration, schemaConfiguration); +Fakejsonformdata apiClient = new Fakejsonformdata(apiConfiguration, schemaConfiguration); var request = new FakejsonformdataGet.GetRequestBuilder().build(); @@ -98,4 +98,5 @@ try { throw e; } FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response castResponse = (FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md index 8dc355a710c..8806ea91911 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md @@ -1,6 +1,6 @@ # Fakejsonpatch -public class extends extends ApiClient implements +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="/fake/jsonPatch" @@ -49,7 +49,7 @@ 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.paths.fakejsonpatch.FakejsonpatchPatch; +import org.openapijsonschematools.client.apis.paths.Fakejsonpatch; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakejsonpatchPatch.Patch apiClient = new FakejsonpatchPatch.Patch(apiConfiguration, schemaConfiguration); +Fakejsonpatch apiClient = new Fakejsonpatch(apiConfiguration, schemaConfiguration); var request = new FakejsonpatchPatch.PatchRequestBuilder().build(); @@ -98,4 +98,5 @@ try { throw e; } FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response castResponse = (FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md index dcb951147ee..93f4ba69537 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md @@ -1,6 +1,6 @@ # Fakejsonwithcharset -public class extends extends ApiClient implements +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="/fake/jsonWithCharset" @@ -47,7 +47,7 @@ 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.paths.fakejsonwithcharset.FakejsonwithcharsetPost; +import org.openapijsonschematools.client.apis.paths.Fakejsonwithcharset; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; import java.io.IOException; @@ -73,7 +73,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakejsonwithcharsetPost.Post apiClient = new FakejsonwithcharsetPost.Post(apiConfiguration, schemaConfiguration); +Fakejsonwithcharset apiClient = new Fakejsonwithcharset(apiConfiguration, schemaConfiguration); var request = new FakejsonwithcharsetPost.PostRequestBuilder().build(); @@ -98,4 +98,5 @@ try { FakejsonwithcharsetPostResponses.EndpointFakejsonwithcharsetPostCode200Response castResponse = (FakejsonwithcharsetPostResponses.EndpointFakejsonwithcharsetPostCode200Response) response; FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md index 01ff9d126f0..88d5ff12b75 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md @@ -1,6 +1,6 @@ # Fakemultiplerequestbodycontenttypes -public class extends extends ApiClient implements +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="/fake/multipleRequestBodyContentTypes/" @@ -49,7 +49,7 @@ 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.paths.fakemultiplerequestbodycontenttypes.FakemultiplerequestbodycontenttypesPost; +import org.openapijsonschematools.client.apis.paths.Fakemultiplerequestbodycontenttypes; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakemultiplerequestbodycontenttypesPost.Post apiClient = new FakemultiplerequestbodycontenttypesPost.Post(apiConfiguration, schemaConfiguration); +Fakemultiplerequestbodycontenttypes apiClient = new Fakemultiplerequestbodycontenttypes(apiConfiguration, schemaConfiguration); var request = new FakemultiplerequestbodycontenttypesPost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakemultiplerequestbodycontenttypesPostResponses.EndpointFakemultiplerequestbodycontenttypesPostCode200Response castResponse = (FakemultiplerequestbodycontenttypesPostResponses.EndpointFakemultiplerequestbodycontenttypesPostCode200Response) response; FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md index add58e6b94b..00456f08423 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md @@ -1,6 +1,6 @@ # Fakemultipleresponsebodies -public class extends extends ApiClient implements +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="/fake/multipleResponseBodies" @@ -46,7 +46,7 @@ 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.paths.fakemultipleresponsebodies.FakemultipleresponsebodiesGet; +import org.openapijsonschematools.client.apis.paths.Fakemultipleresponsebodies; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; import java.io.IOException; @@ -72,7 +72,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakemultipleresponsebodiesGet.Get apiClient = new FakemultipleresponsebodiesGet.Get(apiConfiguration, schemaConfiguration); +Fakemultipleresponsebodies apiClient = new Fakemultipleresponsebodies(apiConfiguration, schemaConfiguration); var request = new FakemultipleresponsebodiesGet.GetRequestBuilder().build(); @@ -102,4 +102,5 @@ FakemultipleresponsebodiesGetCode200Response.ApplicationjsonResponseBody deseria FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody deserializedBody = (FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md index 344974b14b3..7322f5c4594 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md @@ -1,6 +1,6 @@ # Fakemultiplesecurities -public class extends extends ApiClient implements +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="/fake/multipleSecurities" @@ -50,7 +50,7 @@ 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.apis.paths.Fakemultiplesecurities; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; import java.io.IOException; @@ -88,7 +88,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakemultiplesecuritiesGet.Get apiClient = new FakemultiplesecuritiesGet.Get(apiConfiguration, schemaConfiguration); +Fakemultiplesecurities apiClient = new Fakemultiplesecurities(apiConfiguration, schemaConfiguration); var request = new FakemultiplesecuritiesGet.GetRequestBuilder().build(); @@ -113,4 +113,5 @@ try { FakemultiplesecuritiesGetResponses.EndpointFakemultiplesecuritiesGetCode200Response castResponse = (FakemultiplesecuritiesGetResponses.EndpointFakemultiplesecuritiesGetCode200Response) response; FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md index d9eac90cd75..cc851507807 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md @@ -1,6 +1,6 @@ # Fakeobjinquery -public class extends extends ApiClient implements +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="/fake/objInQuery" @@ -46,7 +46,7 @@ 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.paths.fakeobjinquery.FakeobjinqueryGet; +import org.openapijsonschematools.client.apis.paths.Fakeobjinquery; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; import java.io.IOException; @@ -72,7 +72,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeobjinqueryGet.Get apiClient = new FakeobjinqueryGet.Get(apiConfiguration, schemaConfiguration); +Fakeobjinquery apiClient = new Fakeobjinquery(apiConfiguration, schemaConfiguration); var request = new FakeobjinqueryGet.GetRequestBuilder().build(); @@ -95,4 +95,5 @@ try { throw e; } FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response castResponse = (FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md index ba40dd12bfc..16fa8b4a446 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md @@ -1,6 +1,6 @@ # Fakeparametercollisions1ababselfab -public class extends extends ApiClient implements +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="/fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/" @@ -50,7 +50,7 @@ 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.paths.fakeparametercollisions1ababselfab.Fakeparametercollisions1ababselfabPost; +import org.openapijsonschematools.client.apis.paths.Fakeparametercollisions1ababselfab; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; import java.io.IOException; @@ -76,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Fakeparametercollisions1ababselfabPost.Post apiClient = new Fakeparametercollisions1ababselfabPost.Post(apiConfiguration, schemaConfiguration); +Fakeparametercollisions1ababselfab apiClient = new Fakeparametercollisions1ababselfab(apiConfiguration, schemaConfiguration); // Map validation @@ -121,4 +121,5 @@ try { Fakeparametercollisions1ababselfabPostResponses.EndpointFakeparametercollisions1ababselfabPostCode200Response castResponse = (Fakeparametercollisions1ababselfabPostResponses.EndpointFakeparametercollisions1ababselfabPostCode200Response) response; Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody deserializedBody = (Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md index 107f30fd7cd..14c8fd729ba 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md @@ -1,6 +1,6 @@ # Fakepemcontenttype -public class extends extends ApiClient implements +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="/fake/pemContentType" @@ -47,7 +47,7 @@ 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.paths.fakepemcontenttype.FakepemcontenttypeGet; +import org.openapijsonschematools.client.apis.paths.Fakepemcontenttype; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; import java.io.IOException; @@ -73,7 +73,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakepemcontenttypeGet.Get apiClient = new FakepemcontenttypeGet.Get(apiConfiguration, schemaConfiguration); +Fakepemcontenttype apiClient = new Fakepemcontenttype(apiConfiguration, schemaConfiguration); var request = new FakepemcontenttypeGet.GetRequestBuilder().build(); @@ -98,4 +98,5 @@ try { FakepemcontenttypeGetResponses.EndpointFakepemcontenttypeGetCode200Response castResponse = (FakepemcontenttypeGetResponses.EndpointFakepemcontenttypeGetCode200Response) response; FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody deserializedBody = (FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md index 72996808448..7c1dbf1bb52 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md @@ -1,6 +1,6 @@ # Fakepetiduploadimagewithrequiredfile -public class extends extends ApiClient implements +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="/fake/{petId}/uploadImageWithRequiredFile" @@ -52,7 +52,7 @@ 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.apis.paths.Fakepetiduploadimagewithrequiredfile; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; import java.io.IOException; @@ -84,7 +84,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakepetiduploadimagewithrequiredfilePost.Post apiClient = new FakepetiduploadimagewithrequiredfilePost.Post(apiConfiguration, schemaConfiguration); +Fakepetiduploadimagewithrequiredfile apiClient = new Fakepetiduploadimagewithrequiredfile(apiConfiguration, schemaConfiguration); // Map validation @@ -121,4 +121,5 @@ try { FakepetiduploadimagewithrequiredfilePostResponses.EndpointFakepetiduploadimagewithrequiredfilePostCode200Response castResponse = (FakepetiduploadimagewithrequiredfilePostResponses.EndpointFakepetiduploadimagewithrequiredfilePostCode200Response) response; FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md index 785ee0eabc4..ddaa4c34a6d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md @@ -1,6 +1,6 @@ # Fakequeryparamwithjsoncontenttype -public class extends extends ApiClient implements +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="/fake/queryParamWithJsonContentType" @@ -46,7 +46,7 @@ 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.paths.fakequeryparamwithjsoncontenttype.FakequeryparamwithjsoncontenttypeGet; +import org.openapijsonschematools.client.apis.paths.Fakequeryparamwithjsoncontenttype; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; import java.io.IOException; @@ -72,7 +72,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakequeryparamwithjsoncontenttypeGet.Get apiClient = new FakequeryparamwithjsoncontenttypeGet.Get(apiConfiguration, schemaConfiguration); +Fakequeryparamwithjsoncontenttype apiClient = new Fakequeryparamwithjsoncontenttype(apiConfiguration, schemaConfiguration); // Map validation @@ -107,4 +107,5 @@ try { FakequeryparamwithjsoncontenttypeGetResponses.EndpointFakequeryparamwithjsoncontenttypeGetCode200Response castResponse = (FakequeryparamwithjsoncontenttypeGetResponses.EndpointFakequeryparamwithjsoncontenttypeGetCode200Response) response; FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md index 7b6532db141..0367fd7e52e 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md @@ -1,6 +1,6 @@ # Fakeredirection -public class extends extends ApiClient implements +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="/fake/redirection" @@ -46,7 +46,7 @@ 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.paths.fakeredirection.FakeredirectionGet; +import org.openapijsonschematools.client.apis.paths.Fakeredirection; import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; import java.io.IOException; @@ -72,7 +72,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeredirectionGet.Get apiClient = new FakeredirectionGet.Get(apiConfiguration, schemaConfiguration); +Fakeredirection apiClient = new Fakeredirection(apiConfiguration, schemaConfiguration); var request = new FakeredirectionGet.GetRequestBuilder().build(); @@ -98,4 +98,5 @@ if (response instanceof FakeredirectionGetResponses.EndpointFakeredirectionGetCo } else { FakeredirectionGetResponses.EndpointFakeredirectionGetCode303Response castResponse = (FakeredirectionGetResponses.EndpointFakeredirectionGetCode303Response) response; } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md index 2fa55ebcc32..0444f4751d9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md @@ -1,6 +1,6 @@ # Fakerefobjinquery -public class extends extends ApiClient implements +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="/fake/refObjInQuery" @@ -46,7 +46,7 @@ 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.paths.fakerefobjinquery.FakerefobjinqueryGet; +import org.openapijsonschematools.client.apis.paths.Fakerefobjinquery; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; import java.io.IOException; @@ -72,7 +72,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefobjinqueryGet.Get apiClient = new FakerefobjinqueryGet.Get(apiConfiguration, schemaConfiguration); +Fakerefobjinquery apiClient = new Fakerefobjinquery(apiConfiguration, schemaConfiguration); var request = new FakerefobjinqueryGet.GetRequestBuilder().build(); @@ -95,4 +95,5 @@ try { throw e; } FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response castResponse = (FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md index 6907164d6bf..dabd4ca6361 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md @@ -1,6 +1,6 @@ # Fakerefsarraymodel -public class extends extends ApiClient implements +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="/fake/refs/arraymodel" @@ -49,7 +49,7 @@ 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.paths.fakerefsarraymodel.FakerefsarraymodelPost; +import org.openapijsonschematools.client.apis.paths.Fakerefsarraymodel; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsarraymodelPost.Post apiClient = new FakerefsarraymodelPost.Post(apiConfiguration, schemaConfiguration); +Fakerefsarraymodel apiClient = new Fakerefsarraymodel(apiConfiguration, schemaConfiguration); var request = new FakerefsarraymodelPost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakerefsarraymodelPostResponses.EndpointFakerefsarraymodelPostCode200Response castResponse = (FakerefsarraymodelPostResponses.EndpointFakerefsarraymodelPostCode200Response) response; FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md index a2ced298839..b45911f9e78 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md @@ -1,6 +1,6 @@ # Fakerefsarrayofenums -public class extends extends ApiClient implements +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="/fake/refs/array-of-enums" @@ -47,7 +47,7 @@ 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.paths.fakerefsarrayofenums.FakerefsarrayofenumsPost; +import org.openapijsonschematools.client.apis.paths.Fakerefsarrayofenums; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; import java.io.IOException; @@ -73,7 +73,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsarrayofenumsPost.Post apiClient = new FakerefsarrayofenumsPost.Post(apiConfiguration, schemaConfiguration); +Fakerefsarrayofenums apiClient = new Fakerefsarrayofenums(apiConfiguration, schemaConfiguration); var request = new FakerefsarrayofenumsPost.PostRequestBuilder().build(); @@ -98,4 +98,5 @@ try { FakerefsarrayofenumsPostResponses.EndpointFakerefsarrayofenumsPostCode200Response castResponse = (FakerefsarrayofenumsPostResponses.EndpointFakerefsarrayofenumsPostCode200Response) response; FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md index f4aef212b6f..503e91d77a9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md @@ -1,6 +1,6 @@ # Fakerefsboolean -public class extends extends ApiClient implements +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="/fake/refs/boolean" @@ -49,7 +49,7 @@ 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.paths.fakerefsboolean.FakerefsbooleanPost; +import org.openapijsonschematools.client.apis.paths.Fakerefsboolean; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsbooleanPost.Post apiClient = new FakerefsbooleanPost.Post(apiConfiguration, schemaConfiguration); +Fakerefsboolean apiClient = new Fakerefsboolean(apiConfiguration, schemaConfiguration); var request = new FakerefsbooleanPost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakerefsbooleanPostResponses.EndpointFakerefsbooleanPostCode200Response castResponse = (FakerefsbooleanPostResponses.EndpointFakerefsbooleanPostCode200Response) response; FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md index ad63439b19c..4f5ed21b1e9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md @@ -1,6 +1,6 @@ # Fakerefscomposedoneofnumberwithvalidations -public class extends extends ApiClient implements +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="/fake/refs/composed_one_of_number_with_validations" @@ -49,7 +49,7 @@ 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.paths.fakerefscomposedoneofnumberwithvalidations.FakerefscomposedoneofnumberwithvalidationsPost; +import org.openapijsonschematools.client.apis.paths.Fakerefscomposedoneofnumberwithvalidations; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefscomposedoneofnumberwithvalidationsPost.Post apiClient = new FakerefscomposedoneofnumberwithvalidationsPost.Post(apiConfiguration, schemaConfiguration); +Fakerefscomposedoneofnumberwithvalidations apiClient = new Fakerefscomposedoneofnumberwithvalidations(apiConfiguration, schemaConfiguration); var request = new FakerefscomposedoneofnumberwithvalidationsPost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response castResponse = (FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response) response; FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md index f3fe6a74669..3ba175c192f 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md @@ -1,6 +1,6 @@ # Fakerefsenum -public class extends extends ApiClient implements +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="/fake/refs/enum" @@ -49,7 +49,7 @@ 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.paths.fakerefsenum.FakerefsenumPost; +import org.openapijsonschematools.client.apis.paths.Fakerefsenum; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsenumPost.Post apiClient = new FakerefsenumPost.Post(apiConfiguration, schemaConfiguration); +Fakerefsenum apiClient = new Fakerefsenum(apiConfiguration, schemaConfiguration); var request = new FakerefsenumPost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakerefsenumPostResponses.EndpointFakerefsenumPostCode200Response castResponse = (FakerefsenumPostResponses.EndpointFakerefsenumPostCode200Response) response; FakerefsenumPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsenumPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md index 550ca0e1fca..f2fbec5e285 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md @@ -1,6 +1,6 @@ # Fakerefsmammal -public class extends extends ApiClient implements +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="/fake/refs/mammal" @@ -49,7 +49,7 @@ 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.paths.fakerefsmammal.FakerefsmammalPost; +import org.openapijsonschematools.client.apis.paths.Fakerefsmammal; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsmammalPost.Post apiClient = new FakerefsmammalPost.Post(apiConfiguration, schemaConfiguration); +Fakerefsmammal apiClient = new Fakerefsmammal(apiConfiguration, schemaConfiguration); FakerefsmammalPost.SealedRequestBody requestBody = new FakerefsmammalPost.ApplicationjsonRequestBody(requestBodyPayload); @@ -103,4 +103,5 @@ try { FakerefsmammalPostResponses.EndpointFakerefsmammalPostCode200Response castResponse = (FakerefsmammalPostResponses.EndpointFakerefsmammalPostCode200Response) response; FakerefsmammalPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsmammalPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md index 0b562b98feb..df2d5c681a3 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md @@ -1,6 +1,6 @@ # Fakerefsnumber -public class extends extends ApiClient implements +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="/fake/refs/number" @@ -49,7 +49,7 @@ 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.paths.fakerefsnumber.FakerefsnumberPost; +import org.openapijsonschematools.client.apis.paths.Fakerefsnumber; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsnumberPost.Post apiClient = new FakerefsnumberPost.Post(apiConfiguration, schemaConfiguration); +Fakerefsnumber apiClient = new Fakerefsnumber(apiConfiguration, schemaConfiguration); var request = new FakerefsnumberPost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakerefsnumberPostResponses.EndpointFakerefsnumberPostCode200Response castResponse = (FakerefsnumberPostResponses.EndpointFakerefsnumberPostCode200Response) response; FakerefsnumberPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsnumberPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md index 051e9eba088..a28f3aeed6c 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md @@ -1,6 +1,6 @@ # Fakerefsobjectmodelwithrefprops -public class extends extends ApiClient implements +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="/fake/refs/object_model_with_ref_props" @@ -49,7 +49,7 @@ 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.paths.fakerefsobjectmodelwithrefprops.FakerefsobjectmodelwithrefpropsPost; +import org.openapijsonschematools.client.apis.paths.Fakerefsobjectmodelwithrefprops; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsobjectmodelwithrefpropsPost.Post apiClient = new FakerefsobjectmodelwithrefpropsPost.Post(apiConfiguration, schemaConfiguration); +Fakerefsobjectmodelwithrefprops apiClient = new Fakerefsobjectmodelwithrefprops(apiConfiguration, schemaConfiguration); var request = new FakerefsobjectmodelwithrefpropsPost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakerefsobjectmodelwithrefpropsPostResponses.EndpointFakerefsobjectmodelwithrefpropsPostCode200Response castResponse = (FakerefsobjectmodelwithrefpropsPostResponses.EndpointFakerefsobjectmodelwithrefpropsPostCode200Response) response; FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md index 6b9581d75a1..94ecc5b0913 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md @@ -1,6 +1,6 @@ # Fakerefsstring -public class extends extends ApiClient implements +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="/fake/refs/string" @@ -49,7 +49,7 @@ 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.paths.fakerefsstring.FakerefsstringPost; +import org.openapijsonschematools.client.apis.paths.Fakerefsstring; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsstringPost.Post apiClient = new FakerefsstringPost.Post(apiConfiguration, schemaConfiguration); +Fakerefsstring apiClient = new Fakerefsstring(apiConfiguration, schemaConfiguration); var request = new FakerefsstringPost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakerefsstringPostResponses.EndpointFakerefsstringPostCode200Response castResponse = (FakerefsstringPostResponses.EndpointFakerefsstringPostCode200Response) response; FakerefsstringPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsstringPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md index 37df922b043..74b0d973701 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md @@ -1,6 +1,6 @@ # Fakeresponsewithoutschema -public class extends extends ApiClient implements +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="/fake/responseWithoutSchema" @@ -45,7 +45,7 @@ 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.paths.fakeresponsewithoutschema.FakeresponsewithoutschemaGet; +import org.openapijsonschematools.client.apis.paths.Fakeresponsewithoutschema; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; import java.io.IOException; @@ -71,7 +71,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeresponsewithoutschemaGet.Get apiClient = new FakeresponsewithoutschemaGet.Get(apiConfiguration, schemaConfiguration); +Fakeresponsewithoutschema apiClient = new Fakeresponsewithoutschema(apiConfiguration, schemaConfiguration); var request = new FakeresponsewithoutschemaGet.GetRequestBuilder().build(); @@ -94,4 +94,5 @@ try { throw e; } FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response castResponse = (FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md index d8b8607eede..b9ca100af50 100644 --- a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md +++ b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md @@ -1,6 +1,6 @@ # Faketestqueryparamters -public class extends extends ApiClient implements +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="/fake/test-query-paramters" @@ -48,7 +48,7 @@ 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.paths.faketestqueryparamters.FaketestqueryparamtersPut; +import org.openapijsonschematools.client.apis.paths.Faketestqueryparamters; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; import java.io.IOException; @@ -74,7 +74,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FaketestqueryparamtersPut.Put apiClient = new FaketestqueryparamtersPut.Put(apiConfiguration, schemaConfiguration); +Faketestqueryparamters apiClient = new Faketestqueryparamters(apiConfiguration, schemaConfiguration); // Map validation @@ -134,4 +134,5 @@ try { throw e; } FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response castResponse = (FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md index 586a45700d3..cfe866e16bc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md @@ -1,6 +1,6 @@ # Fakeuploaddownloadfile -public class extends extends ApiClient implements +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="/fake/uploadDownloadFile" @@ -49,7 +49,7 @@ 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.paths.fakeuploaddownloadfile.FakeuploaddownloadfilePost; +import org.openapijsonschematools.client.apis.paths.Fakeuploaddownloadfile; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeuploaddownloadfilePost.Post apiClient = new FakeuploaddownloadfilePost.Post(apiConfiguration, schemaConfiguration); +Fakeuploaddownloadfile apiClient = new Fakeuploaddownloadfile(apiConfiguration, schemaConfiguration); ApplicationoctetstreamSchema1BoxedString requestBodyPayload = ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.validateAndBox( @@ -108,4 +108,5 @@ try { FakeuploaddownloadfilePostResponses.EndpointFakeuploaddownloadfilePostCode200Response castResponse = (FakeuploaddownloadfilePostResponses.EndpointFakeuploaddownloadfilePostCode200Response) response; FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody deserializedBody = (FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md index 8f6313a258a..76ef6c4cc44 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md @@ -1,6 +1,6 @@ # Fakeuploadfile -public class extends extends ApiClient implements +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="/fake/uploadFile" @@ -49,7 +49,7 @@ 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.paths.fakeuploadfile.FakeuploadfilePost; +import org.openapijsonschematools.client.apis.paths.Fakeuploadfile; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeuploadfilePost.Post apiClient = new FakeuploadfilePost.Post(apiConfiguration, schemaConfiguration); +Fakeuploadfile apiClient = new Fakeuploadfile(apiConfiguration, schemaConfiguration); var request = new FakeuploadfilePost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakeuploadfilePostResponses.EndpointFakeuploadfilePostCode200Response castResponse = (FakeuploadfilePostResponses.EndpointFakeuploadfilePostCode200Response) response; FakeuploadfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeuploadfilePostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md index 5b73f1c5421..c7c661dd0dc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md @@ -1,6 +1,6 @@ # Fakeuploadfiles -public class extends extends ApiClient implements +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="/fake/uploadFiles" @@ -49,7 +49,7 @@ 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.paths.fakeuploadfiles.FakeuploadfilesPost; +import org.openapijsonschematools.client.apis.paths.Fakeuploadfiles; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeuploadfilesPost.Post apiClient = new FakeuploadfilesPost.Post(apiConfiguration, schemaConfiguration); +Fakeuploadfiles apiClient = new Fakeuploadfiles(apiConfiguration, schemaConfiguration); var request = new FakeuploadfilesPost.PostRequestBuilder().build(); @@ -100,4 +100,5 @@ try { FakeuploadfilesPostResponses.EndpointFakeuploadfilesPostCode200Response castResponse = (FakeuploadfilesPostResponses.EndpointFakeuploadfilesPostCode200Response) response; FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md index a89d426a0ce..9d6f98e96cb 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md @@ -1,6 +1,6 @@ # Fakewildcardresponses -public class extends extends ApiClient implements +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="/fake/wildCardResponses" @@ -50,7 +50,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.respons 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.apis.paths.Fakewildcardresponses; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; import java.io.IOException; @@ -76,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakewildcardresponsesGet.Get apiClient = new FakewildcardresponsesGet.Get(apiConfiguration, schemaConfiguration); +Fakewildcardresponses apiClient = new Fakewildcardresponses(apiConfiguration, schemaConfiguration); var request = new FakewildcardresponsesGet.GetRequestBuilder().build(); @@ -115,4 +115,5 @@ FakewildcardresponsesGetCode200Response.ApplicationjsonResponseBody deserialized FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Foo.md b/samples/client/petstore/java/docs/apis/paths/Foo.md index e59ee19a43e..39adddf7265 100644 --- a/samples/client/petstore/java/docs/apis/paths/Foo.md +++ b/samples/client/petstore/java/docs/apis/paths/Foo.md @@ -1,6 +1,6 @@ # Foo -public class extends extends ApiClient implements +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="/foo" @@ -44,7 +44,7 @@ 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.apis.paths.Foo; import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; import java.io.IOException; @@ -70,7 +70,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FooGet.Get apiClient = new FooGet.Get(apiConfiguration, schemaConfiguration); +Foo apiClient = new Foo(apiConfiguration, schemaConfiguration); var request = new FooGet.GetRequestBuilder().build(); @@ -95,4 +95,5 @@ try { FooGetResponses.EndpointFooGetCodedefaultResponse castResponse = (FooGetResponses.EndpointFooGetCodedefaultResponse) response; FooGetCodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (FooGetCodedefaultResponse.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Pet.md b/samples/client/petstore/java/docs/apis/paths/Pet.md index 1f90a9ea082..0d47346c219 100644 --- a/samples/client/petstore/java/docs/apis/paths/Pet.md +++ b/samples/client/petstore/java/docs/apis/paths/Pet.md @@ -1,6 +1,6 @@ # Pet -public class extends extends ApiClient implements +public class Pet extends extends ApiClient implements [PetPost.PostOperation](../../paths/pet/PetPost.md#postoperation), [PetPut.PutOperation](../../paths/pet/PetPut.md#putoperation) @@ -57,7 +57,7 @@ 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.apis.paths.Pet; import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; import java.io.IOException; @@ -92,7 +92,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetPost.Post apiClient = new PetPost.Post(apiConfiguration, schemaConfiguration); +Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); Pet1BoxedMap requestBodyPayload = @@ -205,7 +205,7 @@ import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Re 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.apis.paths.Pet; import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; import java.io.IOException; @@ -237,7 +237,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetPut.Put apiClient = new PetPut.Put(apiConfiguration, schemaConfiguration); +Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); Pet1BoxedMap requestBodyPayload = @@ -305,4 +305,5 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md index 57020242149..783f966b1a9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md @@ -1,6 +1,6 @@ # Petfindbystatus -public class extends extends ApiClient implements +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="/pet/findByStatus" @@ -53,7 +53,7 @@ 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.apis.paths.Petfindbystatus; import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetResponses; import java.io.IOException; @@ -88,7 +88,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetfindbystatusGet.Get apiClient = new PetfindbystatusGet.Get(apiConfiguration, schemaConfiguration); +Petfindbystatus apiClient = new Petfindbystatus(apiConfiguration, schemaConfiguration); // Map validation @@ -130,4 +130,5 @@ try { } PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response castResponse = (PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response) response; } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md index 4e0571df2ef..2faa5135e26 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md @@ -1,6 +1,6 @@ # Petfindbytags -public class extends extends ApiClient implements +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="/pet/findByTags" @@ -53,7 +53,7 @@ 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.apis.paths.Petfindbytags; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; import java.io.IOException; @@ -85,7 +85,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetfindbytagsGet.Get apiClient = new PetfindbytagsGet.Get(apiConfiguration, schemaConfiguration); +Petfindbytags apiClient = new Petfindbytags(apiConfiguration, schemaConfiguration); // Map validation @@ -127,4 +127,5 @@ try { } PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response castResponse = (PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response) response; } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetid.md b/samples/client/petstore/java/docs/apis/paths/Petpetid.md index bfb275ecd83..1c5df7617f5 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetid.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetid.md @@ -1,6 +1,6 @@ # Petpetid -public class extends extends ApiClient implements +public class Petpetid extends extends ApiClient implements [PetpetidDelete.DeleteOperation](../../paths/petpetid/PetpetidDelete.md#deleteoperation), [PetpetidGet.GetOperation](../../paths/petpetid/PetpetidGet.md#getoperation), [PetpetidPost.PostOperation](../../paths/petpetid/PetpetidPost.md#postoperation) @@ -57,7 +57,7 @@ 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.apis.paths.Petpetid; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; import java.io.IOException; @@ -92,7 +92,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetidDelete.Delete apiClient = new PetpetidDelete.Delete(apiConfiguration, schemaConfiguration); +Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); // Map validation @@ -171,7 +171,7 @@ import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGe 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.apis.paths.Petpetid; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; import java.io.IOException; @@ -206,7 +206,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetidGet.Get apiClient = new PetpetidGet.Get(apiConfiguration, schemaConfiguration); +Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); // Map validation @@ -292,7 +292,7 @@ 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.apis.paths.Petpetid; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; import java.io.IOException; @@ -327,7 +327,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetidPost.Post apiClient = new PetpetidPost.Post(apiConfiguration, schemaConfiguration); +Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); // Map validation @@ -364,4 +364,5 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md index 3f34af79e7c..48a6955bcea 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md @@ -1,6 +1,6 @@ # Petpetiduploadimage -public class extends extends ApiClient implements +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="/pet/{petId}/uploadImage" @@ -53,7 +53,7 @@ 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.apis.paths.Petpetiduploadimage; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; import java.io.IOException; @@ -85,7 +85,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetiduploadimagePost.Post apiClient = new PetpetiduploadimagePost.Post(apiConfiguration, schemaConfiguration); +Petpetiduploadimage apiClient = new Petpetiduploadimage(apiConfiguration, schemaConfiguration); // Map validation @@ -121,4 +121,5 @@ try { } PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response castResponse = (PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response) response; } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Solidus.md b/samples/client/petstore/java/docs/apis/paths/Solidus.md index e4d232875f6..34a895f9c84 100644 --- a/samples/client/petstore/java/docs/apis/paths/Solidus.md +++ b/samples/client/petstore/java/docs/apis/paths/Solidus.md @@ -1,6 +1,6 @@ # Solidus -public class extends extends ApiClient implements +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="/" @@ -45,7 +45,7 @@ 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.paths.solidus.SolidusGet; +import org.openapijsonschematools.client.apis.paths.Solidus; import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; import java.io.IOException; @@ -71,7 +71,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -SolidusGet.Get apiClient = new SolidusGet.Get(apiConfiguration, schemaConfiguration); +Solidus apiClient = new Solidus(apiConfiguration, schemaConfiguration); var request = new SolidusGet.GetRequestBuilder().build(); @@ -94,4 +94,5 @@ try { throw e; } SolidusGetResponses.EndpointSolidusGetCode200Response castResponse = (SolidusGetResponses.EndpointSolidusGetCode200Response) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md index 9301c27afb4..edf9f8f6e93 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md @@ -1,6 +1,6 @@ # Storeinventory -public class extends extends ApiClient implements +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="/store/inventory" @@ -51,7 +51,7 @@ 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.apis.paths.Storeinventory; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; import java.io.IOException; @@ -86,7 +86,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreinventoryGet.Get apiClient = new StoreinventoryGet.Get(apiConfiguration, schemaConfiguration); +Storeinventory apiClient = new Storeinventory(apiConfiguration, schemaConfiguration); var request = new StoreinventoryGet.GetRequestBuilder().build(); @@ -110,4 +110,5 @@ try { } StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response castResponse = (StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response) response; } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorder.md b/samples/client/petstore/java/docs/apis/paths/Storeorder.md index 3e6d7cc9eec..4763ee15fe9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorder.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorder.md @@ -1,6 +1,6 @@ # Storeorder -public class extends extends ApiClient implements +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="/store/order" @@ -50,7 +50,7 @@ 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.paths.storeorder.StoreorderPost; +import org.openapijsonschematools.client.apis.paths.Storeorder; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; import java.io.IOException; @@ -76,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreorderPost.Post apiClient = new StoreorderPost.Post(apiConfiguration, schemaConfiguration); +Storeorder apiClient = new Storeorder(apiConfiguration, schemaConfiguration); Order1BoxedMap requestBodyPayload = @@ -130,4 +130,5 @@ if (castResponse.body instanceof StoreorderPostCode200Response.ApplicationxmlRes StoreorderPostCode200Response.ApplicationjsonResponseBody deserializedBody = (StoreorderPostCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md index 5337cf88edd..71bc8d95db4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md @@ -1,6 +1,6 @@ # Storeorderorderid -public class extends extends ApiClient implements +public class Storeorderorderid extends extends ApiClient implements [StoreorderorderidDelete.DeleteOperation](../../paths/storeorderorderid/StoreorderorderidDelete.md#deleteoperation), [StoreorderorderidGet.GetOperation](../../paths/storeorderorderid/StoreorderorderidGet.md#getoperation) @@ -51,7 +51,7 @@ 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.paths.storeorderorderid.StoreorderorderidDelete; +import org.openapijsonschematools.client.apis.paths.Storeorderorderid; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; import java.io.IOException; @@ -77,7 +77,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreorderorderidDelete.Delete apiClient = new StoreorderorderidDelete.Delete(apiConfiguration, schemaConfiguration); +Storeorderorderid apiClient = new Storeorderorderid(apiConfiguration, schemaConfiguration); // Map validation @@ -153,7 +153,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.S 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.apis.paths.Storeorderorderid; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; import java.io.IOException; @@ -179,7 +179,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreorderorderidGet.Get apiClient = new StoreorderorderidGet.Get(apiConfiguration, schemaConfiguration); +Storeorderorderid apiClient = new Storeorderorderid(apiConfiguration, schemaConfiguration); // Map validation @@ -223,4 +223,5 @@ if (castResponse.body instanceof StoreorderorderidGetCode200Response.Application StoreorderorderidGetCode200Response.ApplicationjsonResponseBody deserializedBody = (StoreorderorderidGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/User.md b/samples/client/petstore/java/docs/apis/paths/User.md index 44616c44cc9..157abccbbc6 100644 --- a/samples/client/petstore/java/docs/apis/paths/User.md +++ b/samples/client/petstore/java/docs/apis/paths/User.md @@ -1,6 +1,6 @@ # User -public class extends extends ApiClient implements +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="/user" @@ -49,7 +49,7 @@ 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.paths.user.UserPost; +import org.openapijsonschematools.client.apis.paths.User; import org.openapijsonschematools.client.paths.user.post.UserPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserPost.Post apiClient = new UserPost.Post(apiConfiguration, schemaConfiguration); +User apiClient = new User(apiConfiguration, schemaConfiguration); User1BoxedMap requestBodyPayload = @@ -126,4 +126,5 @@ try { throw e; } UserPostResponses.EndpointUserPostCodedefaultResponse castResponse = (UserPostResponses.EndpointUserPostCodedefaultResponse) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md index 5dc76ea0766..f5405d97b0f 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md @@ -1,6 +1,6 @@ # Usercreatewitharray -public class extends extends ApiClient implements +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="/user/createWithArray" @@ -49,7 +49,7 @@ 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.paths.usercreatewitharray.UsercreatewitharrayPost; +import org.openapijsonschematools.client.apis.paths.Usercreatewitharray; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UsercreatewitharrayPost.Post apiClient = new UsercreatewitharrayPost.Post(apiConfiguration, schemaConfiguration); +Usercreatewitharray apiClient = new Usercreatewitharray(apiConfiguration, schemaConfiguration); ApplicationjsonSchema1BoxedList requestBodyPayload = @@ -148,4 +148,5 @@ try { throw e; } UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse castResponse = (UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md index c7bc845fadb..02715390138 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md @@ -1,6 +1,6 @@ # Usercreatewithlist -public class extends extends ApiClient implements +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="/user/createWithList" @@ -49,7 +49,7 @@ 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.paths.usercreatewithlist.UsercreatewithlistPost; +import org.openapijsonschematools.client.apis.paths.Usercreatewithlist; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; import java.io.IOException; @@ -75,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UsercreatewithlistPost.Post apiClient = new UsercreatewithlistPost.Post(apiConfiguration, schemaConfiguration); +Usercreatewithlist apiClient = new Usercreatewithlist(apiConfiguration, schemaConfiguration); ApplicationjsonSchema1BoxedList requestBodyPayload = @@ -148,4 +148,5 @@ try { throw e; } UsercreatewithlistPostResponses.EndpointUsercreatewithlistPostCodedefaultResponse castResponse = (UsercreatewithlistPostResponses.EndpointUsercreatewithlistPostCodedefaultResponse) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogin.md b/samples/client/petstore/java/docs/apis/paths/Userlogin.md index 01ed558d144..32bae89b5d0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogin.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogin.md @@ -1,6 +1,6 @@ # Userlogin -public class extends extends ApiClient implements +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="/user/login" @@ -50,7 +50,7 @@ import org.openapijsonschematools.client.paths.userlogin.get.responses.Userlogin 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.apis.paths.Userlogin; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; import java.io.IOException; @@ -76,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserloginGet.Get apiClient = new UserloginGet.Get(apiConfiguration, schemaConfiguration); +Userlogin apiClient = new Userlogin(apiConfiguration, schemaConfiguration); // Map validation @@ -122,4 +122,5 @@ if (castResponse.body instanceof UserloginGetCode200Response.ApplicationxmlRespo UserloginGetCode200Response.ApplicationjsonResponseBody deserializedBody = (UserloginGetCode200Response.ApplicationjsonResponseBody) castResponse.body; // handle deserialized body here } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogout.md b/samples/client/petstore/java/docs/apis/paths/Userlogout.md index 267c9cb30be..75eff57b371 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogout.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogout.md @@ -1,6 +1,6 @@ # Userlogout -public class extends extends ApiClient implements +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="/user/logout" @@ -47,7 +47,7 @@ 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.paths.userlogout.UserlogoutGet; +import org.openapijsonschematools.client.apis.paths.Userlogout; import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; import java.io.IOException; @@ -73,7 +73,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserlogoutGet.Get apiClient = new UserlogoutGet.Get(apiConfiguration, schemaConfiguration); +Userlogout apiClient = new Userlogout(apiConfiguration, schemaConfiguration); var request = new UserlogoutGet.GetRequestBuilder().build(); @@ -96,4 +96,5 @@ try { throw e; } UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse castResponse = (UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse) response; -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/paths/Userusername.md b/samples/client/petstore/java/docs/apis/paths/Userusername.md index 463d7378e3f..21dc280b216 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userusername.md +++ b/samples/client/petstore/java/docs/apis/paths/Userusername.md @@ -1,6 +1,6 @@ # Userusername -public class extends extends ApiClient implements +public class Userusername extends extends ApiClient implements [UserusernameDelete.DeleteOperation](../../paths/userusername/UserusernameDelete.md#deleteoperation), [UserusernameGet.GetOperation](../../paths/userusername/UserusernameGet.md#getoperation), [UserusernamePut.PutOperation](../../paths/userusername/UserusernamePut.md#putoperation) @@ -53,7 +53,7 @@ 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.paths.userusername.UserusernameDelete; +import org.openapijsonschematools.client.apis.paths.Userusername; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; import java.io.IOException; @@ -79,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserusernameDelete.Delete apiClient = new UserusernameDelete.Delete(apiConfiguration, schemaConfiguration); +Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration); // Map validation @@ -156,7 +156,7 @@ import org.openapijsonschematools.client.paths.userusername.get.responses.Userus 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.apis.paths.Userusername; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; import java.io.IOException; @@ -182,7 +182,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserusernameGet.Get apiClient = new UserusernameGet.Get(apiConfiguration, schemaConfiguration); +Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration); // Map validation @@ -266,7 +266,7 @@ 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.paths.userusername.UserusernamePut; +import org.openapijsonschematools.client.apis.paths.Userusername; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; import java.io.IOException; @@ -292,7 +292,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserusernamePut.Put apiClient = new UserusernamePut.Put(apiConfiguration, schemaConfiguration); +Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration); User1BoxedMap requestBodyPayload = @@ -356,4 +356,5 @@ try { // or the header content type deserialization has not yet been implemented for this contentType throw e; } -``` \ No newline at end of file +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) 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 1cf0b5eb38b..e16634107eb 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 @@ -1,6 +1,6 @@ # {{pathItem.jsonPathPiece.pascalCase}} -public class {{jsonPathPiece.pascalCase}} extends extends ApiClient implements +public class {{pathItem.jsonPathPiece.pascalCase}} extends extends ApiClient implements {{#each pathItem.operations}} [{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Operation]({{docRoot}}{{pathFromDocRoot}}.md#{{method.kebabCase}}operation){{#unless @last}},{{/unless}} {{/each}} @@ -38,5 +38,7 @@ NotImplementedException - the request body serialization or deserialization has ApiException - server returned a response/contentType not defined in the openapi document
{{headerSize}}### Code Sample -{{> src/main/java/packagename/paths/path/verb/_OperationDocCodeSample operation=this }} +{{> src/main/java/packagename/paths/path/verb/_OperationDocCodeSample apiSubpackage="apis.paths" apiContainerClass=pathItem.jsonPathPiece.pascalCase apiFullyQualifiedClass=pathItem.jsonPathPiece.pascalCase }} {{/each}} + +[[Back to top]](#top) {{> _helper_footer_links readmePath="../../../" endpointLink=true}} diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs index 9920910676d..1d2db077a31 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/OperationDoc.hbs @@ -32,7 +32,7 @@ public static class {{method.pascalCase}} extends ApiClient.ApiClient1 implement a class that allows one to call the endpoint using a method named {{method.camelCase}} {{headerSize}}## Code Sample -{{> src/main/java/packagename/paths/path/verb/_OperationDocCodeSample }} +{{> src/main/java/packagename/paths/path/verb/_OperationDocCodeSample apiSubpackage=subpackage apiContainerClass=jsonPathPiece.pascalCase apiFullyQualifiedClass=(join jsonPathPiece.pascalCase method.pascalCase ".") }} {{headerSize}}## Constructor Summary | Constructor and Description | 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 9af87b9afba..02cf79ee2dc 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 @@ -1,5 +1,4 @@ ``` -{{#with operation}} import {{packageName}}.configurations.ApiConfiguration; import {{packageName}}.configurations.SchemaConfiguration; import {{packageName}}.configurations.JsonSchemaKeywordFlags; @@ -82,7 +81,7 @@ import {{{packageName}}}.{{subpackage}}.{{containerJsonPathPiece.pascalCase}}; {{#with servers}} import {{packageName}}.{{#if subpackage}}{{subpackage}}{{else}}servers{{/if}}.{{jsonPathPiece.pascalCase}}; {{/with}} -import {{packageName}}.{{subpackage}}.{{jsonPathPiece.pascalCase}}; +import {{packageName}}.{{apiSubpackage}}.{{apiContainerClass}}; {{#with responses}} import {{packageName}}.{{subpackage}}.{{jsonPathPiece.pascalCase}}; {{/with}} @@ -161,7 +160,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( timeout ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -{{jsonPathPiece.pascalCase}}.{{method.pascalCase}} apiClient = new {{jsonPathPiece.pascalCase}}.{{method.pascalCase}}(apiConfiguration, schemaConfiguration); +{{apiFullyQualifiedClass}} apiClient = new {{apiFullyQualifiedClass}}(apiConfiguration, schemaConfiguration); {{#gt builders.size 1}} {{#each builders}} @@ -263,5 +262,4 @@ if (response instanceof {{responses.jsonPathPiece.pascalCase}}.Endpoint{{jsonPat } {{/eq}} {{/if}} -{{/with}} ``` \ No newline at end of file From e6e26c9d064f5c6a89f379312f2016144341a5c6 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 11:43:54 -0700 Subject: [PATCH 17/21] Adds tag apis docs --- .../petstore/java/.openapi-generator/FILES | 7 + .../java/docs/apis/tags/Anotherfake.md | 116 + .../petstore/java/docs/apis/tags/Default.md | 99 + .../petstore/java/docs/apis/tags/Fake.md | 4175 +++++++++++++++++ .../docs/apis/tags/Fakeclassnametags123.md | 128 + .../petstore/java/docs/apis/tags/Pet.md | 1127 +++++ .../petstore/java/docs/apis/tags/Store.md | 449 ++ .../petstore/java/docs/apis/tags/User.md | 955 ++++ .../generators/JavaClientGenerator.java | 6 + .../java/packagename/apis/tags/ApiDoc.hbs | 44 + 10 files changed, 7106 insertions(+) create mode 100644 samples/client/petstore/java/docs/apis/tags/Anotherfake.md create mode 100644 samples/client/petstore/java/docs/apis/tags/Default.md create mode 100644 samples/client/petstore/java/docs/apis/tags/Fake.md create mode 100644 samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md create mode 100644 samples/client/petstore/java/docs/apis/tags/Pet.md create mode 100644 samples/client/petstore/java/docs/apis/tags/Store.md create mode 100644 samples/client/petstore/java/docs/apis/tags/User.md create mode 100644 src/main/resources/java/src/main/java/packagename/apis/tags/ApiDoc.hbs diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index fb334932d4f..8db8d9ea067 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -56,6 +56,13 @@ docs/apis/paths/Usercreatewithlist.md docs/apis/paths/Userlogin.md docs/apis/paths/Userlogout.md docs/apis/paths/Userusername.md +docs/apis/tags/Anotherfake.md +docs/apis/tags/Default.md +docs/apis/tags/Fake.md +docs/apis/tags/Fakeclassnametags123.md +docs/apis/tags/Pet.md +docs/apis/tags/Store.md +docs/apis/tags/User.md docs/components/headers/Int32JsonContentTypeHeader.md docs/components/headers/NumberHeader.md docs/components/headers/RefContentSchemaHeader.md diff --git a/samples/client/petstore/java/docs/apis/tags/Anotherfake.md b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md new file mode 100644 index 00000000000..3e2d1f9e52a --- /dev/null +++ b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md @@ -0,0 +1,116 @@ +# Anotherfake + +public class Anotherfake extends extends ApiClient implements +[AnotherfakedummyPatch.Model123TestSpecialTagsOperation](../../paths/anotherfakedummy/AnotherfakedummyPatch.md#model123testspecialtagsoperation) + +an api client class which contains all the routes for path="" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | [model123TestSpecialTags](#model123testspecialtags)([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch#patchrequest) request)
To test special tags and operation ID starting with number | + +## Method Detail + +### model123TestSpecialTags +public [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) model123TestSpecialTags([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch#patchrequest) request) + +To test special tags and operation ID starting with number + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Anotherfake; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Anotherfake apiClient = new Anotherfake(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 +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/tags/Default.md b/samples/client/petstore/java/docs/apis/tags/Default.md new file mode 100644 index 00000000000..03b2ddc8e57 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/tags/Default.md @@ -0,0 +1,99 @@ +# Default + +public class Default extends extends ApiClient implements +[FooGet.FooGetOperation](../../paths/foo/FooGet.md#foogetoperation) + +an api client class which contains all the routes for path="" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | [fooGet](#fooget)([FooGet.GetRequest](../../paths/foo/FooGet#getrequest) request) | + +## Method Detail + +### fooGet +public [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) fooGet([FooGet.GetRequest](../../paths/foo/FooGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.apis.tags.Default; +import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to 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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Default apiClient = new Default(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 +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/tags/Fake.md b/samples/client/petstore/java/docs/apis/tags/Fake.md new file mode 100644 index 00000000000..00442ea6240 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/tags/Fake.md @@ -0,0 +1,4175 @@ +# Fake + +public class Fake extends extends ApiClient implements +[FakejsonpatchPatch.JsonPatchOperation](../../paths/fakejsonpatch/FakejsonpatchPatch.md#jsonpatchoperation), +[FakerefsarrayofenumsPost.ArrayOfEnumsOperation](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#arrayofenumsoperation), +[CommonparamsubdirDelete.DeleteCommonParamOperation](../../paths/commonparamsubdir/CommonparamsubdirDelete.md#deletecommonparamoperation), +[CommonparamsubdirGet.GetCommonParamOperation](../../paths/commonparamsubdir/CommonparamsubdirGet.md#getcommonparamoperation), +[CommonparamsubdirPost.PostCommonParamOperation](../../paths/commonparamsubdir/CommonparamsubdirPost.md#postcommonparamoperation), +[FakecasesensitiveparamsPut.CaseSensitiveParamsOperation](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#casesensitiveparamsoperation), +[FakewildcardresponsesGet.WildCardResponsesOperation](../../paths/fakewildcardresponses/FakewildcardresponsesGet.md#wildcardresponsesoperation), +[FakebodywithqueryparamsPut.BodyWithQueryParamsOperation](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#bodywithqueryparamsoperation), +[FakejsonwithcharsetPost.JsonWithCharsetOperation](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#jsonwithcharsetoperation), +[FakerefsarraymodelPost.ArrayModelOperation](../../paths/fakerefsarraymodel/FakerefsarraymodelPost.md#arraymodeloperation), +[FakehealthGet.FakeHealthGetOperation](../../paths/fakehealth/FakehealthGet.md#fakehealthgetoperation), +[FakerefscomposedoneofnumberwithvalidationsPost.ComposedOneOfDifferentTypesOperation](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#composedoneofdifferenttypesoperation), +[FakerefobjinqueryGet.RefObjectInQueryOperation](../../paths/fakerefobjinquery/FakerefobjinqueryGet.md#refobjectinqueryoperation), +[FakebodywithfileschemaPut.BodyWithFileSchemaOperation](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#bodywithfileschemaoperation), +[FakerefsenumPost.StringEnumOperation](../../paths/fakerefsenum/FakerefsenumPost.md#stringenumoperation), +[FakeredirectionGet.RedirectionOperation](../../paths/fakeredirection/FakeredirectionGet.md#redirectionoperation), +[FakeuploadfilePost.UploadFileOperation](../../paths/fakeuploadfile/FakeuploadfilePost.md#uploadfileoperation), +[FakeinlinecompositionPost.InlineCompositionOperation](../../paths/fakeinlinecomposition/FakeinlinecompositionPost.md#inlinecompositionoperation), +[FakeDelete.GroupParametersOperation](../../paths/fake/FakeDelete.md#groupparametersoperation), +[FakeGet.EnumParametersOperation](../../paths/fake/FakeGet.md#enumparametersoperation), +[FakePatch.ClientModelOperation](../../paths/fake/FakePatch.md#clientmodeloperation), +[FakePost.EndpointParametersOperation](../../paths/fake/FakePost.md#endpointparametersoperation), +[FakerefsobjectmodelwithrefpropsPost.ObjectModelWithRefPropsOperation](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#objectmodelwithrefpropsoperation), +[FakepemcontenttypeGet.PemContentTypeOperation](../../paths/fakepemcontenttype/FakepemcontenttypeGet.md#pemcontenttypeoperation), +[FakerefsnumberPost.NumberWithValidationsOperation](../../paths/fakerefsnumber/FakerefsnumberPost.md#numberwithvalidationsoperation), +[FakerefsstringPost.ModelStringOperation](../../paths/fakerefsstring/FakerefsstringPost.md#modelstringoperation), +[FakeinlineadditionalpropertiesPost.InlineAdditionalPropertiesOperation](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#inlineadditionalpropertiesoperation), +[FakerefsmammalPost.MammalOperation](../../paths/fakerefsmammal/FakerefsmammalPost.md#mammaloperation), +[SolidusGet.SlashRouteOperation](../../paths/solidus/SolidusGet.md#slashrouteoperation), +[FakerefsbooleanPost.ModelBooleanOperation](../../paths/fakerefsboolean/FakerefsbooleanPost.md#modelbooleanoperation), +[FakejsonformdataGet.JsonFormDataOperation](../../paths/fakejsonformdata/FakejsonformdataGet.md#jsonformdataoperation), +[Fakeparametercollisions1ababselfabPost.ParameterCollisionsOperation](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#parametercollisionsoperation), +[FakequeryparamwithjsoncontenttypeGet.QueryParamWithJsonContentTypeOperation](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#queryparamwithjsoncontenttypeoperation), +[FakeobjinqueryGet.ObjectInQueryOperation](../../paths/fakeobjinquery/FakeobjinqueryGet.md#objectinqueryoperation), +[FakemultiplesecuritiesGet.MultipleSecuritiesOperation](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#multiplesecuritiesoperation), +[FaketestqueryparamtersPut.QueryParameterCollectionFormatOperation](../../paths/faketestqueryparamters/FaketestqueryparamtersPut.md#queryparametercollectionformatoperation), +[FakemultipleresponsebodiesGet.MultipleResponseBodiesOperation](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#multipleresponsebodiesoperation), +[FakeresponsewithoutschemaGet.ResponseWithoutSchemaOperation](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#responsewithoutschemaoperation), +[FakemultiplerequestbodycontenttypesPost.MultipleRequestBodyContentTypesOperation](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#multiplerequestbodycontenttypesoperation), +[FakeuploaddownloadfilePost.UploadDownloadFileOperation](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#uploaddownloadfileoperation), +[FakeuploadfilesPost.UploadFilesOperation](../../paths/fakeuploadfiles/FakeuploadfilesPost.md#uploadfilesoperation), +[FakeadditionalpropertieswitharrayofenumsGet.AdditionalPropertiesWithArrayOfEnumsOperation](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#additionalpropertieswitharrayofenumsoperation), +[FakedeletecoffeeidDelete.DeleteCoffeeOperation](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#deletecoffeeoperation) + +an api client class which contains all the routes for path="" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | [jsonPatch](#jsonpatch)([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch#patchrequest) request)
json patch route with a requestBody | +| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | [arrayOfEnums](#arrayofenums)([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#postrequest) request) | +| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | [deleteCommonParam](#deletecommonparam)([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete#deleterequest) request)
common param is overwritten | +| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | [getCommonParam](#getcommonparam)([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet#getrequest) request) | +| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | [postCommonParam](#postcommonparam)([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost#postrequest) request) | +| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | [caseSensitiveParams](#casesensitiveparams)([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#putrequest) request)
Ensures that original naming is used in endpoint params, that way we don't have collisions | +| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | [wildCardResponses](#wildcardresponses)([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet#getrequest) request) | +| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | [bodyWithQueryParams](#bodywithqueryparams)([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#putrequest) request) | +| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | [jsonWithCharset](#jsonwithcharset)([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost#postrequest) request) | +| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | [arrayModel](#arraymodel)([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost#postrequest) request)
Test serialization of ArrayModel | +| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | [fakeHealthGet](#fakehealthget)([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet#getrequest) request) | +| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | [composedOneOfDifferentTypes](#composedoneofdifferenttypes)([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#postrequest) request)
Test serialization of object with $refed properties | +| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | [refObjectInQuery](#refobjectinquery)([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet#getrequest) request) | +| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | [bodyWithFileSchema](#bodywithfileschema)([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut#putrequest) request)
For this test, the body for this request much reference a schema named `File`. | +| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | [stringEnum](#stringenum)([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost#postrequest) request)
Test serialization of outer enum | +| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | [redirection](#redirection)([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet#getrequest) request) | +| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | [uploadFile](#uploadfile)([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost#postrequest) request)
| +| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | [inlineComposition](#inlinecomposition)([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | +| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | [groupParameters](#groupparameters)([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete#deleterequest) request)
Fake endpoint to test group parameters (optional) | +| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | [enumParameters](#enumparameters)([FakeGet.GetRequest](../../paths/fake/FakeGet#getrequest) request)
To test enum parameters | +| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | [clientModel](#clientmodel)([FakePatch.PatchRequest](../../paths/fake/FakePatch#patchrequest) request)
To test "client" model | +| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | [endpointParameters](#endpointparameters)([FakePost.PostRequest](../../paths/fake/FakePost#postrequest) request)
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| +| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | [objectModelWithRefProps](#objectmodelwithrefprops)([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#postrequest) request)
Test serialization of object with $refed properties | +| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | [pemContentType](#pemcontenttype)([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet#getrequest) request) | +| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | [numberWithValidations](#numberwithvalidations)([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost#postrequest) request)
Test serialization of outer number types | +| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | [modelString](#modelstring)([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost#postrequest) request)
Test serialization of outer string types | +| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | [inlineAdditionalProperties](#inlineadditionalproperties)([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#postrequest) request)
| +| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | [mammal](#mammal)([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost#postrequest) request)
Test serialization of mammals | +| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | [slashRoute](#slashroute)([SolidusGet.GetRequest](../../paths/solidus/SolidusGet#getrequest) request) | +| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | [modelBoolean](#modelboolean)([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost#postrequest) request)
Test serialization of outer boolean types | +| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | [jsonFormData](#jsonformdata)([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet#getrequest) request)
| +| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | [parameterCollisions](#parametercollisions)([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#postrequest) request) | +| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | [queryParamWithJsonContentType](#queryparamwithjsoncontenttype)([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#getrequest) request) | +| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | [objectInQuery](#objectinquery)([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet#getrequest) request) | +| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | [multipleSecurities](#multiplesecurities)([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet#getrequest) request) | +| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | [queryParameterCollectionFormat](#queryparametercollectionformat)([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut#putrequest) request)
To test the collection format in query parameters | +| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | [multipleResponseBodies](#multipleresponsebodies)([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#getrequest) request) | +| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | [responseWithoutSchema](#responsewithoutschema)([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#getrequest) request) | +| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | [multipleRequestBodyContentTypes](#multiplerequestbodycontenttypes)([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | +| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | [uploadDownloadFile](#uploaddownloadfile)([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#postrequest) request)
| +| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | [uploadFiles](#uploadfiles)([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost#postrequest) request)
| +| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | [additionalPropertiesWithArrayOfEnums](#additionalpropertieswitharrayofenums)([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#getrequest) request) | +| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | [deleteCoffee](#deletecoffee)([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#deleterequest) request)
Delete the coffee identified by the given id, (delete without request body) | + +## Method Detail + +### jsonPatch +public [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) jsonPatch([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch#patchrequest) request) + +json patch route with a requestBody + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### arrayOfEnums +public [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) arrayOfEnums([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#postrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### deleteCommonParam +public [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) deleteCommonParam([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete#deleterequest) request) + +common param is overwritten + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); + + +// Map validation +CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters = + CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( + new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMapBuilder() + .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; +``` +### getCommonParam +public [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) getCommonParam([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); + + +// Map validation +CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters = + CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( + new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMapBuilder() + .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; +``` +### postCommonParam +public [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) postCommonParam([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost#postrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); + + +// Map validation +CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters = + CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( + new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMapBuilder() + .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; +``` +### caseSensitiveParams +public [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) caseSensitiveParams([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#putrequest) request) + +Ensures that original naming is used in endpoint params, that way we don't have collisions + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); + + +// Map validation +FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters = + FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( + new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMapBuilder() + .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; +``` +### wildCardResponses +public [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) wildCardResponses([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +} +``` +### bodyWithQueryParams +public [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) bodyWithQueryParams([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#putrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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.FakebodywithqueryparamsPutQueryParametersMap queryParameters = + FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( + new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMapBuilder() + .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; +``` +### jsonWithCharset +public [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) jsonWithCharset([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost#postrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### arrayModel +public [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) arrayModel([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost#postrequest) request) + +Test serialization of ArrayModel + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### fakeHealthGet +public [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) fakeHealthGet([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### composedOneOfDifferentTypes +public [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) composedOneOfDifferentTypes([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#postrequest) request) + +Test serialization of object with $refed properties + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### refObjectInQuery +public [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) refObjectInQuery([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### bodyWithFileSchema +public [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) bodyWithFileSchema([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut#putrequest) request) + +For this test, the body for this request much reference a schema named `File`. + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### stringEnum +public [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) stringEnum([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost#postrequest) request) + +Test serialization of outer enum + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### redirection +public [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) redirection([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +} +``` +### uploadFile +public [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) uploadFile([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### inlineComposition +public [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) inlineComposition([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost#postrequest) request) + +composed schemas at inline locations + multiple requestBody content types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +} +``` +### groupParameters +public [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) groupParameters([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete#deleterequest) request) + +Fake endpoint to test group parameters (optional) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); + + +// Map validation +FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters = + FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( + new FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMapBuilder() + .required_boolean_group("true") + + .boolean_group("true") + + .build(), + schemaConfiguration +); + +// Map validation +FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters = + FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( + new FakeDeleteQueryParameters.FakeDeleteQueryParametersMapBuilder() + .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; +``` +### enumParameters +public [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) enumParameters([FakeGet.GetRequest](../../paths/fake/FakeGet#getrequest) request) + +To test enum parameters + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### clientModel +public [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) clientModel([FakePatch.PatchRequest](../../paths/fake/FakePatch#patchrequest) request) + +To test "client" model + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### endpointParameters +public [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) endpointParameters([FakePost.PostRequest](../../paths/fake/FakePost#postrequest) request) + +Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
+ +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### objectModelWithRefProps +public [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) objectModelWithRefProps([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#postrequest) request) + +Test serialization of object with $refed properties + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### pemContentType +public [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) pemContentType([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### numberWithValidations +public [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) numberWithValidations([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost#postrequest) request) + +Test serialization of outer number types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### modelString +public [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) modelString([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost#postrequest) request) + +Test serialization of outer string types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### inlineAdditionalProperties +public [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) inlineAdditionalProperties([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### mammal +public [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) mammal([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost#postrequest) request) + +Test serialization of mammals + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### slashRoute +public [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) slashRoute([SolidusGet.GetRequest](../../paths/solidus/SolidusGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### modelBoolean +public [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) modelBoolean([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost#postrequest) request) + +Test serialization of outer boolean types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### jsonFormData +public [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) jsonFormData([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet#getrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### parameterCollisions +public [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) parameterCollisions([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#postrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); + + +// Map validation +Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters = + Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( + new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() + .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 +``` +### queryParamWithJsonContentType +public [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) queryParamWithJsonContentType([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); + + +// Map validation +FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters = + FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( + new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() + .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 +``` +### objectInQuery +public [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) objectInQuery([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### multipleSecurities +public [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) multipleSecurities([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### queryParameterCollectionFormat +public [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) queryParameterCollectionFormat([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut#putrequest) request) + +To test the collection format in query parameters + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); + + +// Map validation +FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters = + FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( + new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMapBuilder() + .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; +``` +### multipleResponseBodies +public [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) multipleResponseBodies([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +} +``` +### responseWithoutSchema +public [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) responseWithoutSchema([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` +### multipleRequestBodyContentTypes +public [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) multipleRequestBodyContentTypes([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#postrequest) request) + +composed schemas at inline locations + multiple requestBody content types + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### uploadDownloadFile +public [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) uploadDownloadFile([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### uploadFiles +public [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) uploadFiles([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### additionalPropertiesWithArrayOfEnums +public [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) additionalPropertiesWithArrayOfEnums([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#getrequest) request) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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 +``` +### deleteCoffee +public [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) deleteCoffee([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#deleterequest) request) + +Delete the coffee identified by the given id, (delete without request body) + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); + + +// Map validation +FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters = + FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( + new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMapBuilder() + .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; +} +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md new file mode 100644 index 00000000000..c655b928096 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md @@ -0,0 +1,128 @@ +# Fakeclassnametags123 + +public class Fakeclassnametags123 extends extends ApiClient implements +[FakeclassnametestPatch.ClassnameOperation](../../paths/fakeclassnametest/FakeclassnametestPatch.md#classnameoperation) + +an api client class which contains all the routes for path="" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | [classname](#classname)([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch#patchrequest) request)
To test class name in snake case | + +## Method Detail + +### classname +public [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) classname([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch#patchrequest) request) + +To test class name in snake case + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Fakeclassnametags123; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fakeclassnametags123 apiClient = new Fakeclassnametags123(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 +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/tags/Pet.md b/samples/client/petstore/java/docs/apis/tags/Pet.md new file mode 100644 index 00000000000..bfa5a71e1be --- /dev/null +++ b/samples/client/petstore/java/docs/apis/tags/Pet.md @@ -0,0 +1,1127 @@ +# Pet + +public class Pet extends extends ApiClient implements +[FakepetiduploadimagewithrequiredfilePost.UploadFileWithRequiredFileOperation](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#uploadfilewithrequiredfileoperation), +[PetPost.AddPetOperation](../../paths/pet/PetPost.md#addpetoperation), +[PetPut.UpdatePetOperation](../../paths/pet/PetPut.md#updatepetoperation), +[PetfindbytagsGet.FindPetsByTagsOperation](../../paths/petfindbytags/PetfindbytagsGet.md#findpetsbytagsoperation), +[PetfindbystatusGet.FindPetsByStatusOperation](../../paths/petfindbystatus/PetfindbystatusGet.md#findpetsbystatusoperation), +[PetpetiduploadimagePost.UploadImageOperation](../../paths/petpetiduploadimage/PetpetiduploadimagePost.md#uploadimageoperation), +[PetpetidDelete.DeletePetOperation](../../paths/petpetid/PetpetidDelete.md#deletepetoperation), +[PetpetidGet.GetPetByIdOperation](../../paths/petpetid/PetpetidGet.md#getpetbyidoperation), +[PetpetidPost.UpdatePetWithFormOperation](../../paths/petpetid/PetpetidPost.md#updatepetwithformoperation) + +an api client class which contains all the routes for path="" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | [uploadFileWithRequiredFile](#uploadfilewithrequiredfile)([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#postrequest) request)
| +| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | [addPet](#addpet)([PetPost.PostRequest](../../paths/pet/PetPost#postrequest) request)
Add a new pet to the store | +| Void | [updatePet](#updatepet)([PetPut.PutRequest](../../paths/pet/PetPut#putrequest) request)
| +| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | [findPetsByTags](#findpetsbytags)([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet#getrequest) request)
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. | +| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | [findPetsByStatus](#findpetsbystatus)([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet#getrequest) request)
Multiple status values can be provided with comma separated strings | +| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | [uploadImage](#uploadimage)([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost#postrequest) request)
| +| Void | [deletePet](#deletepet)([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete#deleterequest) request)
| +| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | [getPetById](#getpetbyid)([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet#getrequest) request)
Returns a single pet | +| Void | [updatePetWithForm](#updatepetwithform)([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost#postrequest) request)
| + +## Method Detail + +### uploadFileWithRequiredFile +public [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) uploadFileWithRequiredFile([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Pet; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); + + +// Map validation +FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters = + FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( + new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() + .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 +``` +### addPet +public [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) addPet([PetPost.PostRequest](../../paths/pet/PetPost#postrequest) request) + +Add a new pet to the store + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Pet; +import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Pet apiClient = new Pet(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; +``` +### updatePet +public Void updatePet([PetPut.PutRequest](../../paths/pet/PetPut#putrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Pet; +import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Pet apiClient = new Pet(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; +} +``` +### findPetsByTags +public [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) findPetsByTags([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet#getrequest) request) + +Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Pet; +import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); + + +// Map validation +PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters = + PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( + new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMapBuilder() + .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; +} +``` +### findPetsByStatus +public [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) findPetsByStatus([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet#getrequest) request) + +Multiple status values can be provided with comma separated strings + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.apis.tags.Pet; +import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to 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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); + + +// Map validation +PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters = + PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( + new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMapBuilder() + .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; +} +``` +### uploadImage +public [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) uploadImage([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Pet; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters = + PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( + new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMapBuilder() + .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; +} +``` +### deletePet +public Void deletePet([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete#deleterequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Pet; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters = + PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( + new PetpetidDeletePathParameters.PetpetidDeletePathParametersMapBuilder() + .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; +} +``` +### getPetById +public [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) getPetById([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet#getrequest) request) + +Returns a single pet + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Pet; +import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters = + PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( + new PetpetidGetPathParameters.PetpetidGetPathParametersMapBuilder() + .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 +} +``` +### updatePetWithForm +public Void updatePetWithForm([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Pet; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters = + PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( + new PetpetidPostPathParameters.PetpetidPostPathParametersMapBuilder() + .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; +} +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/tags/Store.md b/samples/client/petstore/java/docs/apis/tags/Store.md new file mode 100644 index 00000000000..5b1023e3bf0 --- /dev/null +++ b/samples/client/petstore/java/docs/apis/tags/Store.md @@ -0,0 +1,449 @@ +# Store + +public class Store extends extends ApiClient implements +[StoreinventoryGet.GetInventoryOperation](../../paths/storeinventory/StoreinventoryGet.md#getinventoryoperation), +[StoreorderorderidDelete.DeleteOrderOperation](../../paths/storeorderorderid/StoreorderorderidDelete.md#deleteorderoperation), +[StoreorderorderidGet.GetOrderByIdOperation](../../paths/storeorderorderid/StoreorderorderidGet.md#getorderbyidoperation), +[StoreorderPost.PlaceOrderOperation](../../paths/storeorder/StoreorderPost.md#placeorderoperation) + +an api client class which contains all the routes for path="" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | [getInventory](#getinventory)([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet#getrequest) request)
Returns a map of status codes to quantities | +| Void | [deleteOrder](#deleteorder)([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete#deleterequest) request)
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors | +| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | [getOrderById](#getorderbyid)([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet#getrequest) request)
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions | +| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | [placeOrder](#placeorder)([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost#postrequest) request)
| + +## Method Detail + +### getInventory +public [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) getInventory([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet#getrequest) request) + +Returns a map of status codes to quantities + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Store; +import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .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); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Store apiClient = new Store(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; +} +``` +### deleteOrder +public Void deleteOrder([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete#deleterequest) request) + +For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.Store; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Store apiClient = new Store(apiConfiguration, schemaConfiguration); + + +// Map validation +StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters = + StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( + new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMapBuilder() + .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; +} +``` +### getOrderById +public [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) getOrderById([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet#getrequest) request) + +For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Store; +import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Store apiClient = new Store(apiConfiguration, schemaConfiguration); + + +// Map validation +StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters = + StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( + new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMapBuilder() + .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 +} +``` +### placeOrder +public [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) placeOrder([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.Store; +import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Store apiClient = new Store(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 +} +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/apis/tags/User.md b/samples/client/petstore/java/docs/apis/tags/User.md new file mode 100644 index 00000000000..4ccdf17674a --- /dev/null +++ b/samples/client/petstore/java/docs/apis/tags/User.md @@ -0,0 +1,955 @@ +# User + +public class User extends extends ApiClient implements +[UserlogoutGet.LogoutUserOperation](../../paths/userlogout/UserlogoutGet.md#logoutuseroperation), +[UsercreatewitharrayPost.CreateUsersWithArrayInputOperation](../../paths/usercreatewitharray/UsercreatewitharrayPost.md#createuserswitharrayinputoperation), +[UserPost.CreateUserOperation](../../paths/user/UserPost.md#createuseroperation), +[UserloginGet.LoginUserOperation](../../paths/userlogin/UserloginGet.md#loginuseroperation), +[UserusernameDelete.DeleteUserOperation](../../paths/userusername/UserusernameDelete.md#deleteuseroperation), +[UserusernameGet.GetUserByNameOperation](../../paths/userusername/UserusernameGet.md#getuserbynameoperation), +[UserusernamePut.UpdateUserOperation](../../paths/userusername/UserusernamePut.md#updateuseroperation), +[UsercreatewithlistPost.CreateUsersWithListInputOperation](../../paths/usercreatewithlist/UsercreatewithlistPost.md#createuserswithlistinputoperation) + +an api client class which contains all the routes for path="" + +## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | [logoutUser](#logoutuser)([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet#getrequest) request)
| +| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | [createUsersWithArrayInput](#createuserswitharrayinput)([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost#postrequest) request)
| +| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | [createUser](#createuser)([UserPost.PostRequest](../../paths/user/UserPost#postrequest) request)
This can only be done by the logged in user. | +| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | [loginUser](#loginuser)([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet#getrequest) request)
| +| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | [deleteUser](#deleteuser)([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete#deleterequest) request)
This can only be done by the logged in user. | +| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | [getUserByName](#getuserbyname)([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet#getrequest) request)
| +| Void | [updateUser](#updateuser)([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut#putrequest) request)
This can only be done by the logged in user. | +| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | [createUsersWithListInput](#createuserswithlistinput)([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost#postrequest) request)
| + +## Method Detail + +### logoutUser +public [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) logoutUser([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet#getrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.User; +import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +User apiClient = new User(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; +``` +### createUsersWithArrayInput +public [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) createUsersWithArrayInput([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.User; +import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +User apiClient = new User(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; +``` +### createUser +public [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) createUser([UserPost.PostRequest](../../paths/user/UserPost#postrequest) request) + +This can only be done by the logged in user. + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.User; +import org.openapijsonschematools.client.paths.user.post.UserPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +User apiClient = new User(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; +``` +### loginUser +public [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) loginUser([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet#getrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.User; +import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +User apiClient = new User(apiConfiguration, schemaConfiguration); + + +// Map validation +UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters = + UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( + new UserloginGetQueryParameters.UserloginGetQueryParametersMapBuilder() + .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 +} +``` +### deleteUser +public [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) deleteUser([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete#deleterequest) request) + +This can only be done by the logged in user. + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.User; +import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +User apiClient = new User(apiConfiguration, schemaConfiguration); + + +// Map validation +UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters = + UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( + new UserusernameDeletePathParameters.UserusernameDeletePathParametersMapBuilder() + .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; +``` +### getUserByName +public [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) getUserByName([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet#getrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.User; +import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +User apiClient = new User(apiConfiguration, schemaConfiguration); + + +// Map validation +UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters = + UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( + new UserusernameGetPathParameters.UserusernameGetPathParametersMapBuilder() + .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 +} +``` +### updateUser +public Void updateUser([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut#putrequest) request) + +This can only be done by the logged in user. + +**Parameters:**
+request - the input request + +**Returns:**
+nothing (Void) + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.RootServerInfo; +import org.openapijsonschematools.client.apis.tags.User; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +User apiClient = new User(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.UserusernamePutPathParametersMap pathParameters = + UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( + new UserusernamePutPathParameters.UserusernamePutPathParametersMapBuilder() + .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; +} +``` +### createUsersWithListInput +public [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) createUsersWithListInput([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost#postrequest) request) + + + +**Parameters:**
+request - the input request + +**Returns:**
+the deserialized response + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +#### 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.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.apis.tags.User; +import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +User apiClient = new User(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; +``` +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index fb9245ffd80..15123eb8899 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -1025,6 +1025,12 @@ public void processOpts() { put("src/main/java/packagename/apis/tags/Api.hbs", ".java"); }} ); + jsonPathDocTemplateFiles.put( + CodegenConstants.JSON_PATH_LOCATION_TYPE.API_TAG, + new HashMap<>() {{ + put("src/main/java/packagename/apis/tags/ApiDoc.hbs", ".md"); + }} + ); // schema HashMap schemaTemplates = new HashMap<>(); diff --git a/src/main/resources/java/src/main/java/packagename/apis/tags/ApiDoc.hbs b/src/main/resources/java/src/main/java/packagename/apis/tags/ApiDoc.hbs new file mode 100644 index 00000000000..779ea843514 --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/apis/tags/ApiDoc.hbs @@ -0,0 +1,44 @@ +# {{tag.className}} + +public class {{tag.className}} extends extends ApiClient implements +{{#each operations}} +[{{jsonPathPiece.pascalCase}}.{{operationId.pascalCase}}Operation]({{docRoot}}{{pathFromDocRoot}}.md#{{operationId.kebabCase}}operation){{#unless @last}},{{/unless}} +{{/each}} + +an api client class which contains all the routes for path="{{path.original}}" + +{{headerSize}}# Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +{{#each operations}} +| {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | [{{operationId.camelCase}}](#{{operationId.kebabCase}})([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}#{{method.kebabCase}}request) request){{#if description}}
{{description.originalWithBr}}{{/if}} | +{{/each}} + +{{headerSize}}# Method Detail +{{#each operations}} + +{{headerSize}}## {{operationId.camelCase}} +public {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} {{operationId.camelCase}}([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}#{{method.kebabCase}}request) request) +{{#if description}} + +{{description.originalWithBr}} +{{/if}} + +**Parameters:**
+request - the input request + +**Returns:**
+{{#if nonErrorResponses }}the deserialized response{{else}}nothing (Void){{/if}} + +**Throws:**
+IOException, InterruptedException - an exception happened when making the request
+ValidationException - the returned response body or header values do not conform the the schema validation requirements
+NotImplementedException - 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
+ApiException - server returned a response/contentType not defined in the openapi document
+ +{{headerSize}}### Code Sample +{{> src/main/java/packagename/paths/path/verb/_OperationDocCodeSample apiSubpackage="apis.tags" apiContainerClass=tag.className apiFullyQualifiedClass=tag.className }} +{{/each}} + +[[Back to top]](#top) {{> _helper_footer_links readmePath="../../../" endpointLink=true}} From 4596b044b7b3fa60330af344e49e19996a931d23 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 12:30:05 -0700 Subject: [PATCH 18/21] Petstore regen --- samples/client/petstore/java/README.md | 259 +++++++++++++++---------- src/main/resources/java/README.hbs | 106 +++++----- 2 files changed, 213 insertions(+), 152 deletions(-) diff --git a/samples/client/petstore/java/README.md b/samples/client/petstore/java/README.md index 7857eb12e47..d560fe3e68e 100644 --- a/samples/client/petstore/java/README.md +++ b/samples/client/petstore/java/README.md @@ -65,8 +65,8 @@ Here is the mapping from json schema types to Java types: | Json Schema Type | Java Base Class | | ---------------- | --------------- | -| object | FrozenMap (HashMap) | -| array | FrozenList (ArrayList) | +| object | FrozenMap (Map) | +| array | FrozenList (List) | | string | String | | number | Number (int, long, float, double) | | integer | int, long, float, double (with values equal to integers) | @@ -102,7 +102,7 @@ invalid Java variable names. Names like: - " " - "from" -To allow these use cases to work, FrozenMap (which extends HashMap) is used as the base class of type object schemas. +To allow these use cases to work, FrozenMap (which extends AbstractMap) is used as the base class of type object schemas. This means that one can use normal Map methods on instances of these classes.
@@ -118,8 +118,6 @@ This means that one can use normal Map methods on instances of these classes. N schemas can be validated on the same payload. To allow multiple schemas to validate, the data must be stored using one base class whether or not a json schema format constraint exists in the schema. -See the below accessors for string data: -- type string + format: See schemas.as_date, schemas.as_datetime, schemas.as_decimal, schemas.as_uuid In json schema, type: number with no format validates both integers and floats, so int and float values are stored for type number. @@ -137,7 +135,7 @@ For example the string payload '2023-12-20' is validates to both of these schema - type: string format: date ``` -Because of use cases like this, a datetime.date is allowed as an input to this schema, but the data +Because of use cases like this, a LocalDate is allowed as an input to this schema, but the data is stored as a string.
@@ -148,6 +146,73 @@ org.openapijsonschematools.client.components.schemas to validate input payloads output classes. Json schemas allow multiple types for one schema, so a schema's validate method can have allowed input and output types. +## 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.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.apis.tags.Fake; +import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fake apiClient = new Fake(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; +``` ## Servers | server_index | Class | Description | | ------------ | ----- | ----------- | @@ -155,8 +220,94 @@ allowed input and output types. | 1 | [Server1](docs/servers/Server1.md) | The local server | | 2 | [Server2](docs/servers/Server2.md) | staging server with no variables | -## Component Schemas +## Component SecuritySchemes +| Class | Description | +| ----- | ----------- | +| [ApiKey](docs/components/securityschemes/ApiKey.md) | apiKey in header | +| [ApiKeyQuery](docs/components/securityschemes/ApiKeyQuery.md) | apiKey in query | +| [BearerTest](docs/components/securityschemes/BearerTest.md) | http bearer with JWT bearer format | +| [HttpBasicTest](docs/components/securityschemes/HttpBasicTest.md) | http basic | +| [HttpSignatureTest](docs/components/securityschemes/HttpSignatureTest.md) | http + signature | +| [OpenIdConnectTest](docs/components/securityschemes/OpenIdConnectTest.md) | openIdConnect | +| [PetstoreAuth](docs/components/securityschemes/PetstoreAuth.md) | oauth2 implicit flow with two scopes | + +## Endpoints +All URIs are relative to the selected server +- The server is selected by passing in serverInfo + serverIndexInfo into configurations.ApiConfiguration +- The security info is selected by passing in securityInfo + securityIndexInfo into configurations.ApiConfiguration +- serverIndex + securityIndex can also be passed in to endpoint calls, see endpoint documentation + +| HTTP request | Methods | Description | +| ------------ | ------- | ----------- | +| / **get** | [Fake.slashRoute](docs/apis/tags/Fake.md#slashroute) [Solidus.get](docs/paths/Solidus.md#get) [SolidusGet.get](paths/solidus/SolidusGet#get) | slash route | +| /another-fake/dummy **patch** | [Anotherfake.model123TestSpecialTags](docs/apis/tags/Anotherfake.md#model123testspecialtags) [Anotherfakedummy.patch](docs/paths/Anotherfakedummy.md#patch) [AnotherfakedummyPatch.patch](paths/anotherfakedummy/AnotherfakedummyPatch#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](paths/commonparamsubdir/CommonparamsubdirDelete#delete) | | +| /commonParam/{subDir}/ **get** | [Fake.getCommonParam](docs/apis/tags/Fake.md#getcommonparam) [Commonparamsubdir.get](docs/paths/Commonparamsubdir.md#get) [CommonparamsubdirGet.get](paths/commonparamsubdir/CommonparamsubdirGet#get) | | +| /commonParam/{subDir}/ **post** | [Fake.postCommonParam](docs/apis/tags/Fake.md#postcommonparam) [Commonparamsubdir.post](docs/paths/Commonparamsubdir.md#post) [CommonparamsubdirPost.post](paths/commonparamsubdir/CommonparamsubdirPost#post) | | +| /fake **delete** | [Fake.groupParameters](docs/apis/tags/Fake.md#groupparameters) [Fake.delete](docs/paths/Fake.md#delete) [FakeDelete.delete](paths/fake/FakeDelete#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](paths/fake/FakeGet#get) | To test enum parameters | +| /fake **patch** | [Fake.clientModel](docs/apis/tags/Fake.md#clientmodel) [Fake.patch](docs/paths/Fake.md#patch) [FakePatch.patch](paths/fake/FakePatch#patch) | To test "client" model | +| /fake **post** | [Fake.endpointParameters](docs/apis/tags/Fake.md#endpointparameters) [Fake.post](docs/paths/Fake.md#post) [FakePost.post](paths/fake/FakePost#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](paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#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](paths/fakebodywithfileschema/FakebodywithfileschemaPut#put) | | +| /fake/body-with-query-params **put** | [Fake.bodyWithQueryParams](docs/apis/tags/Fake.md#bodywithqueryparams) [Fakebodywithqueryparams.put](docs/paths/Fakebodywithqueryparams.md#put) [FakebodywithqueryparamsPut.put](paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#put) | | +| /fake/case-sensitive-params **put** | [Fake.caseSensitiveParams](docs/apis/tags/Fake.md#casesensitiveparams) [Fakecasesensitiveparams.put](docs/paths/Fakecasesensitiveparams.md#put) [FakecasesensitiveparamsPut.put](paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#put) | | +| /fake/deleteCoffee/{id} **delete** | [Fake.deleteCoffee](docs/apis/tags/Fake.md#deletecoffee) [Fakedeletecoffeeid.delete](docs/paths/Fakedeletecoffeeid.md#delete) [FakedeletecoffeeidDelete.delete](paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#delete) | Delete coffee | +| /fake/health **get** | [Fake.fakeHealthGet](docs/apis/tags/Fake.md#fakehealthget) [Fakehealth.get](docs/paths/Fakehealth.md#get) [FakehealthGet.get](paths/fakehealth/FakehealthGet#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](paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#post) | test inline additionalProperties | +| /fake/inlineComposition/ **post** | [Fake.inlineComposition](docs/apis/tags/Fake.md#inlinecomposition) [Fakeinlinecomposition.post](docs/paths/Fakeinlinecomposition.md#post) [FakeinlinecompositionPost.post](paths/fakeinlinecomposition/FakeinlinecompositionPost#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](paths/fakejsonformdata/FakejsonformdataGet#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](paths/fakejsonpatch/FakejsonpatchPatch#patch) | json patch | +| /fake/jsonWithCharset **post** | [Fake.jsonWithCharset](docs/apis/tags/Fake.md#jsonwithcharset) [Fakejsonwithcharset.post](docs/paths/Fakejsonwithcharset.md#post) [FakejsonwithcharsetPost.post](paths/fakejsonwithcharset/FakejsonwithcharsetPost#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](paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#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](paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#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](paths/fakemultiplesecurities/FakemultiplesecuritiesGet#get) | multiple security requirements | +| /fake/objInQuery **get** | [Fake.objectInQuery](docs/apis/tags/Fake.md#objectinquery) [Fakeobjinquery.get](docs/paths/Fakeobjinquery.md#get) [FakeobjinqueryGet.get](paths/fakeobjinquery/FakeobjinqueryGet#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](paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#post) | parameter collision case | +| /fake/pemContentType **get** | [Fake.pemContentType](docs/apis/tags/Fake.md#pemcontenttype) [Fakepemcontenttype.get](docs/paths/Fakepemcontenttype.md#get) [FakepemcontenttypeGet.get](paths/fakepemcontenttype/FakepemcontenttypeGet#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](paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#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](paths/fakeredirection/FakeredirectionGet#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](paths/fakerefobjinquery/FakerefobjinqueryGet#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](paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#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](paths/fakerefsarraymodel/FakerefsarraymodelPost#post) | | +| /fake/refs/boolean **post** | [Fake.modelBoolean](docs/apis/tags/Fake.md#modelboolean) [Fakerefsboolean.post](docs/paths/Fakerefsboolean.md#post) [FakerefsbooleanPost.post](paths/fakerefsboolean/FakerefsbooleanPost#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](paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#post) | | +| /fake/refs/enum **post** | [Fake.stringEnum](docs/apis/tags/Fake.md#stringenum) [Fakerefsenum.post](docs/paths/Fakerefsenum.md#post) [FakerefsenumPost.post](paths/fakerefsenum/FakerefsenumPost#post) | | +| /fake/refs/mammal **post** | [Fake.mammal](docs/apis/tags/Fake.md#mammal) [Fakerefsmammal.post](docs/paths/Fakerefsmammal.md#post) [FakerefsmammalPost.post](paths/fakerefsmammal/FakerefsmammalPost#post) | | +| /fake/refs/number **post** | [Fake.numberWithValidations](docs/apis/tags/Fake.md#numberwithvalidations) [Fakerefsnumber.post](docs/paths/Fakerefsnumber.md#post) [FakerefsnumberPost.post](paths/fakerefsnumber/FakerefsnumberPost#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](paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#post) | | +| /fake/refs/string **post** | [Fake.modelString](docs/apis/tags/Fake.md#modelstring) [Fakerefsstring.post](docs/paths/Fakerefsstring.md#post) [FakerefsstringPost.post](paths/fakerefsstring/FakerefsstringPost#post) | | +| /fake/responseWithoutSchema **get** | [Fake.responseWithoutSchema](docs/apis/tags/Fake.md#responsewithoutschema) [Fakeresponsewithoutschema.get](docs/paths/Fakeresponsewithoutschema.md#get) [FakeresponsewithoutschemaGet.get](paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#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](paths/faketestqueryparamters/FaketestqueryparamtersPut#put) | | +| /fake/uploadDownloadFile **post** | [Fake.uploadDownloadFile](docs/apis/tags/Fake.md#uploaddownloadfile) [Fakeuploaddownloadfile.post](docs/paths/Fakeuploaddownloadfile.md#post) [FakeuploaddownloadfilePost.post](paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#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](paths/fakeuploadfile/FakeuploadfilePost#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](paths/fakeuploadfiles/FakeuploadfilesPost#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](paths/fakewildcardresponses/FakewildcardresponsesGet#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](paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#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](paths/fakeclassnametest/FakeclassnametestPatch#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](paths/foo/FooGet#get) | | +| /pet **post** | [Pet.addPet](docs/apis/tags/Pet.md#addpet) [Pet.post](docs/paths/Pet.md#post) [PetPost.post](paths/pet/PetPost#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](paths/pet/PetPut#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](paths/petfindbystatus/PetfindbystatusGet#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](paths/petfindbytags/PetfindbytagsGet#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](paths/petpetid/PetpetidDelete#delete) | Deletes a pet | +| /pet/{petId} **get** | [Pet.getPetById](docs/apis/tags/Pet.md#getpetbyid) [Petpetid.get](docs/paths/Petpetid.md#get) [PetpetidGet.get](paths/petpetid/PetpetidGet#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](paths/petpetid/PetpetidPost#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](paths/petpetiduploadimage/PetpetiduploadimagePost#post) | uploads an image | +| /store/inventory **get** | [Store.getInventory](docs/apis/tags/Store.md#getinventory) [Storeinventory.get](docs/paths/Storeinventory.md#get) [StoreinventoryGet.get](paths/storeinventory/StoreinventoryGet#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](paths/storeorder/StoreorderPost#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](paths/storeorderorderid/StoreorderorderidDelete#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](paths/storeorderorderid/StoreorderorderidGet#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](paths/user/UserPost#post) | Create user | +| /user/createWithArray **post** | [User.createUsersWithArrayInput](docs/apis/tags/User.md#createuserswitharrayinput) [Usercreatewitharray.post](docs/paths/Usercreatewitharray.md#post) [UsercreatewitharrayPost.post](paths/usercreatewitharray/UsercreatewitharrayPost#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](paths/usercreatewithlist/UsercreatewithlistPost#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](paths/userlogin/UserloginGet#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](paths/userlogout/UserlogoutGet#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](paths/userusername/UserusernameDelete#delete) | Delete user | +| /user/{username} **get** | [User.getUserByName](docs/apis/tags/User.md#getuserbyname) [Userusername.get](docs/paths/Userusername.md#get) [UserusernameGet.get](paths/userusername/UserusernameGet#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](paths/userusername/UserusernamePut#put) | Updated user | +## Component Schemas | Class | Description | | ----- | ----------- | | [Schema200Response.Schema200Response1](docs/components/schemas/Schema200Response.md#schema200response1) | model with an invalid class name for python, starts with a number | @@ -301,86 +452,7 @@ allowed input and output types. | [Whale.Whale1](docs/components/schemas/Whale.md#whale1) | | | [Zebra.Zebra1](docs/components/schemas/Zebra.md#zebra1) | | -## Endpoints - -All URIs are relative to the selected server -- The server is selected by passing in serverInfo into configurations.ApiConfiguration -- The security info is selected by passing in securityInfo into configurations.ApiConfiguration -- TODO Code samples in endpoints documents show how to do this -- serverIndex + securityIndex can also be passed in to endpoint calls, see endpoint documentation - -| HTTP request | Method | Description | -| ------------ | ------ | ----------- | -| / **get** | [SolidusGet1.get](docs/paths/solidus/SolidusGet.md#solidusget1) | slash route | -| /another-fake/dummy **patch** | [AnotherfakedummyPatch1.patch](docs/paths/anotherfakedummy/AnotherfakedummyPatch.md#anotherfakedummypatch1) | To test special tags | -| /commonParam/{subDir}/ **delete** | [CommonparamsubdirDelete1.delete](docs/paths/commonparamsubdir/CommonparamsubdirDelete.md#commonparamsubdirdelete1) | | -| /commonParam/{subDir}/ **get** | [CommonparamsubdirGet1.get](docs/paths/commonparamsubdir/CommonparamsubdirGet.md#commonparamsubdirget1) | | -| /commonParam/{subDir}/ **post** | [CommonparamsubdirPost1.post](docs/paths/commonparamsubdir/CommonparamsubdirPost.md#commonparamsubdirpost1) | | -| /fake **delete** | [FakeDelete1.delete](docs/paths/fake/FakeDelete.md#fakedelete1) | Fake endpoint to test group parameters (optional) | -| /fake **get** | [FakeGet1.get](docs/paths/fake/FakeGet.md#fakeget1) | To test enum parameters | -| /fake **patch** | [FakePatch1.patch](docs/paths/fake/FakePatch.md#fakepatch1) | To test "client" model | -| /fake **post** | [FakePost1.post](docs/paths/fake/FakePost.md#fakepost1) | Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| -| /fake/additional-properties-with-array-of-enums **get** | [FakeadditionalpropertieswitharrayofenumsGet1.get](docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#fakeadditionalpropertieswitharrayofenumsget1) | Additional Properties with Array of Enums | -| /fake/body-with-file-schema **put** | [FakebodywithfileschemaPut1.put](docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#fakebodywithfileschemaput1) | | -| /fake/body-with-query-params **put** | [FakebodywithqueryparamsPut1.put](docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#fakebodywithqueryparamsput1) | | -| /fake/case-sensitive-params **put** | [FakecasesensitiveparamsPut1.put](docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#fakecasesensitiveparamsput1) | | -| /fake/deleteCoffee/{id} **delete** | [FakedeletecoffeeidDelete1.delete](docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#fakedeletecoffeeiddelete1) | Delete coffee | -| /fake/health **get** | [FakehealthGet1.get](docs/paths/fakehealth/FakehealthGet.md#fakehealthget1) | Health check endpoint | -| /fake/inline-additionalProperties **post** | [FakeinlineadditionalpropertiesPost1.post](docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#fakeinlineadditionalpropertiespost1) | test inline additionalProperties | -| /fake/inlineComposition/ **post** | [FakeinlinecompositionPost1.post](docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md#fakeinlinecompositionpost1) | testing composed schemas at inline locations | -| /fake/jsonFormData **get** | [FakejsonformdataGet1.get](docs/paths/fakejsonformdata/FakejsonformdataGet.md#fakejsonformdataget1) | test json serialization of form data | -| /fake/jsonPatch **patch** | [FakejsonpatchPatch1.patch](docs/paths/fakejsonpatch/FakejsonpatchPatch.md#fakejsonpatchpatch1) | json patch | -| /fake/jsonWithCharset **post** | [FakejsonwithcharsetPost1.post](docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#fakejsonwithcharsetpost1) | json with charset tx and rx | -| /fake/multipleRequestBodyContentTypes/ **post** | [FakemultiplerequestbodycontenttypesPost1.post](docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#fakemultiplerequestbodycontenttypespost1) | testing composed schemas at inline locations | -| /fake/multipleResponseBodies **get** | [FakemultipleresponsebodiesGet1.get](docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#fakemultipleresponsebodiesget1) | multiple responses have response bodies | -| /fake/multipleSecurities **get** | [FakemultiplesecuritiesGet1.get](docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#fakemultiplesecuritiesget1) | multiple security requirements | -| /fake/objInQuery **get** | [FakeobjinqueryGet1.get](docs/paths/fakeobjinquery/FakeobjinqueryGet.md#fakeobjinqueryget1) | user list | -| /fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/ **post** | [Fakeparametercollisions1ababselfabPost1.post](docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#fakeparametercollisions1ababselfabpost1) | parameter collision case | -| /fake/pemContentType **get** | [FakepemcontenttypeGet1.get](docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md#fakepemcontenttypeget1) | route with tx and rx pem content type | -| /fake/queryParamWithJsonContentType **get** | [FakequeryparamwithjsoncontenttypeGet1.get](docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#fakequeryparamwithjsoncontenttypeget1) | query param with json content-type | -| /fake/redirection **get** | [FakeredirectionGet1.get](docs/paths/fakeredirection/FakeredirectionGet.md#fakeredirectionget1) | operation with redirection responses | -| /fake/refObjInQuery **get** | [FakerefobjinqueryGet1.get](docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md#fakerefobjinqueryget1) | user list | -| /fake/refs/array-of-enums **post** | [FakerefsarrayofenumsPost1.post](docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#fakerefsarrayofenumspost1) | Array of Enums | -| /fake/refs/arraymodel **post** | [FakerefsarraymodelPost1.post](docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md#fakerefsarraymodelpost1) | | -| /fake/refs/boolean **post** | [FakerefsbooleanPost1.post](docs/paths/fakerefsboolean/FakerefsbooleanPost.md#fakerefsbooleanpost1) | | -| /fake/refs/composed_one_of_number_with_validations **post** | [FakerefscomposedoneofnumberwithvalidationsPost1.post](docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#fakerefscomposedoneofnumberwithvalidationspost1) | | -| /fake/refs/enum **post** | [FakerefsenumPost1.post](docs/paths/fakerefsenum/FakerefsenumPost.md#fakerefsenumpost1) | | -| /fake/refs/mammal **post** | [FakerefsmammalPost1.post](docs/paths/fakerefsmammal/FakerefsmammalPost.md#fakerefsmammalpost1) | | -| /fake/refs/number **post** | [FakerefsnumberPost1.post](docs/paths/fakerefsnumber/FakerefsnumberPost.md#fakerefsnumberpost1) | | -| /fake/refs/object_model_with_ref_props **post** | [FakerefsobjectmodelwithrefpropsPost1.post](docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#fakerefsobjectmodelwithrefpropspost1) | | -| /fake/refs/string **post** | [FakerefsstringPost1.post](docs/paths/fakerefsstring/FakerefsstringPost.md#fakerefsstringpost1) | | -| /fake/responseWithoutSchema **get** | [FakeresponsewithoutschemaGet1.get](docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#fakeresponsewithoutschemaget1) | receives a response without schema | -| /fake/test-query-paramters **put** | [FaketestqueryparamtersPut1.put](docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md#faketestqueryparamtersput1) | | -| /fake/uploadDownloadFile **post** | [FakeuploaddownloadfilePost1.post](docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#fakeuploaddownloadfilepost1) | uploads a file and downloads a file using application/octet-stream | -| /fake/uploadFile **post** | [FakeuploadfilePost1.post](docs/paths/fakeuploadfile/FakeuploadfilePost.md#fakeuploadfilepost1) | uploads a file using multipart/form-data | -| /fake/uploadFiles **post** | [FakeuploadfilesPost1.post](docs/paths/fakeuploadfiles/FakeuploadfilesPost.md#fakeuploadfilespost1) | uploads files using multipart/form-data | -| /fake/wildCardResponses **get** | [FakewildcardresponsesGet1.get](docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md#fakewildcardresponsesget1) | operation with wildcard responses | -| /fake/{petId}/uploadImageWithRequiredFile **post** | [FakepetiduploadimagewithrequiredfilePost1.post](docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#fakepetiduploadimagewithrequiredfilepost1) | uploads an image (required) | -| /fake_classname_test **patch** | [FakeclassnametestPatch1.patch](docs/paths/fakeclassnametest/FakeclassnametestPatch.md#fakeclassnametestpatch1) | To test class name in snake case | -| /foo **get** | [FooGet1.get](docs/paths/foo/FooGet.md#fooget1) | | -| /pet **post** | [PetPost1.post](docs/paths/pet/PetPost.md#petpost1) | Add a new pet to the store | -| /pet **put** | [PetPut1.put](docs/paths/pet/PetPut.md#petput1) | Update an existing pet | -| /pet/findByStatus **get** | [PetfindbystatusGet1.get](docs/paths/petfindbystatus/PetfindbystatusGet.md#petfindbystatusget1) | Finds Pets by status | -| /pet/findByTags **get** | [PetfindbytagsGet1.get](docs/paths/petfindbytags/PetfindbytagsGet.md#petfindbytagsget1) | Finds Pets by tags | -| /pet/{petId} **delete** | [PetpetidDelete1.delete](docs/paths/petpetid/PetpetidDelete.md#petpetiddelete1) | Deletes a pet | -| /pet/{petId} **get** | [PetpetidGet1.get](docs/paths/petpetid/PetpetidGet.md#petpetidget1) | Find pet by ID | -| /pet/{petId} **post** | [PetpetidPost1.post](docs/paths/petpetid/PetpetidPost.md#petpetidpost1) | Updates a pet in the store with form data | -| /pet/{petId}/uploadImage **post** | [PetpetiduploadimagePost1.post](docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md#petpetiduploadimagepost1) | uploads an image | -| /store/inventory **get** | [StoreinventoryGet1.get](docs/paths/storeinventory/StoreinventoryGet.md#storeinventoryget1) | Returns pet inventories by status | -| /store/order **post** | [StoreorderPost1.post](docs/paths/storeorder/StoreorderPost.md#storeorderpost1) | Place an order for a pet | -| /store/order/{order_id} **delete** | [StoreorderorderidDelete1.delete](docs/paths/storeorderorderid/StoreorderorderidDelete.md#storeorderorderiddelete1) | Delete purchase order by ID | -| /store/order/{order_id} **get** | [StoreorderorderidGet1.get](docs/paths/storeorderorderid/StoreorderorderidGet.md#storeorderorderidget1) | Find purchase order by ID | -| /user **post** | [UserPost1.post](docs/paths/user/UserPost.md#userpost1) | Create user | -| /user/createWithArray **post** | [UsercreatewitharrayPost1.post](docs/paths/usercreatewitharray/UsercreatewitharrayPost.md#usercreatewitharraypost1) | Creates list of users with given input array | -| /user/createWithList **post** | [UsercreatewithlistPost1.post](docs/paths/usercreatewithlist/UsercreatewithlistPost.md#usercreatewithlistpost1) | Creates list of users with given input array | -| /user/login **get** | [UserloginGet1.get](docs/paths/userlogin/UserloginGet.md#userloginget1) | Logs user into the system | -| /user/logout **get** | [UserlogoutGet1.get](docs/paths/userlogout/UserlogoutGet.md#userlogoutget1) | Logs out current logged in user session | -| /user/{username} **delete** | [UserusernameDelete1.delete](docs/paths/userusername/UserusernameDelete.md#userusernamedelete1) | Delete user | -| /user/{username} **get** | [UserusernameGet1.get](docs/paths/userusername/UserusernameGet.md#userusernameget1) | Get user by user name | -| /user/{username} **put** | [UserusernamePut1.put](docs/paths/userusername/UserusernamePut.md#userusernameput1) | Updated user | - ## Component RequestBodies - | Class | Description | | ----- | ----------- | | [Client.Client1](docs/components/requestbodies/Client.md#client1) | client model | @@ -389,7 +461,6 @@ All URIs are relative to the selected server | [UserArray.UserArray1](docs/components/requestbodies/UserArray.md#userarray1) | List of user object | ## Component Responses - | Class | Description | | ----- | ----------- | | [HeadersWithNoBody.HeadersWithNoBody1](docs/components/responses/HeadersWithNoBody.md#headerswithnobody1) | A response that contains headers but no body
| @@ -401,7 +472,6 @@ All URIs are relative to the selected server | [SuccessfulXmlAndJsonArrayOfPet.SuccessfulXmlAndJsonArrayOfPet1](docs/components/responses/SuccessfulXmlAndJsonArrayOfPet.md#successfulxmlandjsonarrayofpet1) | successful operation, multiple content types| ## Component Headers - | Class | Description | | ----- | ----------- | | [Int32JsonContentTypeHeader.Int32JsonContentTypeHeader1](docs/components/headers/Int32JsonContentTypeHeader.md#int32jsoncontenttypeheader1) | int32 JSON content-type header | @@ -412,22 +482,9 @@ All URIs are relative to the selected server | [StringHeader.StringHeader1](docs/components/headers/StringHeader.md#stringheader1) | string header description | ## Component Parameters - | Class | Description | | ----- | ----------- | | [ComponentRefSchemaStringWithValidation.ComponentRefSchemaStringWithValidation1](docs/components/parameters/ComponentRefSchemaStringWithValidation.md#componentrefschemastringwithvalidation1) | a path string with validation | | [PathUserName.PathUserName1](docs/components/parameters/PathUserName.md#pathusername1) | the use name to use | | [RefPathUserName.RefPathUserName1](docs/components/parameters/RefPathUserName.md#refpathusername1) | | | [RefSchemaStringWithValidation.RefSchemaStringWithValidation1](docs/components/parameters/RefSchemaStringWithValidation.md#refschemastringwithvalidation1) | a path string with validation | - -## Component SecuritySchemes - -| Class | Description | -| ----- | ----------- | -| [ApiKey](docs/components/securityschemes/ApiKey.md) | apiKey in header | -| [ApiKeyQuery](docs/components/securityschemes/ApiKeyQuery.md) | apiKey in query | -| [BearerTest](docs/components/securityschemes/BearerTest.md) | http bearer with JWT bearer format | -| [HttpBasicTest](docs/components/securityschemes/HttpBasicTest.md) | http basic | -| [HttpSignatureTest](docs/components/securityschemes/HttpSignatureTest.md) | http + signature | -| [OpenIdConnectTest](docs/components/securityschemes/OpenIdConnectTest.md) | openIdConnect | -| [PetstoreAuth](docs/components/securityschemes/PetstoreAuth.md) | oauth2 implicit flow with two scopes | diff --git a/src/main/resources/java/README.hbs b/src/main/resources/java/README.hbs index 928118161f5..3e4e6849acf 100644 --- a/src/main/resources/java/README.hbs +++ b/src/main/resources/java/README.hbs @@ -70,8 +70,8 @@ Here is the mapping from json schema types to Java types: | Json Schema Type | Java Base Class | | ---------------- | --------------- | -| object | FrozenMap (HashMap) | -| array | FrozenList (ArrayList) | +| object | FrozenMap (Map) | +| array | FrozenList (List) | | string | String | | number | Number (int, long, float, double) | | integer | int, long, float, double (with values equal to integers) | @@ -107,7 +107,7 @@ invalid Java variable names. Names like: - " " - "from" -To allow these use cases to work, FrozenMap (which extends HashMap) is used as the base class of type object schemas. +To allow these use cases to work, FrozenMap (which extends AbstractMap) is used as the base class of type object schemas. This means that one can use normal Map methods on instances of these classes.
@@ -123,8 +123,6 @@ This means that one can use normal Map methods on instances of these classes. N schemas can be validated on the same payload. To allow multiple schemas to validate, the data must be stored using one base class whether or not a json schema format constraint exists in the schema. -See the below accessors for string data: -- type string + format: See schemas.as_date, schemas.as_datetime, schemas.as_decimal, schemas.as_uuid In json schema, type: number with no format validates both integers and floats, so int and float values are stored for type number. @@ -142,7 +140,7 @@ For example the string payload '2023-12-20' is validates to both of these schema - type: string format: date ``` -Because of use cases like this, a datetime.date is allowed as an input to this schema, but the data +Because of use cases like this, a LocalDate is allowed as an input to this schema, but the data is stored as a string.
@@ -152,108 +150,114 @@ Please follow the [installation procedure](#installation) and then use the JsonS {{packageName}}.components.schemas to validate input payloads and instances of validated Map and List output classes. Json schemas allow multiple types for one schema, so a schema's validate method can have allowed input and output types. +{{#each paths}} + {{#if @first}} + {{#each operations}} + {{#if @first}} + {{#each tags}} + {{#if @first}} + +## Code Sample +{{> src/main/java/packagename/paths/path/verb/_OperationDocCodeSample this=../this apiSubpackage="apis.tags" apiContainerClass=className apiFullyQualifiedClass=className }} + {{/if}} + {{/each}} + {{/if}} + {{/each}} + {{/if}} +{{/each}} {{#if servers}} ## Servers | server_index | Class | Description | | ------------ | ----- | ----------- | -{{#each servers}} + {{#each servers}} | {{@key}} | [{{jsonPathPiece.pascalCase}}](docs/servers/{{jsonPathPiece.pascalCase}}.md) |{{#if description}} {{description.originalWithBr}}{{/if}} | -{{/each}} + {{/each}} {{/if}} -{{#if schemas}} - -## Component Schemas +{{#if securitySchemes}} +## Component SecuritySchemes | Class | Description | | ----- | ----------- | - {{#each schemas}} + {{#each securitySchemes}} {{#with this}} -| [{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}](docs/components/schemas/{{containerJsonPathPiece.pascalCase}}.md#{{jsonPathPiece.kebabCase}}) |{{#if description}} {{description.originalWithBr}}{{/if}} | +| [{{jsonPathPiece.pascalCase}}](docs/components/securityschemes/{{jsonPathPiece.snakeCase}}.md) |{{#if description}} {{description.originalWithBr}}{{/if}} | {{/with}} {{/each}} {{/if}} {{#if paths}} ## Endpoints - All URIs are relative to the selected server -- The server is selected by passing in serverInfo into configurations.ApiConfiguration -- The security info is selected by passing in securityInfo into configurations.ApiConfiguration -- TODO Code samples in endpoints documents show how to do this +- The server is selected by passing in serverInfo + serverIndexInfo into configurations.ApiConfiguration +- The security info is selected by passing in securityInfo + securityIndexInfo into configurations.ApiConfiguration - serverIndex + securityIndex can also be passed in to endpoint calls, see endpoint documentation -| HTTP request | Method | Description | -| ------------ | ------ | ----------- | +| HTTP request | Methods | Description | +| ------------ | ------- | ----------- | {{#each paths}} {{#each operations}} -| {{../@key.original}} **{{@key.original}}** | [{{jsonPathPiece.pascalCase}}1.{{jsonPathPiece.camelCase}}](docs/paths/{{../@key.kebabCase}}/{{@key.pascalCase}}.md#{{@key.kebabCase}}1) |{{#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/paths/{{../jsonPathPiece.pascalCase}}.md#{{method.kebabCase}}) [{{jsonPathPiece.pascalCase}}.{{method.camelCase}}]({{docRoot}}{{pathFromDocRoot}}#{{method.kebabCase}}) |{{#if summary}} {{summary.originalWithBr}}{{/if}} | {{/each}} {{/each}} {{/if}} +{{#if schemas}} + +## Component Schemas +| Class | Description | +| ----- | ----------- | + {{#each schemas}} + {{#with this}} +| [{{containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}](docs/components/schemas/{{containerJsonPathPiece.pascalCase}}.md#{{jsonPathPiece.kebabCase}}) |{{#if description}} {{description.originalWithBr}}{{/if}} | + {{/with}} + {{/each}} +{{/if}} {{#if requestBodies}} ## Component RequestBodies - | Class | Description | | ----- | ----------- | -{{#each requestBodies}} - {{#with this}} + {{#each requestBodies}} + {{#with this}} | [{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](docs/components/requestbodies/{{jsonPathPiece.pascalCase}}.md#{{jsonPathPiece.kebabCase}}1) |{{#if description}} {{description.originalWithBr}}{{/if}} | - {{/with}} -{{/each}} + {{/with}} + {{/each}} {{/if}} {{#if responses}} ## Component Responses - | Class | Description | | ----- | ----------- | -{{#each responses}} - {{#with this}} + {{#each responses}} + {{#with this}} | [{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](docs/components/responses/{{jsonPathPiece.pascalCase}}.md#{{jsonPathPiece.kebabCase}}1) |{{#if description}} {{description.originalWithBr}}{{/if}}| - {{/with}} -{{/each}} + {{/with}} + {{/each}} {{/if}} {{#if headers}} ## Component Headers - | Class | Description | | ----- | ----------- | -{{#each headers}} - {{#with this}} + {{#each headers}} + {{#with this}} | [{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](docs/components/headers/{{jsonPathPiece.pascalCase}}.md#{{jsonPathPiece.kebabCase}}1) |{{#if description}} {{description.originalWithBr}}{{/if}} | - {{/with}} -{{/each}} + {{/with}} + {{/each}} {{/if}} {{#if parameters}} ## Component Parameters - | Class | Description | | ----- | ----------- | -{{#each parameters}} - {{#with this}} -| [{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](docs/components/parameters/{{jsonPathPiece.pascalCase}}.md#{{jsonPathPiece.kebabCase}}1) |{{#if description}} {{description.originalWithBr}}{{/if}} | - {{/with}} -{{/each}} -{{/if}} -{{#if securitySchemes}} - -## Component SecuritySchemes - -| Class | Description | -| ----- | ----------- | - {{#each securitySchemes}} + {{#each parameters}} {{#with this}} -| [{{jsonPathPiece.pascalCase}}](docs/components/securityschemes/{{jsonPathPiece.snakeCase}}.md) |{{#if description}} {{description.originalWithBr}}{{/if}} | +| [{{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1](docs/components/parameters/{{jsonPathPiece.pascalCase}}.md#{{jsonPathPiece.kebabCase}}1) |{{#if description}} {{description.originalWithBr}}{{/if}} | {{/with}} {{/each}} {{/if}} {{#if infoEmail}} ## Author - {{infoEmail}} {{/if}} From 75711df37844ff16f1f8be50eb2d3ff851f27373 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 13:15:21 -0700 Subject: [PATCH 19/21] Fixes more links --- samples/client/petstore/java/README.md | 134 +++++++------- .../java/docs/apis/paths/Anotherfakedummy.md | 6 +- .../java/docs/apis/paths/Commonparamsubdir.md | 14 +- .../petstore/java/docs/apis/paths/Fake.md | 18 +- ...akeadditionalpropertieswitharrayofenums.md | 6 +- .../docs/apis/paths/Fakebodywithfileschema.md | 6 +- .../apis/paths/Fakebodywithqueryparams.md | 6 +- .../apis/paths/Fakecasesensitiveparams.md | 6 +- .../java/docs/apis/paths/Fakeclassnametest.md | 6 +- .../docs/apis/paths/Fakedeletecoffeeid.md | 6 +- .../java/docs/apis/paths/Fakehealth.md | 6 +- .../paths/Fakeinlineadditionalproperties.md | 6 +- .../docs/apis/paths/Fakeinlinecomposition.md | 6 +- .../java/docs/apis/paths/Fakejsonformdata.md | 6 +- .../java/docs/apis/paths/Fakejsonpatch.md | 6 +- .../docs/apis/paths/Fakejsonwithcharset.md | 6 +- .../Fakemultiplerequestbodycontenttypes.md | 6 +- .../apis/paths/Fakemultipleresponsebodies.md | 6 +- .../docs/apis/paths/Fakemultiplesecurities.md | 6 +- .../java/docs/apis/paths/Fakeobjinquery.md | 6 +- .../Fakeparametercollisions1ababselfab.md | 6 +- .../docs/apis/paths/Fakepemcontenttype.md | 6 +- .../Fakepetiduploadimagewithrequiredfile.md | 6 +- .../Fakequeryparamwithjsoncontenttype.md | 6 +- .../java/docs/apis/paths/Fakeredirection.md | 6 +- .../java/docs/apis/paths/Fakerefobjinquery.md | 6 +- .../docs/apis/paths/Fakerefsarraymodel.md | 6 +- .../docs/apis/paths/Fakerefsarrayofenums.md | 6 +- .../java/docs/apis/paths/Fakerefsboolean.md | 6 +- ...erefscomposedoneofnumberwithvalidations.md | 6 +- .../java/docs/apis/paths/Fakerefsenum.md | 6 +- .../java/docs/apis/paths/Fakerefsmammal.md | 6 +- .../java/docs/apis/paths/Fakerefsnumber.md | 6 +- .../paths/Fakerefsobjectmodelwithrefprops.md | 6 +- .../java/docs/apis/paths/Fakerefsstring.md | 6 +- .../apis/paths/Fakeresponsewithoutschema.md | 6 +- .../docs/apis/paths/Faketestqueryparamters.md | 6 +- .../docs/apis/paths/Fakeuploaddownloadfile.md | 6 +- .../java/docs/apis/paths/Fakeuploadfile.md | 6 +- .../java/docs/apis/paths/Fakeuploadfiles.md | 6 +- .../docs/apis/paths/Fakewildcardresponses.md | 6 +- .../petstore/java/docs/apis/paths/Foo.md | 6 +- .../petstore/java/docs/apis/paths/Pet.md | 10 +- .../java/docs/apis/paths/Petfindbystatus.md | 6 +- .../java/docs/apis/paths/Petfindbytags.md | 6 +- .../petstore/java/docs/apis/paths/Petpetid.md | 14 +- .../docs/apis/paths/Petpetiduploadimage.md | 6 +- .../petstore/java/docs/apis/paths/Solidus.md | 6 +- .../java/docs/apis/paths/Storeinventory.md | 6 +- .../java/docs/apis/paths/Storeorder.md | 6 +- .../java/docs/apis/paths/Storeorderorderid.md | 10 +- .../petstore/java/docs/apis/paths/User.md | 6 +- .../docs/apis/paths/Usercreatewitharray.md | 6 +- .../docs/apis/paths/Usercreatewithlist.md | 6 +- .../java/docs/apis/paths/Userlogin.md | 6 +- .../java/docs/apis/paths/Userlogout.md | 6 +- .../java/docs/apis/paths/Userusername.md | 14 +- .../java/docs/apis/tags/Anotherfake.md | 6 +- .../petstore/java/docs/apis/tags/Default.md | 7 +- .../petstore/java/docs/apis/tags/Fake.md | 174 +++++++++--------- .../docs/apis/tags/Fakeclassnametags123.md | 6 +- .../petstore/java/docs/apis/tags/Pet.md | 39 ++-- .../petstore/java/docs/apis/tags/Store.md | 19 +- .../petstore/java/docs/apis/tags/User.md | 35 ++-- src/main/resources/java/README.hbs | 2 +- .../java/packagename/apis/paths/ApiDoc.hbs | 11 +- .../java/packagename/apis/tags/ApiDoc.hbs | 11 +- 67 files changed, 419 insertions(+), 405 deletions(-) diff --git a/samples/client/petstore/java/README.md b/samples/client/petstore/java/README.md index d560fe3e68e..dd39c08745e 100644 --- a/samples/client/petstore/java/README.md +++ b/samples/client/petstore/java/README.md @@ -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](paths/solidus/SolidusGet#get) | slash route | -| /another-fake/dummy **patch** | [Anotherfake.model123TestSpecialTags](docs/apis/tags/Anotherfake.md#model123testspecialtags) [Anotherfakedummy.patch](docs/paths/Anotherfakedummy.md#patch) [AnotherfakedummyPatch.patch](paths/anotherfakedummy/AnotherfakedummyPatch#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](paths/commonparamsubdir/CommonparamsubdirDelete#delete) | | -| /commonParam/{subDir}/ **get** | [Fake.getCommonParam](docs/apis/tags/Fake.md#getcommonparam) [Commonparamsubdir.get](docs/paths/Commonparamsubdir.md#get) [CommonparamsubdirGet.get](paths/commonparamsubdir/CommonparamsubdirGet#get) | | -| /commonParam/{subDir}/ **post** | [Fake.postCommonParam](docs/apis/tags/Fake.md#postcommonparam) [Commonparamsubdir.post](docs/paths/Commonparamsubdir.md#post) [CommonparamsubdirPost.post](paths/commonparamsubdir/CommonparamsubdirPost#post) | | -| /fake **delete** | [Fake.groupParameters](docs/apis/tags/Fake.md#groupparameters) [Fake.delete](docs/paths/Fake.md#delete) [FakeDelete.delete](paths/fake/FakeDelete#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](paths/fake/FakeGet#get) | To test enum parameters | -| /fake **patch** | [Fake.clientModel](docs/apis/tags/Fake.md#clientmodel) [Fake.patch](docs/paths/Fake.md#patch) [FakePatch.patch](paths/fake/FakePatch#patch) | To test "client" model | -| /fake **post** | [Fake.endpointParameters](docs/apis/tags/Fake.md#endpointparameters) [Fake.post](docs/paths/Fake.md#post) [FakePost.post](paths/fake/FakePost#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](paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#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](paths/fakebodywithfileschema/FakebodywithfileschemaPut#put) | | -| /fake/body-with-query-params **put** | [Fake.bodyWithQueryParams](docs/apis/tags/Fake.md#bodywithqueryparams) [Fakebodywithqueryparams.put](docs/paths/Fakebodywithqueryparams.md#put) [FakebodywithqueryparamsPut.put](paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#put) | | -| /fake/case-sensitive-params **put** | [Fake.caseSensitiveParams](docs/apis/tags/Fake.md#casesensitiveparams) [Fakecasesensitiveparams.put](docs/paths/Fakecasesensitiveparams.md#put) [FakecasesensitiveparamsPut.put](paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#put) | | -| /fake/deleteCoffee/{id} **delete** | [Fake.deleteCoffee](docs/apis/tags/Fake.md#deletecoffee) [Fakedeletecoffeeid.delete](docs/paths/Fakedeletecoffeeid.md#delete) [FakedeletecoffeeidDelete.delete](paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#delete) | Delete coffee | -| /fake/health **get** | [Fake.fakeHealthGet](docs/apis/tags/Fake.md#fakehealthget) [Fakehealth.get](docs/paths/Fakehealth.md#get) [FakehealthGet.get](paths/fakehealth/FakehealthGet#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](paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#post) | test inline additionalProperties | -| /fake/inlineComposition/ **post** | [Fake.inlineComposition](docs/apis/tags/Fake.md#inlinecomposition) [Fakeinlinecomposition.post](docs/paths/Fakeinlinecomposition.md#post) [FakeinlinecompositionPost.post](paths/fakeinlinecomposition/FakeinlinecompositionPost#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](paths/fakejsonformdata/FakejsonformdataGet#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](paths/fakejsonpatch/FakejsonpatchPatch#patch) | json patch | -| /fake/jsonWithCharset **post** | [Fake.jsonWithCharset](docs/apis/tags/Fake.md#jsonwithcharset) [Fakejsonwithcharset.post](docs/paths/Fakejsonwithcharset.md#post) [FakejsonwithcharsetPost.post](paths/fakejsonwithcharset/FakejsonwithcharsetPost#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](paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#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](paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#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](paths/fakemultiplesecurities/FakemultiplesecuritiesGet#get) | multiple security requirements | -| /fake/objInQuery **get** | [Fake.objectInQuery](docs/apis/tags/Fake.md#objectinquery) [Fakeobjinquery.get](docs/paths/Fakeobjinquery.md#get) [FakeobjinqueryGet.get](paths/fakeobjinquery/FakeobjinqueryGet#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](paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#post) | parameter collision case | -| /fake/pemContentType **get** | [Fake.pemContentType](docs/apis/tags/Fake.md#pemcontenttype) [Fakepemcontenttype.get](docs/paths/Fakepemcontenttype.md#get) [FakepemcontenttypeGet.get](paths/fakepemcontenttype/FakepemcontenttypeGet#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](paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#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](paths/fakeredirection/FakeredirectionGet#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](paths/fakerefobjinquery/FakerefobjinqueryGet#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](paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#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](paths/fakerefsarraymodel/FakerefsarraymodelPost#post) | | -| /fake/refs/boolean **post** | [Fake.modelBoolean](docs/apis/tags/Fake.md#modelboolean) [Fakerefsboolean.post](docs/paths/Fakerefsboolean.md#post) [FakerefsbooleanPost.post](paths/fakerefsboolean/FakerefsbooleanPost#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](paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#post) | | -| /fake/refs/enum **post** | [Fake.stringEnum](docs/apis/tags/Fake.md#stringenum) [Fakerefsenum.post](docs/paths/Fakerefsenum.md#post) [FakerefsenumPost.post](paths/fakerefsenum/FakerefsenumPost#post) | | -| /fake/refs/mammal **post** | [Fake.mammal](docs/apis/tags/Fake.md#mammal) [Fakerefsmammal.post](docs/paths/Fakerefsmammal.md#post) [FakerefsmammalPost.post](paths/fakerefsmammal/FakerefsmammalPost#post) | | -| /fake/refs/number **post** | [Fake.numberWithValidations](docs/apis/tags/Fake.md#numberwithvalidations) [Fakerefsnumber.post](docs/paths/Fakerefsnumber.md#post) [FakerefsnumberPost.post](paths/fakerefsnumber/FakerefsnumberPost#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](paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#post) | | -| /fake/refs/string **post** | [Fake.modelString](docs/apis/tags/Fake.md#modelstring) [Fakerefsstring.post](docs/paths/Fakerefsstring.md#post) [FakerefsstringPost.post](paths/fakerefsstring/FakerefsstringPost#post) | | -| /fake/responseWithoutSchema **get** | [Fake.responseWithoutSchema](docs/apis/tags/Fake.md#responsewithoutschema) [Fakeresponsewithoutschema.get](docs/paths/Fakeresponsewithoutschema.md#get) [FakeresponsewithoutschemaGet.get](paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#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](paths/faketestqueryparamters/FaketestqueryparamtersPut#put) | | -| /fake/uploadDownloadFile **post** | [Fake.uploadDownloadFile](docs/apis/tags/Fake.md#uploaddownloadfile) [Fakeuploaddownloadfile.post](docs/paths/Fakeuploaddownloadfile.md#post) [FakeuploaddownloadfilePost.post](paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#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](paths/fakeuploadfile/FakeuploadfilePost#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](paths/fakeuploadfiles/FakeuploadfilesPost#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](paths/fakewildcardresponses/FakewildcardresponsesGet#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](paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#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](paths/fakeclassnametest/FakeclassnametestPatch#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](paths/foo/FooGet#get) | | -| /pet **post** | [Pet.addPet](docs/apis/tags/Pet.md#addpet) [Pet.post](docs/paths/Pet.md#post) [PetPost.post](paths/pet/PetPost#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](paths/pet/PetPut#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](paths/petfindbystatus/PetfindbystatusGet#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](paths/petfindbytags/PetfindbytagsGet#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](paths/petpetid/PetpetidDelete#delete) | Deletes a pet | -| /pet/{petId} **get** | [Pet.getPetById](docs/apis/tags/Pet.md#getpetbyid) [Petpetid.get](docs/paths/Petpetid.md#get) [PetpetidGet.get](paths/petpetid/PetpetidGet#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](paths/petpetid/PetpetidPost#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](paths/petpetiduploadimage/PetpetiduploadimagePost#post) | uploads an image | -| /store/inventory **get** | [Store.getInventory](docs/apis/tags/Store.md#getinventory) [Storeinventory.get](docs/paths/Storeinventory.md#get) [StoreinventoryGet.get](paths/storeinventory/StoreinventoryGet#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](paths/storeorder/StoreorderPost#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](paths/storeorderorderid/StoreorderorderidDelete#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](paths/storeorderorderid/StoreorderorderidGet#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](paths/user/UserPost#post) | Create user | -| /user/createWithArray **post** | [User.createUsersWithArrayInput](docs/apis/tags/User.md#createuserswitharrayinput) [Usercreatewitharray.post](docs/paths/Usercreatewitharray.md#post) [UsercreatewitharrayPost.post](paths/usercreatewitharray/UsercreatewitharrayPost#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](paths/usercreatewithlist/UsercreatewithlistPost#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](paths/userlogin/UserloginGet#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](paths/userlogout/UserlogoutGet#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](paths/userusername/UserusernameDelete#delete) | Delete user | -| /user/{username} **get** | [User.getUserByName](docs/apis/tags/User.md#getuserbyname) [Userusername.get](docs/paths/Userusername.md#get) [UserusernameGet.get](paths/userusername/UserusernameGet#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](paths/userusername/UserusernamePut#put) | Updated user | +| / **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 | ## Component Schemas | Class | Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md index 8151e25e768..dfff5e5ce61 100644 --- a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md +++ b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md @@ -3,17 +3,17 @@ 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="/another-fake/dummy" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | [patch](#patch)([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch#patchrequest) request)
To test special tags and operation ID starting with number | +| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | [patch](#patch)([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch.md#patchrequest) request)
To test special tags and operation ID starting with number | ## Method Detail ### patch -public [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) patch([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch#patchrequest) request) +public [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) patch([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch.md#patchrequest) request) To test special tags and operation ID starting with number diff --git a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md index f3445d31614..288534965ef 100644 --- a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md +++ b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md @@ -5,19 +5,19 @@ 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="/commonParam/{subDir}/" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | [delete](#delete)([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete#deleterequest) request)
common param is overwritten | -| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | [get](#get)([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet#getrequest) request) | -| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | [post](#post)([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost#postrequest) request) | +| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | [delete](#delete)([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete.md#deleterequest) request)
common param is overwritten | +| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | [get](#get)([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet.md#getrequest) request) | +| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | [post](#post)([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost.md#postrequest) request) | ## Method Detail ### delete -public [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) delete([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete#deleterequest) request) +public [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) delete([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete.md#deleterequest) request) common param is overwritten @@ -116,7 +116,7 @@ try { CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response castResponse = (CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response) response; ``` ### get -public [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) get([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet#getrequest) request) +public [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) get([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet.md#getrequest) request) **Parameters:**
request - the input request @@ -213,7 +213,7 @@ try { CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response castResponse = (CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response) response; ``` ### post -public [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) post([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost#postrequest) request) +public [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) post([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost.md#postrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fake.md b/samples/client/petstore/java/docs/apis/paths/Fake.md index 3ac9e421003..f06c8b53c84 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fake.md +++ b/samples/client/petstore/java/docs/apis/paths/Fake.md @@ -6,20 +6,20 @@ 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="/fake" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | [delete](#delete)([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete#deleterequest) request)
Fake endpoint to test group parameters (optional) | -| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | [get](#get)([FakeGet.GetRequest](../../paths/fake/FakeGet#getrequest) request)
To test enum parameters | -| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | [patch](#patch)([FakePatch.PatchRequest](../../paths/fake/FakePatch#patchrequest) request)
To test "client" model | -| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | [post](#post)([FakePost.PostRequest](../../paths/fake/FakePost#postrequest) request)
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| +| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | [delete](#delete)([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete.md#deleterequest) request)
Fake endpoint to test group parameters (optional) | +| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | [get](#get)([FakeGet.GetRequest](../../paths/fake/FakeGet.md#getrequest) request)
To test enum parameters | +| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | [patch](#patch)([FakePatch.PatchRequest](../../paths/fake/FakePatch.md#patchrequest) request)
To test "client" model | +| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | [post](#post)([FakePost.PostRequest](../../paths/fake/FakePost.md#postrequest) request)
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| ## Method Detail ### delete -public [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) delete([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete#deleterequest) request) +public [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) delete([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete.md#deleterequest) request) Fake endpoint to test group parameters (optional) @@ -149,7 +149,7 @@ try { FakeDeleteResponses.EndpointFakeDeleteCode200Response castResponse = (FakeDeleteResponses.EndpointFakeDeleteCode200Response) response; ``` ### get -public [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) get([FakeGet.GetRequest](../../paths/fake/FakeGet#getrequest) request) +public [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) get([FakeGet.GetRequest](../../paths/fake/FakeGet.md#getrequest) request) To test enum parameters @@ -242,7 +242,7 @@ try { FakeGetResponses.EndpointFakeGetCode200Response castResponse = (FakeGetResponses.EndpointFakeGetCode200Response) response; ``` ### patch -public [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) patch([FakePatch.PatchRequest](../../paths/fake/FakePatch#patchrequest) request) +public [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) patch([FakePatch.PatchRequest](../../paths/fake/FakePatch.md#patchrequest) request) To test "client" model @@ -343,7 +343,7 @@ FakePatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakePat // handle deserialized body here ``` ### post -public [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) post([FakePost.PostRequest](../../paths/fake/FakePost#postrequest) request) +public [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) post([FakePost.PostRequest](../../paths/fake/FakePost.md#postrequest) request) Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md index d37b1cedfb9..214de5c1394 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md @@ -3,17 +3,17 @@ 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="/fake/additional-properties-with-array-of-enums" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | [get](#get)([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#getrequest) request) | +| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | [get](#get)([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#getrequest) request) | ## Method Detail ### get -public [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) get([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#getrequest) request) +public [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) get([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md index def10396afe..5d36cc1dfd5 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md @@ -3,17 +3,17 @@ 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="/fake/body-with-file-schema" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | [put](#put)([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut#putrequest) request)
For this test, the body for this request much reference a schema named `File`. | +| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | [put](#put)([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#putrequest) request)
For this test, the body for this request much reference a schema named `File`. | ## Method Detail ### put -public [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) put([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut#putrequest) request) +public [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) put([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#putrequest) request) For this test, the body for this request much reference a schema named `File`. diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md index 7afde67cdfe..566aa4a6765 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md @@ -3,17 +3,17 @@ 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="/fake/body-with-query-params" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | [put](#put)([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#putrequest) request) | +| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | [put](#put)([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#putrequest) request) | ## Method Detail ### put -public [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) put([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#putrequest) request) +public [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) put([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#putrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md index b642eb170b5..df8e70eb129 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md @@ -3,17 +3,17 @@ 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="/fake/case-sensitive-params" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | [put](#put)([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#putrequest) request)
Ensures that original naming is used in endpoint params, that way we don't have collisions | +| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | [put](#put)([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#putrequest) request)
Ensures that original naming is used in endpoint params, that way we don't have collisions | ## Method Detail ### put -public [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) put([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#putrequest) request) +public [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) put([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#putrequest) request) Ensures that original naming is used in endpoint params, that way we don't have collisions diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md index b908b2f2f7c..086168f5024 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md @@ -3,17 +3,17 @@ 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="/fake_classname_test" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | [patch](#patch)([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch#patchrequest) request)
To test class name in snake case | +| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | [patch](#patch)([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch.md#patchrequest) request)
To test class name in snake case | ## Method Detail ### patch -public [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) patch([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch#patchrequest) request) +public [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) patch([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch.md#patchrequest) request) To test class name in snake case diff --git a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md index bfc84e96965..cad83a20f06 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md @@ -3,17 +3,17 @@ 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="/fake/deleteCoffee/{id}" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | [delete](#delete)([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#deleterequest) request)
Delete the coffee identified by the given id, (delete without request body) | +| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | [delete](#delete)([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#deleterequest) request)
Delete the coffee identified by the given id, (delete without request body) | ## Method Detail ### delete -public [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) delete([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#deleterequest) request) +public [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) delete([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#deleterequest) request) Delete the coffee identified by the given id, (delete without request body) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md index 94b4a55434e..5c0455c6d33 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md @@ -3,17 +3,17 @@ 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="/fake/health" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | [get](#get)([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet#getrequest) request) | +| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | [get](#get)([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet.md#getrequest) request) | ## Method Detail ### get -public [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) get([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet#getrequest) request) +public [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) get([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md index 04477934dab..d1df32c55d0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md @@ -3,17 +3,17 @@ 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="/fake/inline-additionalProperties" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | [post](#post)([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#postrequest) request)
| +| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | [post](#post)([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#postrequest) request)
| ## Method Detail ### post -public [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) post([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#postrequest) request) +public [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) post([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md index e383cae29b9..f676e498494 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md @@ -3,17 +3,17 @@ 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="/fake/inlineComposition/" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | [post](#post)([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | +| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | [post](#post)([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost.md#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | ## Method Detail ### post -public [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) post([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost#postrequest) request) +public [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) post([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost.md#postrequest) request) composed schemas at inline locations + multiple requestBody content types diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md index bc81b2d9871..36ce2df9027 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md @@ -3,17 +3,17 @@ 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="/fake/jsonFormData" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | [get](#get)([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet#getrequest) request)
| +| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | [get](#get)([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet.md#getrequest) request)
| ## Method Detail ### get -public [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) get([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet#getrequest) request) +public [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) get([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet.md#getrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md index 8806ea91911..87d6db78edc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md @@ -3,17 +3,17 @@ 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="/fake/jsonPatch" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | [patch](#patch)([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch#patchrequest) request)
json patch route with a requestBody | +| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | [patch](#patch)([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch.md#patchrequest) request)
json patch route with a requestBody | ## Method Detail ### patch -public [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) patch([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch#patchrequest) request) +public [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) patch([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch.md#patchrequest) request) json patch route with a requestBody diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md index 93f4ba69537..7afbe600ae7 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md @@ -3,17 +3,17 @@ 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="/fake/jsonWithCharset" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | [post](#post)([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost#postrequest) request) | +| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | [post](#post)([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#postrequest) request) | ## Method Detail ### post -public [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) post([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost#postrequest) request) +public [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) post([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#postrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md index 88d5ff12b75..cb5535784b7 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md @@ -3,17 +3,17 @@ 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="/fake/multipleRequestBodyContentTypes/" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | [post](#post)([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | +| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | [post](#post)([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | ## Method Detail ### post -public [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) post([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#postrequest) request) +public [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) post([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#postrequest) request) composed schemas at inline locations + multiple requestBody content types diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md index 00456f08423..dbcb8f54004 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md @@ -3,17 +3,17 @@ 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="/fake/multipleResponseBodies" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | [get](#get)([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#getrequest) request) | +| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | [get](#get)([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#getrequest) request) | ## Method Detail ### get -public [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) get([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#getrequest) request) +public [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) get([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md index 7322f5c4594..f171c5f627c 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md @@ -3,17 +3,17 @@ 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="/fake/multipleSecurities" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | [get](#get)([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet#getrequest) request) | +| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | [get](#get)([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#getrequest) request) | ## Method Detail ### get -public [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) get([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet#getrequest) request) +public [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) get([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md index cc851507807..a383f132b30 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md @@ -3,17 +3,17 @@ 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="/fake/objInQuery" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | [get](#get)([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet#getrequest) request) | +| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | [get](#get)([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet.md#getrequest) request) | ## Method Detail ### get -public [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) get([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet#getrequest) request) +public [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) get([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md index 16fa8b4a446..23806a2f0eb 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md @@ -3,17 +3,17 @@ 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="/fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | [post](#post)([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#postrequest) request) | +| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | [post](#post)([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#postrequest) request) | ## Method Detail ### post -public [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) post([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#postrequest) request) +public [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) post([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#postrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md index 14c8fd729ba..18fce17f986 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md @@ -3,17 +3,17 @@ 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="/fake/pemContentType" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | [get](#get)([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet#getrequest) request) | +| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | [get](#get)([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet.md#getrequest) request) | ## Method Detail ### get -public [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) get([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet#getrequest) request) +public [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) get([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md index 7c1dbf1bb52..3e3cf8a69ff 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md @@ -3,17 +3,17 @@ 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="/fake/{petId}/uploadImageWithRequiredFile" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | [post](#post)([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#postrequest) request)
| +| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | [post](#post)([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#postrequest) request)
| ## Method Detail ### post -public [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) post([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#postrequest) request) +public [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) post([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md index ddaa4c34a6d..048136b6176 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md @@ -3,17 +3,17 @@ 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="/fake/queryParamWithJsonContentType" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | [get](#get)([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#getrequest) request) | +| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | [get](#get)([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#getrequest) request) | ## Method Detail ### get -public [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) get([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#getrequest) request) +public [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) get([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md index 0367fd7e52e..1f29bd52cdc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md @@ -3,17 +3,17 @@ 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="/fake/redirection" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | [get](#get)([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet#getrequest) request) | +| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | [get](#get)([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet.md#getrequest) request) | ## Method Detail ### get -public [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) get([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet#getrequest) request) +public [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) get([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md index 0444f4751d9..94fd1062d39 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md @@ -3,17 +3,17 @@ 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="/fake/refObjInQuery" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | [get](#get)([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet#getrequest) request) | +| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | [get](#get)([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet.md#getrequest) request) | ## Method Detail ### get -public [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) get([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet#getrequest) request) +public [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) get([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md index dabd4ca6361..4815ab1fcd6 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md @@ -3,17 +3,17 @@ 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="/fake/refs/arraymodel" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | [post](#post)([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost#postrequest) request)
Test serialization of ArrayModel | +| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | [post](#post)([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost.md#postrequest) request)
Test serialization of ArrayModel | ## Method Detail ### post -public [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) post([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost#postrequest) request) +public [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) post([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost.md#postrequest) request) Test serialization of ArrayModel diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md index b45911f9e78..fbc4673af87 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md @@ -3,17 +3,17 @@ 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="/fake/refs/array-of-enums" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | [post](#post)([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#postrequest) request) | +| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | [post](#post)([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#postrequest) request) | ## Method Detail ### post -public [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) post([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#postrequest) request) +public [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) post([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#postrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md index 503e91d77a9..9e19a6b1aad 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md @@ -3,17 +3,17 @@ 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="/fake/refs/boolean" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | [post](#post)([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost#postrequest) request)
Test serialization of outer boolean types | +| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | [post](#post)([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost.md#postrequest) request)
Test serialization of outer boolean types | ## Method Detail ### post -public [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) post([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost#postrequest) request) +public [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) post([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost.md#postrequest) request) Test serialization of outer boolean types diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md index 4f5ed21b1e9..69e82a51a44 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md @@ -3,17 +3,17 @@ 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="/fake/refs/composed_one_of_number_with_validations" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | [post](#post)([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#postrequest) request)
Test serialization of object with $refed properties | +| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | [post](#post)([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#postrequest) request)
Test serialization of object with $refed properties | ## Method Detail ### post -public [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) post([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#postrequest) request) +public [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) post([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#postrequest) request) Test serialization of object with $refed properties diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md index 3ba175c192f..10a341f972d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md @@ -3,17 +3,17 @@ 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="/fake/refs/enum" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | [post](#post)([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost#postrequest) request)
Test serialization of outer enum | +| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | [post](#post)([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost.md#postrequest) request)
Test serialization of outer enum | ## Method Detail ### post -public [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) post([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost#postrequest) request) +public [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) post([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost.md#postrequest) request) Test serialization of outer enum diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md index f2fbec5e285..94b62b69921 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md @@ -3,17 +3,17 @@ 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="/fake/refs/mammal" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | [post](#post)([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost#postrequest) request)
Test serialization of mammals | +| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | [post](#post)([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost.md#postrequest) request)
Test serialization of mammals | ## Method Detail ### post -public [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) post([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost#postrequest) request) +public [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) post([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost.md#postrequest) request) Test serialization of mammals diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md index df2d5c681a3..b593a13459a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md @@ -3,17 +3,17 @@ 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="/fake/refs/number" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | [post](#post)([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost#postrequest) request)
Test serialization of outer number types | +| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | [post](#post)([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost.md#postrequest) request)
Test serialization of outer number types | ## Method Detail ### post -public [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) post([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost#postrequest) request) +public [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) post([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost.md#postrequest) request) Test serialization of outer number types diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md index a28f3aeed6c..a988e195113 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md @@ -3,17 +3,17 @@ 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="/fake/refs/object_model_with_ref_props" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | [post](#post)([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#postrequest) request)
Test serialization of object with $refed properties | +| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | [post](#post)([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#postrequest) request)
Test serialization of object with $refed properties | ## Method Detail ### post -public [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) post([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#postrequest) request) +public [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) post([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#postrequest) request) Test serialization of object with $refed properties diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md index 94ecc5b0913..a372887c2d2 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md @@ -3,17 +3,17 @@ 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="/fake/refs/string" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | [post](#post)([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost#postrequest) request)
Test serialization of outer string types | +| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | [post](#post)([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost.md#postrequest) request)
Test serialization of outer string types | ## Method Detail ### post -public [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) post([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost#postrequest) request) +public [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) post([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost.md#postrequest) request) Test serialization of outer string types diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md index 74b0d973701..64239e7a307 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md @@ -3,17 +3,17 @@ 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="/fake/responseWithoutSchema" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | [get](#get)([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#getrequest) request) | +| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | [get](#get)([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#getrequest) request) | ## Method Detail ### get -public [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) get([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#getrequest) request) +public [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) get([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md index b9ca100af50..157b2bb97fc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md +++ b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md @@ -3,17 +3,17 @@ 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="/fake/test-query-paramters" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | [put](#put)([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut#putrequest) request)
To test the collection format in query parameters | +| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | [put](#put)([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut.md#putrequest) request)
To test the collection format in query parameters | ## Method Detail ### put -public [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) put([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut#putrequest) request) +public [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) put([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut.md#putrequest) request) To test the collection format in query parameters diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md index cfe866e16bc..88ee0cac610 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md @@ -3,17 +3,17 @@ 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="/fake/uploadDownloadFile" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | [post](#post)([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#postrequest) request)
| +| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | [post](#post)([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#postrequest) request)
| ## Method Detail ### post -public [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) post([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#postrequest) request) +public [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) post([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md index 76ef6c4cc44..828373121b2 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md @@ -3,17 +3,17 @@ 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="/fake/uploadFile" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | [post](#post)([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost#postrequest) request)
| +| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | [post](#post)([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost.md#postrequest) request)
| ## Method Detail ### post -public [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) post([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost#postrequest) request) +public [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) post([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md index c7c661dd0dc..dbbd3854037 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md @@ -3,17 +3,17 @@ 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="/fake/uploadFiles" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | [post](#post)([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost#postrequest) request)
| +| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | [post](#post)([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost.md#postrequest) request)
| ## Method Detail ### post -public [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) post([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost#postrequest) request) +public [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) post([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md index 9d6f98e96cb..779ba58f357 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md @@ -3,17 +3,17 @@ 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="/fake/wildCardResponses" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | [get](#get)([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet#getrequest) request) | +| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | [get](#get)([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet.md#getrequest) request) | ## Method Detail ### get -public [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) get([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet#getrequest) request) +public [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) get([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Foo.md b/samples/client/petstore/java/docs/apis/paths/Foo.md index 39adddf7265..3186f6a9656 100644 --- a/samples/client/petstore/java/docs/apis/paths/Foo.md +++ b/samples/client/petstore/java/docs/apis/paths/Foo.md @@ -3,17 +3,17 @@ 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="/foo" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | [get](#get)([FooGet.GetRequest](../../paths/foo/FooGet#getrequest) request) | +| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | [get](#get)([FooGet.GetRequest](../../paths/foo/FooGet.md#getrequest) request) | ## Method Detail ### get -public [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) get([FooGet.GetRequest](../../paths/foo/FooGet#getrequest) request) +public [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) get([FooGet.GetRequest](../../paths/foo/FooGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Pet.md b/samples/client/petstore/java/docs/apis/paths/Pet.md index 0d47346c219..a8ee4db231b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Pet.md +++ b/samples/client/petstore/java/docs/apis/paths/Pet.md @@ -4,18 +4,18 @@ 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="/pet" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | [post](#post)([PetPost.PostRequest](../../paths/pet/PetPost#postrequest) request)
Add a new pet to the store | -| Void | [put](#put)([PetPut.PutRequest](../../paths/pet/PetPut#putrequest) request)
| +| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | [post](#post)([PetPost.PostRequest](../../paths/pet/PetPost.md#postrequest) request)
Add a new pet to the store | +| Void | [put](#put)([PetPut.PutRequest](../../paths/pet/PetPut.md#putrequest) request)
| ## Method Detail ### post -public [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) post([PetPost.PostRequest](../../paths/pet/PetPost#postrequest) request) +public [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) post([PetPost.PostRequest](../../paths/pet/PetPost.md#postrequest) request) Add a new pet to the store @@ -163,7 +163,7 @@ try { PetPostResponses.EndpointPetPostCode200Response castResponse = (PetPostResponses.EndpointPetPostCode200Response) response; ``` ### put -public Void put([PetPut.PutRequest](../../paths/pet/PetPut#putrequest) request) +public Void put([PetPut.PutRequest](../../paths/pet/PetPut.md#putrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md index 783f966b1a9..8ece1d1ae03 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md @@ -3,17 +3,17 @@ 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="/pet/findByStatus" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | [get](#get)([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet#getrequest) request)
Multiple status values can be provided with comma separated strings | +| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | [get](#get)([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet.md#getrequest) request)
Multiple status values can be provided with comma separated strings | ## Method Detail ### get -public [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) get([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet#getrequest) request) +public [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) get([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet.md#getrequest) request) Multiple status values can be provided with comma separated strings diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md index 2faa5135e26..394bc51ed35 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md @@ -3,17 +3,17 @@ 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="/pet/findByTags" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | [get](#get)([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet#getrequest) request)
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. | +| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | [get](#get)([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet.md#getrequest) request)
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. | ## Method Detail ### get -public [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) get([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet#getrequest) request) +public [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) get([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet.md#getrequest) request) Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetid.md b/samples/client/petstore/java/docs/apis/paths/Petpetid.md index 1c5df7617f5..3d68365c59c 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetid.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetid.md @@ -5,19 +5,19 @@ 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="/pet/{petId}" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | [delete](#delete)([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete#deleterequest) request)
| -| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | [get](#get)([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet#getrequest) request)
Returns a single pet | -| Void | [post](#post)([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost#postrequest) request)
| +| Void | [delete](#delete)([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete.md#deleterequest) request)
| +| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | [get](#get)([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet.md#getrequest) request)
Returns a single pet | +| Void | [post](#post)([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost.md#postrequest) request)
| ## Method Detail ### delete -public Void delete([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete#deleterequest) request) +public Void delete([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete.md#deleterequest) request) @@ -131,7 +131,7 @@ try { } ``` ### get -public [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) get([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet#getrequest) request) +public [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) get([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet.md#getrequest) request) Returns a single pet @@ -252,7 +252,7 @@ if (castResponse.body instanceof PetpetidGetCode200Response.ApplicationxmlRespon } ``` ### post -public Void post([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost#postrequest) request) +public Void post([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md index 48a6955bcea..4d6e11a51f4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md @@ -3,17 +3,17 @@ 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="/pet/{petId}/uploadImage" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | [post](#post)([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost#postrequest) request)
| +| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | [post](#post)([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost.md#postrequest) request)
| ## Method Detail ### post -public [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) post([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost#postrequest) request) +public [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) post([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Solidus.md b/samples/client/petstore/java/docs/apis/paths/Solidus.md index 34a895f9c84..5f8a4970e89 100644 --- a/samples/client/petstore/java/docs/apis/paths/Solidus.md +++ b/samples/client/petstore/java/docs/apis/paths/Solidus.md @@ -3,17 +3,17 @@ 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 | | ----------------- | ---------------------- | -| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | [get](#get)([SolidusGet.GetRequest](../../paths/solidus/SolidusGet#getrequest) request) | +| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | [get](#get)([SolidusGet.GetRequest](../../paths/solidus/SolidusGet.md#getrequest) request) | ## Method Detail ### get -public [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) get([SolidusGet.GetRequest](../../paths/solidus/SolidusGet#getrequest) request) +public [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) get([SolidusGet.GetRequest](../../paths/solidus/SolidusGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md index edf9f8f6e93..ee9907299d6 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md @@ -3,17 +3,17 @@ 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="/store/inventory" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | [get](#get)([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet#getrequest) request)
Returns a map of status codes to quantities | +| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | [get](#get)([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet.md#getrequest) request)
Returns a map of status codes to quantities | ## Method Detail ### get -public [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) get([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet#getrequest) request) +public [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) get([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet.md#getrequest) request) Returns a map of status codes to quantities diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorder.md b/samples/client/petstore/java/docs/apis/paths/Storeorder.md index 4763ee15fe9..e092f790b67 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorder.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorder.md @@ -3,17 +3,17 @@ 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="/store/order" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | [post](#post)([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost#postrequest) request)
| +| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | [post](#post)([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost.md#postrequest) request)
| ## Method Detail ### post -public [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) post([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost#postrequest) request) +public [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) post([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md index 71bc8d95db4..9f8f173efa3 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md @@ -4,18 +4,18 @@ 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="/store/order/{order_id}" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| Void | [delete](#delete)([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete#deleterequest) request)
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors | -| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | [get](#get)([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet#getrequest) request)
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions | +| Void | [delete](#delete)([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete.md#deleterequest) request)
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors | +| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | [get](#get)([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet.md#getrequest) request)
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions | ## Method Detail ### delete -public Void delete([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete#deleterequest) request) +public Void delete([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete.md#deleterequest) request) For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -116,7 +116,7 @@ try { } ``` ### get -public [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) get([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet#getrequest) request) +public [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) get([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet.md#getrequest) request) For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions diff --git a/samples/client/petstore/java/docs/apis/paths/User.md b/samples/client/petstore/java/docs/apis/paths/User.md index 157abccbbc6..f10ec4e7199 100644 --- a/samples/client/petstore/java/docs/apis/paths/User.md +++ b/samples/client/petstore/java/docs/apis/paths/User.md @@ -3,17 +3,17 @@ 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="/user" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | [post](#post)([UserPost.PostRequest](../../paths/user/UserPost#postrequest) request)
This can only be done by the logged in user. | +| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | [post](#post)([UserPost.PostRequest](../../paths/user/UserPost.md#postrequest) request)
This can only be done by the logged in user. | ## Method Detail ### post -public [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) post([UserPost.PostRequest](../../paths/user/UserPost#postrequest) request) +public [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) post([UserPost.PostRequest](../../paths/user/UserPost.md#postrequest) request) This can only be done by the logged in user. diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md index f5405d97b0f..39776a1525c 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md @@ -3,17 +3,17 @@ 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="/user/createWithArray" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | [post](#post)([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost#postrequest) request)
| +| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | [post](#post)([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost.md#postrequest) request)
| ## Method Detail ### post -public [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) post([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost#postrequest) request) +public [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) post([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md index 02715390138..17991d81c4d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md @@ -3,17 +3,17 @@ 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="/user/createWithList" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | [post](#post)([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost#postrequest) request)
| +| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | [post](#post)([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost.md#postrequest) request)
| ## Method Detail ### post -public [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) post([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost#postrequest) request) +public [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) post([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogin.md b/samples/client/petstore/java/docs/apis/paths/Userlogin.md index 32bae89b5d0..75f7296e1e0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogin.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogin.md @@ -3,17 +3,17 @@ 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="/user/login" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | [get](#get)([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet#getrequest) request)
| +| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | [get](#get)([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet.md#getrequest) request)
| ## Method Detail ### get -public [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) get([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet#getrequest) request) +public [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) get([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet.md#getrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogout.md b/samples/client/petstore/java/docs/apis/paths/Userlogout.md index 75eff57b371..6da74aaf369 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogout.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogout.md @@ -3,17 +3,17 @@ 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="/user/logout" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | [get](#get)([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet#getrequest) request)
| +| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | [get](#get)([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet.md#getrequest) request)
| ## Method Detail ### get -public [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) get([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet#getrequest) request) +public [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) get([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet.md#getrequest) request) diff --git a/samples/client/petstore/java/docs/apis/paths/Userusername.md b/samples/client/petstore/java/docs/apis/paths/Userusername.md index 21dc280b216..d5f9713dc06 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userusername.md +++ b/samples/client/petstore/java/docs/apis/paths/Userusername.md @@ -5,19 +5,19 @@ 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="/user/{username}" +an api client class which contains all the routes for path="" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | [delete](#delete)([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete#deleterequest) request)
This can only be done by the logged in user. | -| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | [get](#get)([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet#getrequest) request)
| -| Void | [put](#put)([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut#putrequest) request)
This can only be done by the logged in user. | +| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | [delete](#delete)([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete.md#deleterequest) request)
This can only be done by the logged in user. | +| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | [get](#get)([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet.md#getrequest) request)
| +| Void | [put](#put)([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut.md#putrequest) request)
This can only be done by the logged in user. | ## Method Detail ### delete -public [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) delete([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete#deleterequest) request) +public [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) delete([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete.md#deleterequest) request) This can only be done by the logged in user. @@ -119,7 +119,7 @@ try { UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response castResponse = (UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response) response; ``` ### get -public [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) get([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet#getrequest) request) +public [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) get([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet.md#getrequest) request) @@ -228,7 +228,7 @@ if (castResponse.body instanceof UserusernameGetCode200Response.ApplicationxmlRe } ``` ### put -public Void put([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut#putrequest) request) +public Void put([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut.md#putrequest) request) This can only be done by the logged in user. diff --git a/samples/client/petstore/java/docs/apis/tags/Anotherfake.md b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md index 3e2d1f9e52a..98beb981514 100644 --- a/samples/client/petstore/java/docs/apis/tags/Anotherfake.md +++ b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md @@ -3,17 +3,17 @@ public class Anotherfake extends extends ApiClient implements [AnotherfakedummyPatch.Model123TestSpecialTagsOperation](../../paths/anotherfakedummy/AnotherfakedummyPatch.md#model123testspecialtagsoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for tag="$another-fake?" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | [model123TestSpecialTags](#model123testspecialtags)([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch#patchrequest) request)
To test special tags and operation ID starting with number | +| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | [model123TestSpecialTags](#model123testspecialtags)([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch.md#patchrequest) request)
To test special tags and operation ID starting with number | ## Method Detail ### model123TestSpecialTags -public [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) model123TestSpecialTags([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch#patchrequest) request) +public [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) model123TestSpecialTags([AnotherfakedummyPatch.PatchRequest](../../paths/anotherfakedummy/AnotherfakedummyPatch.md#patchrequest) request) To test special tags and operation ID starting with number diff --git a/samples/client/petstore/java/docs/apis/tags/Default.md b/samples/client/petstore/java/docs/apis/tags/Default.md index 03b2ddc8e57..c39a91a4294 100644 --- a/samples/client/petstore/java/docs/apis/tags/Default.md +++ b/samples/client/petstore/java/docs/apis/tags/Default.md @@ -3,17 +3,18 @@ public class Default extends extends ApiClient implements [FooGet.FooGetOperation](../../paths/foo/FooGet.md#foogetoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for tag="default" +operations that lack tags are assigned this default tag ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | [fooGet](#fooget)([FooGet.GetRequest](../../paths/foo/FooGet#getrequest) request) | +| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | [fooGet](#fooget)([FooGet.GetRequest](../../paths/foo/FooGet.md#getrequest) request) | ## Method Detail ### fooGet -public [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) fooGet([FooGet.GetRequest](../../paths/foo/FooGet#getrequest) request) +public [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) fooGet([FooGet.GetRequest](../../paths/foo/FooGet.md#getrequest) request) **Parameters:**
request - the input request diff --git a/samples/client/petstore/java/docs/apis/tags/Fake.md b/samples/client/petstore/java/docs/apis/tags/Fake.md index 00442ea6240..8b8e520115f 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fake.md +++ b/samples/client/petstore/java/docs/apis/tags/Fake.md @@ -45,59 +45,59 @@ public class Fake extends extends ApiClient implements [FakeadditionalpropertieswitharrayofenumsGet.AdditionalPropertiesWithArrayOfEnumsOperation](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#additionalpropertieswitharrayofenumsoperation), [FakedeletecoffeeidDelete.DeleteCoffeeOperation](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#deletecoffeeoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for tag="fake" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | [jsonPatch](#jsonpatch)([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch#patchrequest) request)
json patch route with a requestBody | -| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | [arrayOfEnums](#arrayofenums)([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#postrequest) request) | -| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | [deleteCommonParam](#deletecommonparam)([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete#deleterequest) request)
common param is overwritten | -| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | [getCommonParam](#getcommonparam)([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet#getrequest) request) | -| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | [postCommonParam](#postcommonparam)([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost#postrequest) request) | -| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | [caseSensitiveParams](#casesensitiveparams)([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#putrequest) request)
Ensures that original naming is used in endpoint params, that way we don't have collisions | -| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | [wildCardResponses](#wildcardresponses)([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet#getrequest) request) | -| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | [bodyWithQueryParams](#bodywithqueryparams)([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#putrequest) request) | -| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | [jsonWithCharset](#jsonwithcharset)([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost#postrequest) request) | -| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | [arrayModel](#arraymodel)([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost#postrequest) request)
Test serialization of ArrayModel | -| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | [fakeHealthGet](#fakehealthget)([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet#getrequest) request) | -| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | [composedOneOfDifferentTypes](#composedoneofdifferenttypes)([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#postrequest) request)
Test serialization of object with $refed properties | -| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | [refObjectInQuery](#refobjectinquery)([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet#getrequest) request) | -| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | [bodyWithFileSchema](#bodywithfileschema)([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut#putrequest) request)
For this test, the body for this request much reference a schema named `File`. | -| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | [stringEnum](#stringenum)([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost#postrequest) request)
Test serialization of outer enum | -| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | [redirection](#redirection)([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet#getrequest) request) | -| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | [uploadFile](#uploadfile)([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost#postrequest) request)
| -| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | [inlineComposition](#inlinecomposition)([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | -| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | [groupParameters](#groupparameters)([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete#deleterequest) request)
Fake endpoint to test group parameters (optional) | -| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | [enumParameters](#enumparameters)([FakeGet.GetRequest](../../paths/fake/FakeGet#getrequest) request)
To test enum parameters | -| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | [clientModel](#clientmodel)([FakePatch.PatchRequest](../../paths/fake/FakePatch#patchrequest) request)
To test "client" model | -| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | [endpointParameters](#endpointparameters)([FakePost.PostRequest](../../paths/fake/FakePost#postrequest) request)
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| -| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | [objectModelWithRefProps](#objectmodelwithrefprops)([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#postrequest) request)
Test serialization of object with $refed properties | -| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | [pemContentType](#pemcontenttype)([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet#getrequest) request) | -| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | [numberWithValidations](#numberwithvalidations)([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost#postrequest) request)
Test serialization of outer number types | -| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | [modelString](#modelstring)([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost#postrequest) request)
Test serialization of outer string types | -| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | [inlineAdditionalProperties](#inlineadditionalproperties)([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#postrequest) request)
| -| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | [mammal](#mammal)([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost#postrequest) request)
Test serialization of mammals | -| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | [slashRoute](#slashroute)([SolidusGet.GetRequest](../../paths/solidus/SolidusGet#getrequest) request) | -| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | [modelBoolean](#modelboolean)([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost#postrequest) request)
Test serialization of outer boolean types | -| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | [jsonFormData](#jsonformdata)([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet#getrequest) request)
| -| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | [parameterCollisions](#parametercollisions)([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#postrequest) request) | -| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | [queryParamWithJsonContentType](#queryparamwithjsoncontenttype)([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#getrequest) request) | -| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | [objectInQuery](#objectinquery)([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet#getrequest) request) | -| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | [multipleSecurities](#multiplesecurities)([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet#getrequest) request) | -| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | [queryParameterCollectionFormat](#queryparametercollectionformat)([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut#putrequest) request)
To test the collection format in query parameters | -| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | [multipleResponseBodies](#multipleresponsebodies)([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#getrequest) request) | -| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | [responseWithoutSchema](#responsewithoutschema)([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#getrequest) request) | -| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | [multipleRequestBodyContentTypes](#multiplerequestbodycontenttypes)([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | -| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | [uploadDownloadFile](#uploaddownloadfile)([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#postrequest) request)
| -| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | [uploadFiles](#uploadfiles)([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost#postrequest) request)
| -| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | [additionalPropertiesWithArrayOfEnums](#additionalpropertieswitharrayofenums)([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#getrequest) request) | -| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | [deleteCoffee](#deletecoffee)([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#deleterequest) request)
Delete the coffee identified by the given id, (delete without request body) | +| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | [jsonPatch](#jsonpatch)([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch.md#patchrequest) request)
json patch route with a requestBody | +| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | [arrayOfEnums](#arrayofenums)([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#postrequest) request) | +| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | [deleteCommonParam](#deletecommonparam)([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete.md#deleterequest) request)
common param is overwritten | +| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | [getCommonParam](#getcommonparam)([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet.md#getrequest) request) | +| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | [postCommonParam](#postcommonparam)([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost.md#postrequest) request) | +| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | [caseSensitiveParams](#casesensitiveparams)([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#putrequest) request)
Ensures that original naming is used in endpoint params, that way we don't have collisions | +| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | [wildCardResponses](#wildcardresponses)([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet.md#getrequest) request) | +| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | [bodyWithQueryParams](#bodywithqueryparams)([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#putrequest) request) | +| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | [jsonWithCharset](#jsonwithcharset)([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#postrequest) request) | +| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | [arrayModel](#arraymodel)([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost.md#postrequest) request)
Test serialization of ArrayModel | +| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | [fakeHealthGet](#fakehealthget)([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet.md#getrequest) request) | +| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | [composedOneOfDifferentTypes](#composedoneofdifferenttypes)([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#postrequest) request)
Test serialization of object with $refed properties | +| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | [refObjectInQuery](#refobjectinquery)([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet.md#getrequest) request) | +| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | [bodyWithFileSchema](#bodywithfileschema)([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#putrequest) request)
For this test, the body for this request much reference a schema named `File`. | +| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | [stringEnum](#stringenum)([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost.md#postrequest) request)
Test serialization of outer enum | +| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | [redirection](#redirection)([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet.md#getrequest) request) | +| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | [uploadFile](#uploadfile)([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost.md#postrequest) request)
| +| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | [inlineComposition](#inlinecomposition)([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost.md#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | +| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | [groupParameters](#groupparameters)([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete.md#deleterequest) request)
Fake endpoint to test group parameters (optional) | +| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | [enumParameters](#enumparameters)([FakeGet.GetRequest](../../paths/fake/FakeGet.md#getrequest) request)
To test enum parameters | +| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | [clientModel](#clientmodel)([FakePatch.PatchRequest](../../paths/fake/FakePatch.md#patchrequest) request)
To test "client" model | +| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | [endpointParameters](#endpointparameters)([FakePost.PostRequest](../../paths/fake/FakePost.md#postrequest) request)
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| +| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | [objectModelWithRefProps](#objectmodelwithrefprops)([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#postrequest) request)
Test serialization of object with $refed properties | +| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | [pemContentType](#pemcontenttype)([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet.md#getrequest) request) | +| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | [numberWithValidations](#numberwithvalidations)([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost.md#postrequest) request)
Test serialization of outer number types | +| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | [modelString](#modelstring)([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost.md#postrequest) request)
Test serialization of outer string types | +| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | [inlineAdditionalProperties](#inlineadditionalproperties)([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#postrequest) request)
| +| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | [mammal](#mammal)([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost.md#postrequest) request)
Test serialization of mammals | +| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | [slashRoute](#slashroute)([SolidusGet.GetRequest](../../paths/solidus/SolidusGet.md#getrequest) request) | +| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | [modelBoolean](#modelboolean)([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost.md#postrequest) request)
Test serialization of outer boolean types | +| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | [jsonFormData](#jsonformdata)([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet.md#getrequest) request)
| +| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | [parameterCollisions](#parametercollisions)([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#postrequest) request) | +| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | [queryParamWithJsonContentType](#queryparamwithjsoncontenttype)([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#getrequest) request) | +| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | [objectInQuery](#objectinquery)([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet.md#getrequest) request) | +| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | [multipleSecurities](#multiplesecurities)([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#getrequest) request) | +| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | [queryParameterCollectionFormat](#queryparametercollectionformat)([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut.md#putrequest) request)
To test the collection format in query parameters | +| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | [multipleResponseBodies](#multipleresponsebodies)([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#getrequest) request) | +| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | [responseWithoutSchema](#responsewithoutschema)([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#getrequest) request) | +| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | [multipleRequestBodyContentTypes](#multiplerequestbodycontenttypes)([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#postrequest) request)
composed schemas at inline locations + multiple requestBody content types | +| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | [uploadDownloadFile](#uploaddownloadfile)([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#postrequest) request)
| +| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | [uploadFiles](#uploadfiles)([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost.md#postrequest) request)
| +| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | [additionalPropertiesWithArrayOfEnums](#additionalpropertieswitharrayofenums)([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#getrequest) request) | +| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | [deleteCoffee](#deletecoffee)([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#deleterequest) request)
Delete the coffee identified by the given id, (delete without request body) | ## Method Detail ### jsonPatch -public [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) jsonPatch([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch#patchrequest) request) +public [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) jsonPatch([FakejsonpatchPatch.PatchRequest](../../paths/fakejsonpatch/FakejsonpatchPatch.md#patchrequest) request) json patch route with a requestBody @@ -184,7 +184,7 @@ try { FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response castResponse = (FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response) response; ``` ### arrayOfEnums -public [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) arrayOfEnums([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost#postrequest) request) +public [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) arrayOfEnums([FakerefsarrayofenumsPost.PostRequest](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#postrequest) request) **Parameters:**
request - the input request @@ -271,7 +271,7 @@ FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody deserialized // handle deserialized body here ``` ### deleteCommonParam -public [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) deleteCommonParam([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete#deleterequest) request) +public [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) deleteCommonParam([CommonparamsubdirDelete.DeleteRequest](../../paths/commonparamsubdir/CommonparamsubdirDelete.md#deleterequest) request) common param is overwritten @@ -370,7 +370,7 @@ try { CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response castResponse = (CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response) response; ``` ### getCommonParam -public [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) getCommonParam([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet#getrequest) request) +public [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) getCommonParam([CommonparamsubdirGet.GetRequest](../../paths/commonparamsubdir/CommonparamsubdirGet.md#getrequest) request) **Parameters:**
request - the input request @@ -467,7 +467,7 @@ try { CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response castResponse = (CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response) response; ``` ### postCommonParam -public [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) postCommonParam([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost#postrequest) request) +public [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) postCommonParam([CommonparamsubdirPost.PostRequest](../../paths/commonparamsubdir/CommonparamsubdirPost.md#postrequest) request) **Parameters:**
request - the input request @@ -564,7 +564,7 @@ try { CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response castResponse = (CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response) response; ``` ### caseSensitiveParams -public [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) caseSensitiveParams([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut#putrequest) request) +public [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) caseSensitiveParams([FakecasesensitiveparamsPut.PutRequest](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#putrequest) request) Ensures that original naming is used in endpoint params, that way we don't have collisions @@ -666,7 +666,7 @@ try { FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response castResponse = (FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response) response; ``` ### wildCardResponses -public [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) wildCardResponses([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet#getrequest) request) +public [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) wildCardResponses([FakewildcardresponsesGet.GetRequest](../../paths/fakewildcardresponses/FakewildcardresponsesGet.md#getrequest) request) **Parameters:**
request - the input request @@ -770,7 +770,7 @@ FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody deserialized } ``` ### bodyWithQueryParams -public [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) bodyWithQueryParams([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut#putrequest) request) +public [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) bodyWithQueryParams([FakebodywithqueryparamsPut.PutRequest](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#putrequest) request) **Parameters:**
request - the input request @@ -895,7 +895,7 @@ try { FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response castResponse = (FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response) response; ``` ### jsonWithCharset -public [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) jsonWithCharset([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost#postrequest) request) +public [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) jsonWithCharset([FakejsonwithcharsetPost.PostRequest](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#postrequest) request) **Parameters:**
request - the input request @@ -982,7 +982,7 @@ FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody de // handle deserialized body here ``` ### arrayModel -public [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) arrayModel([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost#postrequest) request) +public [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) arrayModel([FakerefsarraymodelPost.PostRequest](../../paths/fakerefsarraymodel/FakerefsarraymodelPost.md#postrequest) request) Test serialization of ArrayModel @@ -1071,7 +1071,7 @@ FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody deserializedBo // handle deserialized body here ``` ### fakeHealthGet -public [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) fakeHealthGet([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet#getrequest) request) +public [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) fakeHealthGet([FakehealthGet.GetRequest](../../paths/fakehealth/FakehealthGet.md#getrequest) request) **Parameters:**
request - the input request @@ -1156,7 +1156,7 @@ FakehealthGetCode200Response.ApplicationjsonResponseBody deserializedBody = (Fak // handle deserialized body here ``` ### composedOneOfDifferentTypes -public [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) composedOneOfDifferentTypes([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost#postrequest) request) +public [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) composedOneOfDifferentTypes([FakerefscomposedoneofnumberwithvalidationsPost.PostRequest](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#postrequest) request) Test serialization of object with $refed properties @@ -1245,7 +1245,7 @@ FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonRes // handle deserialized body here ``` ### refObjectInQuery -public [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) refObjectInQuery([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet#getrequest) request) +public [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) refObjectInQuery([FakerefobjinqueryGet.GetRequest](../../paths/fakerefobjinquery/FakerefobjinqueryGet.md#getrequest) request) **Parameters:**
request - the input request @@ -1329,7 +1329,7 @@ try { FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response castResponse = (FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response) response; ``` ### bodyWithFileSchema -public [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) bodyWithFileSchema([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut#putrequest) request) +public [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) bodyWithFileSchema([FakebodywithfileschemaPut.PutRequest](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#putrequest) request) For this test, the body for this request much reference a schema named `File`. @@ -1430,7 +1430,7 @@ try { FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response castResponse = (FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response) response; ``` ### stringEnum -public [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) stringEnum([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost#postrequest) request) +public [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) stringEnum([FakerefsenumPost.PostRequest](../../paths/fakerefsenum/FakerefsenumPost.md#postrequest) request) Test serialization of outer enum @@ -1519,7 +1519,7 @@ FakerefsenumPostCode200Response.ApplicationjsonResponseBody deserializedBody = ( // handle deserialized body here ``` ### redirection -public [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) redirection([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet#getrequest) request) +public [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) redirection([FakeredirectionGet.GetRequest](../../paths/fakeredirection/FakeredirectionGet.md#getrequest) request) **Parameters:**
request - the input request @@ -1606,7 +1606,7 @@ if (response instanceof FakeredirectionGetResponses.EndpointFakeredirectionGetCo } ``` ### uploadFile -public [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) uploadFile([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost#postrequest) request) +public [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) uploadFile([FakeuploadfilePost.PostRequest](../../paths/fakeuploadfile/FakeuploadfilePost.md#postrequest) request) @@ -1695,7 +1695,7 @@ FakeuploadfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = // handle deserialized body here ``` ### inlineComposition -public [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) inlineComposition([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost#postrequest) request) +public [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) inlineComposition([FakeinlinecompositionPost.PostRequest](../../paths/fakeinlinecomposition/FakeinlinecompositionPost.md#postrequest) request) composed schemas at inline locations + multiple requestBody content types @@ -1789,7 +1789,7 @@ if (castResponse.body instanceof FakeinlinecompositionPostCode200Response.Applic } ``` ### groupParameters -public [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) groupParameters([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete#deleterequest) request) +public [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) groupParameters([FakeDelete.DeleteRequest](../../paths/fake/FakeDelete.md#deleterequest) request) Fake endpoint to test group parameters (optional) @@ -1919,7 +1919,7 @@ try { FakeDeleteResponses.EndpointFakeDeleteCode200Response castResponse = (FakeDeleteResponses.EndpointFakeDeleteCode200Response) response; ``` ### enumParameters -public [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) enumParameters([FakeGet.GetRequest](../../paths/fake/FakeGet#getrequest) request) +public [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) enumParameters([FakeGet.GetRequest](../../paths/fake/FakeGet.md#getrequest) request) To test enum parameters @@ -2012,7 +2012,7 @@ try { FakeGetResponses.EndpointFakeGetCode200Response castResponse = (FakeGetResponses.EndpointFakeGetCode200Response) response; ``` ### clientModel -public [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) clientModel([FakePatch.PatchRequest](../../paths/fake/FakePatch#patchrequest) request) +public [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) clientModel([FakePatch.PatchRequest](../../paths/fake/FakePatch.md#patchrequest) request) To test "client" model @@ -2113,7 +2113,7 @@ FakePatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakePat // handle deserialized body here ``` ### endpointParameters -public [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) endpointParameters([FakePost.PostRequest](../../paths/fake/FakePost#postrequest) request) +public [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) endpointParameters([FakePost.PostRequest](../../paths/fake/FakePost.md#postrequest) request) Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
@@ -2216,7 +2216,7 @@ try { FakePostResponses.EndpointFakePostCode200Response castResponse = (FakePostResponses.EndpointFakePostCode200Response) response; ``` ### objectModelWithRefProps -public [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) objectModelWithRefProps([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost#postrequest) request) +public [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) objectModelWithRefProps([FakerefsobjectmodelwithrefpropsPost.PostRequest](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#postrequest) request) Test serialization of object with $refed properties @@ -2305,7 +2305,7 @@ FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody d // handle deserialized body here ``` ### pemContentType -public [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) pemContentType([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet#getrequest) request) +public [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) pemContentType([FakepemcontenttypeGet.GetRequest](../../paths/fakepemcontenttype/FakepemcontenttypeGet.md#getrequest) request) **Parameters:**
request - the input request @@ -2392,7 +2392,7 @@ FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody deserialize // handle deserialized body here ``` ### numberWithValidations -public [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) numberWithValidations([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost#postrequest) request) +public [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) numberWithValidations([FakerefsnumberPost.PostRequest](../../paths/fakerefsnumber/FakerefsnumberPost.md#postrequest) request) Test serialization of outer number types @@ -2481,7 +2481,7 @@ FakerefsnumberPostCode200Response.ApplicationjsonResponseBody deserializedBody = // handle deserialized body here ``` ### modelString -public [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) modelString([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost#postrequest) request) +public [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) modelString([FakerefsstringPost.PostRequest](../../paths/fakerefsstring/FakerefsstringPost.md#postrequest) request) Test serialization of outer string types @@ -2570,7 +2570,7 @@ FakerefsstringPostCode200Response.ApplicationjsonResponseBody deserializedBody = // handle deserialized body here ``` ### inlineAdditionalProperties -public [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) inlineAdditionalProperties([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost#postrequest) request) +public [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) inlineAdditionalProperties([FakeinlineadditionalpropertiesPost.PostRequest](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#postrequest) request) @@ -2669,7 +2669,7 @@ try { FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response castResponse = (FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response) response; ``` ### mammal -public [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) mammal([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost#postrequest) request) +public [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) mammal([FakerefsmammalPost.PostRequest](../../paths/fakerefsmammal/FakerefsmammalPost.md#postrequest) request) Test serialization of mammals @@ -2761,7 +2761,7 @@ FakerefsmammalPostCode200Response.ApplicationjsonResponseBody deserializedBody = // handle deserialized body here ``` ### slashRoute -public [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) slashRoute([SolidusGet.GetRequest](../../paths/solidus/SolidusGet#getrequest) request) +public [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) slashRoute([SolidusGet.GetRequest](../../paths/solidus/SolidusGet.md#getrequest) request) **Parameters:**
request - the input request @@ -2844,7 +2844,7 @@ try { SolidusGetResponses.EndpointSolidusGetCode200Response castResponse = (SolidusGetResponses.EndpointSolidusGetCode200Response) response; ``` ### modelBoolean -public [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) modelBoolean([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost#postrequest) request) +public [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) modelBoolean([FakerefsbooleanPost.PostRequest](../../paths/fakerefsboolean/FakerefsbooleanPost.md#postrequest) request) Test serialization of outer boolean types @@ -2933,7 +2933,7 @@ FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody deserializedBody // handle deserialized body here ``` ### jsonFormData -public [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) jsonFormData([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet#getrequest) request) +public [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) jsonFormData([FakejsonformdataGet.GetRequest](../../paths/fakejsonformdata/FakejsonformdataGet.md#getrequest) request) @@ -3020,7 +3020,7 @@ try { FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response castResponse = (FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response) response; ``` ### parameterCollisions -public [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) parameterCollisions([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost#postrequest) request) +public [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) parameterCollisions([Fakeparametercollisions1ababselfabPost.PostRequest](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#postrequest) request) **Parameters:**
request - the input request @@ -3130,7 +3130,7 @@ Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBod // handle deserialized body here ``` ### queryParamWithJsonContentType -public [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) queryParamWithJsonContentType([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet#getrequest) request) +public [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) queryParamWithJsonContentType([FakequeryparamwithjsoncontenttypeGet.GetRequest](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#getrequest) request) **Parameters:**
request - the input request @@ -3226,7 +3226,7 @@ FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody // handle deserialized body here ``` ### objectInQuery -public [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) objectInQuery([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet#getrequest) request) +public [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) objectInQuery([FakeobjinqueryGet.GetRequest](../../paths/fakeobjinquery/FakeobjinqueryGet.md#getrequest) request) **Parameters:**
request - the input request @@ -3310,7 +3310,7 @@ try { FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response castResponse = (FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response) response; ``` ### multipleSecurities -public [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) multipleSecurities([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet#getrequest) request) +public [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) multipleSecurities([FakemultiplesecuritiesGet.GetRequest](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#getrequest) request) **Parameters:**
request - the input request @@ -3412,7 +3412,7 @@ FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody deserialize // handle deserialized body here ``` ### queryParameterCollectionFormat -public [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) queryParameterCollectionFormat([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut#putrequest) request) +public [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) queryParameterCollectionFormat([FaketestqueryparamtersPut.PutRequest](../../paths/faketestqueryparamters/FaketestqueryparamtersPut.md#putrequest) request) To test the collection format in query parameters @@ -3535,7 +3535,7 @@ try { FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response castResponse = (FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response) response; ``` ### multipleResponseBodies -public [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) multipleResponseBodies([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet#getrequest) request) +public [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) multipleResponseBodies([FakemultipleresponsebodiesGet.GetRequest](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#getrequest) request) **Parameters:**
request - the input request @@ -3626,7 +3626,7 @@ FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody deseria } ``` ### responseWithoutSchema -public [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) responseWithoutSchema([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet#getrequest) request) +public [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) responseWithoutSchema([FakeresponsewithoutschemaGet.GetRequest](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#getrequest) request) **Parameters:**
request - the input request @@ -3709,7 +3709,7 @@ try { FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response castResponse = (FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response) response; ``` ### multipleRequestBodyContentTypes -public [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) multipleRequestBodyContentTypes([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost#postrequest) request) +public [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) multipleRequestBodyContentTypes([FakemultiplerequestbodycontenttypesPost.PostRequest](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#postrequest) request) composed schemas at inline locations + multiple requestBody content types @@ -3798,7 +3798,7 @@ FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBo // handle deserialized body here ``` ### uploadDownloadFile -public [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) uploadDownloadFile([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost#postrequest) request) +public [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) uploadDownloadFile([FakeuploaddownloadfilePost.PostRequest](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#postrequest) request) @@ -3895,7 +3895,7 @@ FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody des // handle deserialized body here ``` ### uploadFiles -public [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) uploadFiles([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost#postrequest) request) +public [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) uploadFiles([FakeuploadfilesPost.PostRequest](../../paths/fakeuploadfiles/FakeuploadfilesPost.md#postrequest) request) @@ -3984,7 +3984,7 @@ FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody deserializedBody // handle deserialized body here ``` ### additionalPropertiesWithArrayOfEnums -public [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) additionalPropertiesWithArrayOfEnums([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet#getrequest) request) +public [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) additionalPropertiesWithArrayOfEnums([FakeadditionalpropertieswitharrayofenumsGet.GetRequest](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#getrequest) request) **Parameters:**
request - the input request @@ -4071,7 +4071,7 @@ FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonRespon // handle deserialized body here ``` ### deleteCoffee -public [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) deleteCoffee([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete#deleterequest) request) +public [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) deleteCoffee([FakedeletecoffeeidDelete.DeleteRequest](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#deleterequest) request) Delete the coffee identified by the given id, (delete without request body) diff --git a/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md index c655b928096..43eb1ca2f5b 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md +++ b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md @@ -3,17 +3,17 @@ public class Fakeclassnametags123 extends extends ApiClient implements [FakeclassnametestPatch.ClassnameOperation](../../paths/fakeclassnametest/FakeclassnametestPatch.md#classnameoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for tag="fake_classname_tags 123#$%^" ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | [classname](#classname)([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch#patchrequest) request)
To test class name in snake case | +| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | [classname](#classname)([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch.md#patchrequest) request)
To test class name in snake case | ## Method Detail ### classname -public [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) classname([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch#patchrequest) request) +public [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) classname([FakeclassnametestPatch.PatchRequest](../../paths/fakeclassnametest/FakeclassnametestPatch.md#patchrequest) request) To test class name in snake case diff --git a/samples/client/petstore/java/docs/apis/tags/Pet.md b/samples/client/petstore/java/docs/apis/tags/Pet.md index bfa5a71e1be..4a56dfedbef 100644 --- a/samples/client/petstore/java/docs/apis/tags/Pet.md +++ b/samples/client/petstore/java/docs/apis/tags/Pet.md @@ -11,25 +11,26 @@ public class Pet extends extends ApiClient implements [PetpetidGet.GetPetByIdOperation](../../paths/petpetid/PetpetidGet.md#getpetbyidoperation), [PetpetidPost.UpdatePetWithFormOperation](../../paths/petpetid/PetpetidPost.md#updatepetwithformoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for tag="pet" +Everything about your Pets ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | [uploadFileWithRequiredFile](#uploadfilewithrequiredfile)([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#postrequest) request)
| -| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | [addPet](#addpet)([PetPost.PostRequest](../../paths/pet/PetPost#postrequest) request)
Add a new pet to the store | -| Void | [updatePet](#updatepet)([PetPut.PutRequest](../../paths/pet/PetPut#putrequest) request)
| -| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | [findPetsByTags](#findpetsbytags)([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet#getrequest) request)
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. | -| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | [findPetsByStatus](#findpetsbystatus)([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet#getrequest) request)
Multiple status values can be provided with comma separated strings | -| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | [uploadImage](#uploadimage)([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost#postrequest) request)
| -| Void | [deletePet](#deletepet)([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete#deleterequest) request)
| -| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | [getPetById](#getpetbyid)([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet#getrequest) request)
Returns a single pet | -| Void | [updatePetWithForm](#updatepetwithform)([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost#postrequest) request)
| +| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | [uploadFileWithRequiredFile](#uploadfilewithrequiredfile)([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#postrequest) request)
| +| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | [addPet](#addpet)([PetPost.PostRequest](../../paths/pet/PetPost.md#postrequest) request)
Add a new pet to the store | +| Void | [updatePet](#updatepet)([PetPut.PutRequest](../../paths/pet/PetPut.md#putrequest) request)
| +| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | [findPetsByTags](#findpetsbytags)([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet.md#getrequest) request)
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. | +| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | [findPetsByStatus](#findpetsbystatus)([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet.md#getrequest) request)
Multiple status values can be provided with comma separated strings | +| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | [uploadImage](#uploadimage)([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost.md#postrequest) request)
| +| Void | [deletePet](#deletepet)([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete.md#deleterequest) request)
| +| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | [getPetById](#getpetbyid)([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet.md#getrequest) request)
Returns a single pet | +| Void | [updatePetWithForm](#updatepetwithform)([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost.md#postrequest) request)
| ## Method Detail ### uploadFileWithRequiredFile -public [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) uploadFileWithRequiredFile([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost#postrequest) request) +public [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) uploadFileWithRequiredFile([FakepetiduploadimagewithrequiredfilePost.PostRequest](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#postrequest) request) @@ -139,7 +140,7 @@ FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseB // handle deserialized body here ``` ### addPet -public [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) addPet([PetPost.PostRequest](../../paths/pet/PetPost#postrequest) request) +public [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) addPet([PetPost.PostRequest](../../paths/pet/PetPost.md#postrequest) request) Add a new pet to the store @@ -287,7 +288,7 @@ try { PetPostResponses.EndpointPetPostCode200Response castResponse = (PetPostResponses.EndpointPetPostCode200Response) response; ``` ### updatePet -public Void updatePet([PetPut.PutRequest](../../paths/pet/PetPut#putrequest) request) +public Void updatePet([PetPut.PutRequest](../../paths/pet/PetPut.md#putrequest) request) @@ -431,7 +432,7 @@ try { } ``` ### findPetsByTags -public [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) findPetsByTags([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet#getrequest) request) +public [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) findPetsByTags([PetfindbytagsGet.GetRequest](../../paths/petfindbytags/PetfindbytagsGet.md#getrequest) request) Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -547,7 +548,7 @@ PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response castResponse = } ``` ### findPetsByStatus -public [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) findPetsByStatus([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet#getrequest) request) +public [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) findPetsByStatus([PetfindbystatusGet.GetRequest](../../paths/petfindbystatus/PetfindbystatusGet.md#getrequest) request) Multiple status values can be provided with comma separated strings @@ -666,7 +667,7 @@ PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response castRespon } ``` ### uploadImage -public [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) uploadImage([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost#postrequest) request) +public [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) uploadImage([PetpetiduploadimagePost.PostRequest](../../paths/petpetiduploadimage/PetpetiduploadimagePost.md#postrequest) request) @@ -776,7 +777,7 @@ PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response } ``` ### deletePet -public Void deletePet([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete#deleterequest) request) +public Void deletePet([PetpetidDelete.DeleteRequest](../../paths/petpetid/PetpetidDelete.md#deleterequest) request) @@ -890,7 +891,7 @@ try { } ``` ### getPetById -public [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) getPetById([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet#getrequest) request) +public [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) getPetById([PetpetidGet.GetRequest](../../paths/petpetid/PetpetidGet.md#getrequest) request) Returns a single pet @@ -1011,7 +1012,7 @@ if (castResponse.body instanceof PetpetidGetCode200Response.ApplicationxmlRespon } ``` ### updatePetWithForm -public Void updatePetWithForm([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost#postrequest) request) +public Void updatePetWithForm([PetpetidPost.PostRequest](../../paths/petpetid/PetpetidPost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/tags/Store.md b/samples/client/petstore/java/docs/apis/tags/Store.md index 5b1023e3bf0..e4bc0147ebc 100644 --- a/samples/client/petstore/java/docs/apis/tags/Store.md +++ b/samples/client/petstore/java/docs/apis/tags/Store.md @@ -6,20 +6,21 @@ public class Store extends extends ApiClient implements [StoreorderorderidGet.GetOrderByIdOperation](../../paths/storeorderorderid/StoreorderorderidGet.md#getorderbyidoperation), [StoreorderPost.PlaceOrderOperation](../../paths/storeorder/StoreorderPost.md#placeorderoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for tag="store" +Access to Petstore orders ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | [getInventory](#getinventory)([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet#getrequest) request)
Returns a map of status codes to quantities | -| Void | [deleteOrder](#deleteorder)([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete#deleterequest) request)
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors | -| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | [getOrderById](#getorderbyid)([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet#getrequest) request)
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions | -| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | [placeOrder](#placeorder)([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost#postrequest) request)
| +| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | [getInventory](#getinventory)([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet.md#getrequest) request)
Returns a map of status codes to quantities | +| Void | [deleteOrder](#deleteorder)([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete.md#deleterequest) request)
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors | +| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | [getOrderById](#getorderbyid)([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet.md#getrequest) request)
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions | +| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | [placeOrder](#placeorder)([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost.md#postrequest) request)
| ## Method Detail ### getInventory -public [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) getInventory([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet#getrequest) request) +public [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) getInventory([StoreinventoryGet.GetRequest](../../paths/storeinventory/StoreinventoryGet.md#getrequest) request) Returns a map of status codes to quantities @@ -118,7 +119,7 @@ StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response castResponse } ``` ### deleteOrder -public Void deleteOrder([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete#deleterequest) request) +public Void deleteOrder([StoreorderorderidDelete.DeleteRequest](../../paths/storeorderorderid/StoreorderorderidDelete.md#deleterequest) request) For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -219,7 +220,7 @@ try { } ``` ### getOrderById -public [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) getOrderById([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet#getrequest) request) +public [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) getOrderById([StoreorderorderidGet.GetRequest](../../paths/storeorderorderid/StoreorderorderidGet.md#getrequest) request) For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions @@ -328,7 +329,7 @@ if (castResponse.body instanceof StoreorderorderidGetCode200Response.Application } ``` ### placeOrder -public [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) placeOrder([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost#postrequest) request) +public [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) placeOrder([StoreorderPost.PostRequest](../../paths/storeorder/StoreorderPost.md#postrequest) request) diff --git a/samples/client/petstore/java/docs/apis/tags/User.md b/samples/client/petstore/java/docs/apis/tags/User.md index 4ccdf17674a..abcb64e7358 100644 --- a/samples/client/petstore/java/docs/apis/tags/User.md +++ b/samples/client/petstore/java/docs/apis/tags/User.md @@ -10,24 +10,25 @@ public class User extends extends ApiClient implements [UserusernamePut.UpdateUserOperation](../../paths/userusername/UserusernamePut.md#updateuseroperation), [UsercreatewithlistPost.CreateUsersWithListInputOperation](../../paths/usercreatewithlist/UsercreatewithlistPost.md#createuserswithlistinputoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for tag="user" +Operations about user ## Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | [logoutUser](#logoutuser)([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet#getrequest) request)
| -| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | [createUsersWithArrayInput](#createuserswitharrayinput)([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost#postrequest) request)
| -| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | [createUser](#createuser)([UserPost.PostRequest](../../paths/user/UserPost#postrequest) request)
This can only be done by the logged in user. | -| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | [loginUser](#loginuser)([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet#getrequest) request)
| -| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | [deleteUser](#deleteuser)([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete#deleterequest) request)
This can only be done by the logged in user. | -| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | [getUserByName](#getuserbyname)([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet#getrequest) request)
| -| Void | [updateUser](#updateuser)([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut#putrequest) request)
This can only be done by the logged in user. | -| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | [createUsersWithListInput](#createuserswithlistinput)([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost#postrequest) request)
| +| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | [logoutUser](#logoutuser)([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet.md#getrequest) request)
| +| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | [createUsersWithArrayInput](#createuserswitharrayinput)([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost.md#postrequest) request)
| +| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | [createUser](#createuser)([UserPost.PostRequest](../../paths/user/UserPost.md#postrequest) request)
This can only be done by the logged in user. | +| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | [loginUser](#loginuser)([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet.md#getrequest) request)
| +| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | [deleteUser](#deleteuser)([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete.md#deleterequest) request)
This can only be done by the logged in user. | +| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | [getUserByName](#getuserbyname)([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet.md#getrequest) request)
| +| Void | [updateUser](#updateuser)([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut.md#putrequest) request)
This can only be done by the logged in user. | +| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | [createUsersWithListInput](#createuserswithlistinput)([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost.md#postrequest) request)
| ## Method Detail ### logoutUser -public [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) logoutUser([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet#getrequest) request) +public [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) logoutUser([UserlogoutGet.GetRequest](../../paths/userlogout/UserlogoutGet.md#getrequest) request) @@ -112,7 +113,7 @@ try { UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse castResponse = (UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse) response; ``` ### createUsersWithArrayInput -public [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) createUsersWithArrayInput([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost#postrequest) request) +public [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) createUsersWithArrayInput([UsercreatewitharrayPost.PostRequest](../../paths/usercreatewitharray/UsercreatewitharrayPost.md#postrequest) request) @@ -249,7 +250,7 @@ try { UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse castResponse = (UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse) response; ``` ### createUser -public [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) createUser([UserPost.PostRequest](../../paths/user/UserPost#postrequest) request) +public [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) createUser([UserPost.PostRequest](../../paths/user/UserPost.md#postrequest) request) This can only be done by the logged in user. @@ -364,7 +365,7 @@ try { UserPostResponses.EndpointUserPostCodedefaultResponse castResponse = (UserPostResponses.EndpointUserPostCodedefaultResponse) response; ``` ### loginUser -public [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) loginUser([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet#getrequest) request) +public [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) loginUser([UserloginGet.GetRequest](../../paths/userlogin/UserloginGet.md#getrequest) request) @@ -475,7 +476,7 @@ if (castResponse.body instanceof UserloginGetCode200Response.ApplicationxmlRespo } ``` ### deleteUser -public [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) deleteUser([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete#deleterequest) request) +public [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) deleteUser([UserusernameDelete.DeleteRequest](../../paths/userusername/UserusernameDelete.md#deleterequest) request) This can only be done by the logged in user. @@ -577,7 +578,7 @@ try { UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response castResponse = (UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response) response; ``` ### getUserByName -public [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) getUserByName([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet#getrequest) request) +public [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) getUserByName([UserusernameGet.GetRequest](../../paths/userusername/UserusernameGet.md#getrequest) request) @@ -686,7 +687,7 @@ if (castResponse.body instanceof UserusernameGetCode200Response.ApplicationxmlRe } ``` ### updateUser -public Void updateUser([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut#putrequest) request) +public Void updateUser([UserusernamePut.PutRequest](../../paths/userusername/UserusernamePut.md#putrequest) request) This can only be done by the logged in user. @@ -816,7 +817,7 @@ try { } ``` ### createUsersWithListInput -public [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) createUsersWithListInput([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost#postrequest) request) +public [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) createUsersWithListInput([UsercreatewithlistPost.PostRequest](../../paths/usercreatewithlist/UsercreatewithlistPost.md#postrequest) request) diff --git a/src/main/resources/java/README.hbs b/src/main/resources/java/README.hbs index 3e4e6849acf..bd07d6f6f5b 100644 --- a/src/main/resources/java/README.hbs +++ b/src/main/resources/java/README.hbs @@ -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.camelCase}}]({{docRoot}}{{pathFromDocRoot}}#{{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/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 e16634107eb..4cbd53eb180 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 @@ -5,20 +5,25 @@ public class {{pathItem.jsonPathPiece.pascalCase}} extends extends ApiClient imp [{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Operation]({{docRoot}}{{pathFromDocRoot}}.md#{{method.kebabCase}}operation){{#unless @last}},{{/unless}} {{/each}} -an api client class which contains all the routes for path="{{path.original}}" +{{#with pathItem}} +an api client class which contains all the routes for path="{{original}}" + {{#if description}} +{{description.originalWithBr}} + {{/if}} +{{/with}} {{headerSize}}# Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | {{#each pathItem.operations}} -| {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | [{{method.camelCase}}](#{{method.kebabCase}})([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}#{{method.kebabCase}}request) request){{#if description}}
{{description.originalWithBr}}{{/if}} | +| {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | [{{method.camelCase}}](#{{method.kebabCase}})([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}.md#{{method.kebabCase}}request) request){{#if description}}
{{description.originalWithBr}}{{/if}} | {{/each}} {{headerSize}}# Method Detail {{#each pathItem.operations}} {{headerSize}}## {{method.camelCase}} -public {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} {{method.camelCase}}([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}#{{method.kebabCase}}request) request) +public {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} {{method.camelCase}}([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}.md#{{method.kebabCase}}request) request) {{#if description}} {{description.originalWithBr}} diff --git a/src/main/resources/java/src/main/java/packagename/apis/tags/ApiDoc.hbs b/src/main/resources/java/src/main/java/packagename/apis/tags/ApiDoc.hbs index 779ea843514..1bf4c7ef3c7 100644 --- a/src/main/resources/java/src/main/java/packagename/apis/tags/ApiDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/apis/tags/ApiDoc.hbs @@ -5,20 +5,25 @@ public class {{tag.className}} extends extends ApiClient implements [{{jsonPathPiece.pascalCase}}.{{operationId.pascalCase}}Operation]({{docRoot}}{{pathFromDocRoot}}.md#{{operationId.kebabCase}}operation){{#unless @last}},{{/unless}} {{/each}} -an api client class which contains all the routes for path="{{path.original}}" +{{#with tag}} +an api client class which contains all the routes for tag="{{name}}" + {{#if description}} +{{description.originalWithBr}} + {{/if}} +{{/with}} {{headerSize}}# Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | {{#each operations}} -| {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | [{{operationId.camelCase}}](#{{operationId.kebabCase}})([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}#{{method.kebabCase}}request) request){{#if description}}
{{description.originalWithBr}}{{/if}} | +| {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} | [{{operationId.camelCase}}](#{{operationId.kebabCase}})([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}.md#{{method.kebabCase}}request) request){{#if description}}
{{description.originalWithBr}}{{/if}} | {{/each}} {{headerSize}}# Method Detail {{#each operations}} {{headerSize}}## {{operationId.camelCase}} -public {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} {{operationId.camelCase}}([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}#{{method.kebabCase}}request) request) +public {{#if nonErrorResponses }}{{#with responses}}[{{jsonPathPiece.pascalCase}}.EndpointResponse]({{docRoot}}{{pathFromDocRoot}}.md#endpointresponse){{/with}}{{else}}Void{{/if}} {{operationId.camelCase}}([{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}Request]({{docRoot}}{{pathFromDocRoot}}.md#{{method.kebabCase}}request) request) {{#if description}} {{description.originalWithBr}} From b1817635e8d96470067a3320a87e9d4581798e25 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 13:40:53 -0700 Subject: [PATCH 20/21] Fixes python java test error --- .../codegen/generators/PythonClientGenerator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java index 68f3dc7318f..9cf163d032b 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/PythonClientGenerator.java @@ -2169,6 +2169,8 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St return toModelName(lastJsonPathFragment, null); case SECURITY: return "Security"; + case SERVER: + return "Server" + lastJsonPathFragment; default: return null; } From a6d736392895394094ed4f565a1235a1745c8570 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 13:50:21 -0700 Subject: [PATCH 21/21] Samples regen --- samples/client/3_0_3_unit_test/java/README.md | 31 ++++++++----------- samples/client/3_1_0_unit_test/java/README.md | 31 ++++++++----------- 2 files changed, 26 insertions(+), 36 deletions(-) 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 3e52e49173e..f099f0a5a49 100644 --- a/samples/client/3_0_3_unit_test/java/README.md +++ b/samples/client/3_0_3_unit_test/java/README.md @@ -65,8 +65,8 @@ Here is the mapping from json schema types to Java types: | Json Schema Type | Java Base Class | | ---------------- | --------------- | -| object | FrozenMap (HashMap) | -| array | FrozenList (ArrayList) | +| object | FrozenMap (Map) | +| array | FrozenList (List) | | string | String | | number | Number (int, long, float, double) | | integer | int, long, float, double (with values equal to integers) | @@ -102,7 +102,7 @@ invalid Java variable names. Names like: - " " - "from" -To allow these use cases to work, FrozenMap (which extends HashMap) is used as the base class of type object schemas. +To allow these use cases to work, FrozenMap (which extends AbstractMap) is used as the base class of type object schemas. This means that one can use normal Map methods on instances of these classes.
@@ -118,8 +118,6 @@ This means that one can use normal Map methods on instances of these classes. N schemas can be validated on the same payload. To allow multiple schemas to validate, the data must be stored using one base class whether or not a json schema format constraint exists in the schema. -See the below accessors for string data: -- type string + format: See schemas.as_date, schemas.as_datetime, schemas.as_decimal, schemas.as_uuid In json schema, type: number with no format validates both integers and floats, so int and float values are stored for type number. @@ -137,7 +135,7 @@ For example the string payload '2023-12-20' is validates to both of these schema - type: string format: date ``` -Because of use cases like this, a datetime.date is allowed as an input to this schema, but the data +Because of use cases like this, a LocalDate is allowed as an input to this schema, but the data is stored as a string.
@@ -153,8 +151,16 @@ allowed input and output types. | ------------ | ----- | ----------- | | 0 | [Server0](docs/servers/Server0.md) | | -## Component Schemas +## Endpoints +All URIs are relative to the selected server +- The server is selected by passing in serverInfo + serverIndexInfo into configurations.ApiConfiguration +- The security info is selected by passing in securityInfo + securityIndexInfo into configurations.ApiConfiguration +- serverIndex + securityIndex can also be passed in to endpoint calls, see endpoint documentation + +| HTTP request | Methods | Description | +| ------------ | ------- | ----------- | +## Component Schemas | Class | Description | | ----- | ----------- | | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1](docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md#additionalpropertiesallowsaschemawhichshouldvalidate1) | | @@ -244,14 +250,3 @@ allowed input and output types. | [UriFormat.UriFormat1](docs/components/schemas/UriFormat.md#uriformat1) | | | [UriReferenceFormat.UriReferenceFormat1](docs/components/schemas/UriReferenceFormat.md#urireferenceformat1) | | | [UriTemplateFormat.UriTemplateFormat1](docs/components/schemas/UriTemplateFormat.md#uritemplateformat1) | | - -## Endpoints - -All URIs are relative to the selected server -- The server is selected by passing in serverInfo into configurations.ApiConfiguration -- The security info is selected by passing in securityInfo into configurations.ApiConfiguration -- TODO Code samples in endpoints documents show how to do this -- serverIndex + securityIndex can also be passed in to endpoint calls, see endpoint documentation - -| HTTP request | Method | Description | -| ------------ | ------ | ----------- | 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 6b76c520aaf..13c34a587c5 100644 --- a/samples/client/3_1_0_unit_test/java/README.md +++ b/samples/client/3_1_0_unit_test/java/README.md @@ -65,8 +65,8 @@ Here is the mapping from json schema types to Java types: | Json Schema Type | Java Base Class | | ---------------- | --------------- | -| object | FrozenMap (HashMap) | -| array | FrozenList (ArrayList) | +| object | FrozenMap (Map) | +| array | FrozenList (List) | | string | String | | number | Number (int, long, float, double) | | integer | int, long, float, double (with values equal to integers) | @@ -102,7 +102,7 @@ invalid Java variable names. Names like: - " " - "from" -To allow these use cases to work, FrozenMap (which extends HashMap) is used as the base class of type object schemas. +To allow these use cases to work, FrozenMap (which extends AbstractMap) is used as the base class of type object schemas. This means that one can use normal Map methods on instances of these classes.
@@ -118,8 +118,6 @@ This means that one can use normal Map methods on instances of these classes. N schemas can be validated on the same payload. To allow multiple schemas to validate, the data must be stored using one base class whether or not a json schema format constraint exists in the schema. -See the below accessors for string data: -- type string + format: See schemas.as_date, schemas.as_datetime, schemas.as_decimal, schemas.as_uuid In json schema, type: number with no format validates both integers and floats, so int and float values are stored for type number. @@ -137,7 +135,7 @@ For example the string payload '2023-12-20' is validates to both of these schema - type: string format: date ``` -Because of use cases like this, a datetime.date is allowed as an input to this schema, but the data +Because of use cases like this, a LocalDate is allowed as an input to this schema, but the data is stored as a string.
@@ -153,8 +151,16 @@ allowed input and output types. | ------------ | ----- | ----------- | | 0 | [Server0](docs/servers/Server0.md) | | -## Component Schemas +## Endpoints +All URIs are relative to the selected server +- The server is selected by passing in serverInfo + serverIndexInfo into configurations.ApiConfiguration +- The security info is selected by passing in securityInfo + securityIndexInfo into configurations.ApiConfiguration +- serverIndex + securityIndex can also be passed in to endpoint calls, see endpoint documentation + +| HTTP request | Methods | Description | +| ------------ | ------- | ----------- | +## Component Schemas | Class | Description | | ----- | ----------- | | [ASchemaGivenForPrefixitems.ASchemaGivenForPrefixitems1](docs/components/schemas/ASchemaGivenForPrefixitems.md#aschemagivenforprefixitems1) | | @@ -300,14 +306,3 @@ allowed input and output types. | [UriTemplateFormat.UriTemplateFormat1](docs/components/schemas/UriTemplateFormat.md#uritemplateformat1) | | | [UuidFormat.UuidFormat1](docs/components/schemas/UuidFormat.md#uuidformat1) | | | [ValidateAgainstCorrectBranchThenVsElse.ValidateAgainstCorrectBranchThenVsElse1](docs/components/schemas/ValidateAgainstCorrectBranchThenVsElse.md#validateagainstcorrectbranchthenvselse1) | | - -## Endpoints - -All URIs are relative to the selected server -- The server is selected by passing in serverInfo into configurations.ApiConfiguration -- The security info is selected by passing in securityInfo into configurations.ApiConfiguration -- TODO Code samples in endpoints documents show how to do this -- serverIndex + securityIndex can also be passed in to endpoint calls, see endpoint documentation - -| HTTP request | Method | Description | -| ------------ | ------ | ----------- |