Better handling of allOf in request body (#16991)

* better handling of allOf in request body, add tests

* additional checks

* fix description
This commit is contained in:
William Cheng
2023-11-05 22:43:45 +08:00
committed by GitHub
parent 339596aeec
commit 49208144e1
41 changed files with 2682 additions and 1 deletions

View File

@@ -101,6 +101,35 @@ public interface BodyApi extends ApiClient.Api {
/**
* Test body parameter(s)
* Test body parameter(s)
* @param pet Pet object that needs to be added to the store (optional)
* @return Pet
*/
@RequestLine("POST /echo/body/allOf/Pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
Pet testEchoBodyAllOfPet(Pet pet);
/**
* Test body parameter(s)
* Similar to <code>testEchoBodyAllOfPet</code> but it also returns the http response headers .
* Test body parameter(s)
* @param pet Pet object that needs to be added to the store (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("POST /echo/body/allOf/Pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse<Pet> testEchoBodyAllOfPetWithHttpInfo(Pet pet);
/**
* Test free form object
* Test free form object