diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/additional_properties.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/additional_properties.mustache index 61973dc24fa..4086383f152 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/additional_properties.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/additional_properties.mustache @@ -9,6 +9,9 @@ /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public {{classname}} putAdditionalProperty(String key, {{{.}}} value) { @@ -20,7 +23,8 @@ } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -29,6 +33,8 @@ /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public {{{.}}} getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache index c507f54fda0..36d46027514 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache @@ -91,6 +91,11 @@ public class {{classname}} { {{#returnType}} * @return {{#asyncNative}}CompletableFuture<{{/asyncNative}}{{returnType}}{{#asyncNative}}>{{/asyncNative}} {{/returnType}} + {{^returnType}} + {{#asyncNative}} + * @return CompletableFuture<Void> + {{/asyncNative}} + {{/returnType}} * @throws ApiException if fails to make API call {{#isDeprecated}} * @deprecated @@ -145,6 +150,11 @@ public class {{classname}} { {{#returnType}} * @return {{#asyncNative}}CompletableFuture<{{/asyncNative}}{{returnType}}{{#asyncNative}}>{{/asyncNative}} {{/returnType}} + {{^returnType}} + {{#asyncNative}} + * @return CompletableFuture<Void> + {{/asyncNative}} + {{/returnType}} * @throws ApiException if fails to make API call {{#isDeprecated}} * @deprecated diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java index 8f6c3721de8..78ba54ee4e3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java @@ -87,6 +87,7 @@ public class FakeApi { * creates an XmlItem * this route creates an XmlItem * @param xmlItem XmlItem Body (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture createXmlItem(XmlItem xmlItem) throws ApiException { @@ -532,6 +533,7 @@ public class FakeApi { * * For this test, the body for this request much reference a schema named `File`. * @param body (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { @@ -615,6 +617,7 @@ public class FakeApi { * * @param query (required) * @param body (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture testBodyWithQueryParams(String query, User body) throws ApiException { @@ -820,6 +823,7 @@ public class FakeApi { * @param dateTime None (optional) * @param password None (optional) * @param paramCallback None (optional) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException { @@ -928,6 +932,7 @@ public class FakeApi { * @param enumQueryDouble Query parameter enum test (double) (optional) * @param enumFormStringArray Form parameter enum test (string array) (optional * @param enumFormString Form parameter enum test (string) (optional, default to -efg) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { @@ -1025,6 +1030,7 @@ public class FakeApi { * Fake endpoint to test group parameters (optional) * Fake endpoint to test group parameters (optional) * @param apiRequest {@link APItestGroupParametersRequest} + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture testGroupParameters(APItestGroupParametersRequest apiRequest) throws ApiException { @@ -1063,6 +1069,7 @@ public class FakeApi { * @param stringGroup String in group parameters (optional) * @param booleanGroup Boolean in group parameters (optional) * @param int64Group Integer in group parameters (optional) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { @@ -1247,6 +1254,7 @@ public class FakeApi { * test inline additionalProperties * * @param param request body (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture testInlineAdditionalProperties(Map param) throws ApiException { @@ -1330,6 +1338,7 @@ public class FakeApi { * * @param param field1 (required) * @param param2 field2 (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture testJsonFormData(String param, String param2) throws ApiException { @@ -1415,6 +1424,7 @@ public class FakeApi { * @param http (required) * @param url (required) * @param context (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java index 00775e875a3..91f03b8ad9b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java @@ -82,6 +82,7 @@ public class PetApi { * Add a new pet to the store * * @param body Pet object that needs to be added to the store (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture addPet(Pet body) throws ApiException { @@ -165,6 +166,7 @@ public class PetApi { * * @param petId Pet id to delete (required) * @param apiKey (optional) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture deletePet(Long petId, String apiKey) throws ApiException { @@ -539,6 +541,7 @@ public class PetApi { * Update an existing pet * * @param body Pet object that needs to be added to the store (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture updatePet(Pet body) throws ApiException { @@ -623,6 +626,7 @@ public class PetApi { * @param petId ID of pet that needs to be updated (required) * @param name Updated name of the pet (optional) * @param status Updated status of the pet (optional) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture updatePetWithForm(Long petId, String name, String status) throws ApiException { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java index 65430c5eaa5..dbfab114479 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java @@ -79,6 +79,7 @@ public class StoreApi { * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors * @param orderId ID of the order that needs to be deleted (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture deleteOrder(String orderId) throws ApiException { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/UserApi.java index 5e05a49b80c..4ad3dc79553 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/UserApi.java @@ -80,6 +80,7 @@ public class UserApi { * Create user * This can only be done by the logged in user. * @param body Created user object (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture createUser(User body) throws ApiException { @@ -162,6 +163,7 @@ public class UserApi { * Creates list of users with given input array * * @param body List of user object (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture createUsersWithArrayInput(List body) throws ApiException { @@ -244,6 +246,7 @@ public class UserApi { * Creates list of users with given input array * * @param body List of user object (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture createUsersWithListInput(List body) throws ApiException { @@ -326,6 +329,7 @@ public class UserApi { * Delete user * This can only be done by the logged in user. * @param username The name that needs to be deleted (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture deleteUser(String username) throws ApiException { @@ -599,6 +603,7 @@ public class UserApi { /** * Logs out current logged in user session * + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture logoutUser() throws ApiException { @@ -671,6 +676,7 @@ public class UserApi { * This can only be done by the logged in user. * @param username name that need to be deleted (required) * @param body Updated user object (required) + * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ public CompletableFuture updateUser(String username, User body) throws ApiException { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index c4899ad6165..8f85fc034be 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesAnyType extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesAnyType extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 61b9f3bb9c7..a5d61a79c59 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -83,6 +83,9 @@ public class AdditionalPropertiesArray extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesArray putAdditionalProperty(String key, List value) { @@ -94,7 +97,8 @@ public class AdditionalPropertiesArray extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -103,6 +107,8 @@ public class AdditionalPropertiesArray extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public List getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index ff57c303501..deee9965d6d 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesBoolean extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesBoolean putAdditionalProperty(String key, Boolean value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesBoolean extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public Boolean getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index cc0598a14a0..4a1fc2a47be 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesInteger extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesInteger putAdditionalProperty(String key, Integer value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesInteger extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesInteger extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public Integer getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 1ec3719074d..5229ad5e196 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -83,6 +83,9 @@ public class AdditionalPropertiesNumber extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesNumber putAdditionalProperty(String key, BigDecimal value) { @@ -94,7 +97,8 @@ public class AdditionalPropertiesNumber extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -103,6 +107,8 @@ public class AdditionalPropertiesNumber extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public BigDecimal getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 6000e007e6e..57c34c7b7e3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesObject extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesObject putAdditionalProperty(String key, Map value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesObject extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesObject extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public Map getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index f3719fe70b0..6d490abd264 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesString extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesString putAdditionalProperty(String key, String value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesString extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesString extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public String getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index c4899ad6165..8f85fc034be 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesAnyType extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesAnyType extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 61b9f3bb9c7..a5d61a79c59 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -83,6 +83,9 @@ public class AdditionalPropertiesArray extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesArray putAdditionalProperty(String key, List value) { @@ -94,7 +97,8 @@ public class AdditionalPropertiesArray extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -103,6 +107,8 @@ public class AdditionalPropertiesArray extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public List getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index ff57c303501..deee9965d6d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesBoolean extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesBoolean putAdditionalProperty(String key, Boolean value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesBoolean extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public Boolean getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index cc0598a14a0..4a1fc2a47be 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesInteger extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesInteger putAdditionalProperty(String key, Integer value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesInteger extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesInteger extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public Integer getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 1ec3719074d..5229ad5e196 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -83,6 +83,9 @@ public class AdditionalPropertiesNumber extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesNumber putAdditionalProperty(String key, BigDecimal value) { @@ -94,7 +97,8 @@ public class AdditionalPropertiesNumber extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -103,6 +107,8 @@ public class AdditionalPropertiesNumber extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public BigDecimal getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 6000e007e6e..57c34c7b7e3 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesObject extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesObject putAdditionalProperty(String key, Map value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesObject extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesObject extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public Map getAdditionalProperty(String key) { if (this.additionalProperties == null) { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index f3719fe70b0..6d490abd264 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -82,6 +82,9 @@ public class AdditionalPropertiesString extends HashMap { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value value of the property + * @return self reference */ @JsonAnySetter public AdditionalPropertiesString putAdditionalProperty(String key, String value) { @@ -93,7 +96,8 @@ public class AdditionalPropertiesString extends HashMap { } /** - * Return the additional (undeclared) property. + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties */ @JsonAnyGetter public Map getAdditionalProperties() { @@ -102,6 +106,8 @@ public class AdditionalPropertiesString extends HashMap { /** * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name */ public String getAdditionalProperty(String key) { if (this.additionalProperties == null) {