forked from loafle/openapi-generator-original
[JAVA][Client] New object instead of null for empty POST request (#98)
new Object() for empty request body
This commit is contained in:
committed by
Jérémie Bresson
parent
69a3852ef7
commit
0fb1ffa88b
@@ -384,7 +384,7 @@ public class FakeApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testEndpointParametersWithHttpInfo(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 {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'number' is set
|
||||
if (number == null) {
|
||||
@@ -492,7 +492,7 @@ if (paramCallback != null)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake";
|
||||
@@ -603,7 +603,7 @@ if (enumFormString != null)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
|
||||
@@ -108,7 +108,7 @@ public class PetApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
@@ -163,7 +163,7 @@ public class PetApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'status' is set
|
||||
if (status == null) {
|
||||
@@ -220,7 +220,7 @@ public class PetApi {
|
||||
*/
|
||||
@Deprecated
|
||||
public ApiResponse<List<Pet>> findPetsByTagsWithHttpInfo(List<String> tags) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'tags' is set
|
||||
if (tags == null) {
|
||||
@@ -273,7 +273,7 @@ public class PetApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
@@ -380,7 +380,7 @@ public class PetApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
@@ -441,7 +441,7 @@ if (status != null)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
|
||||
@@ -53,7 +53,7 @@ public class StoreApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null) {
|
||||
@@ -104,7 +104,7 @@ public class StoreApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Map<String, Integer>> getInventoryWithHttpInfo() throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/store/inventory";
|
||||
@@ -151,7 +151,7 @@ public class StoreApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null) {
|
||||
|
||||
@@ -206,7 +206,7 @@ public class UserApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
@@ -259,7 +259,7 @@ public class UserApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
@@ -314,7 +314,7 @@ public class UserApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<String> loginUserWithHttpInfo(String username, String password) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
@@ -370,7 +370,7 @@ public class UserApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> logoutUserWithHttpInfo() throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
Object localVarPostBody = new Object();
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/user/logout";
|
||||
|
||||
Reference in New Issue
Block a user