Fix missing RequestBody.required of inline request body (#1847)

* Add test case that reproduce the issue #1782

* Fix missing RequestBody.required

* Update samples

./bin/utils/ensure-up-to-date

* Run ensure-up-to-date script

./bin/utils/ensure-up-to-date
This commit is contained in:
Akihito Nakano
2019-01-14 13:28:21 +09:00
committed by William Cheng
parent 1be9d66911
commit 7674d11d75
36 changed files with 470 additions and 97 deletions

View File

@@ -26,12 +26,12 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*/
@Test
public void testSpecialTagsTest() {
Client client = null;
// Client response = api.testSpecialTags(client);
public void call123testSpecialTagsTest() {
Client body = null;
// Client response = api.call123testSpecialTags(body);
// TODO: test validations
}

View File

@@ -51,8 +51,8 @@ public class FakeApiTest {
*/
@Test
public void fakeOuterCompositeSerializeTest() {
OuterComposite outerComposite = null;
// OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite);
OuterComposite body = null;
// OuterComposite response = api.fakeOuterCompositeSerialize(body);
// TODO: test validations
}
@@ -93,8 +93,8 @@ public class FakeApiTest {
*/
@Test
public void testBodyWithFileSchemaTest() {
FileSchemaTestClass fileSchemaTestClass = null;
// api.testBodyWithFileSchema(fileSchemaTestClass);
FileSchemaTestClass body = null;
// api.testBodyWithFileSchema(body);
// TODO: test validations
}
@@ -108,8 +108,8 @@ public class FakeApiTest {
@Test
public void testBodyWithQueryParamsTest() {
String query = null;
User user = null;
// api.testBodyWithQueryParams(query, user);
User body = null;
// api.testBodyWithQueryParams(query, body);
// TODO: test validations
}
@@ -124,10 +124,10 @@ public class FakeApiTest {
*/
@Test
public void testBodyWithQueryParamsTestQueryMap() {
User user = null;
User body = null;
FakeApi.TestBodyWithQueryParamsQueryParams queryParams = new FakeApi.TestBodyWithQueryParamsQueryParams()
.query(null);
// api.testBodyWithQueryParams(user, queryParams);
// api.testBodyWithQueryParams(body, queryParams);
// TODO: test validations
}
@@ -139,8 +139,8 @@ public class FakeApiTest {
*/
@Test
public void testClientModelTest() {
Client client = null;
// Client response = api.testClientModel(client);
Client body = null;
// Client response = api.testClientModel(body);
// TODO: test validations
}
@@ -264,8 +264,8 @@ public class FakeApiTest {
*/
@Test
public void testInlineAdditionalPropertiesTest() {
Map<String, String> requestBody = null;
// api.testInlineAdditionalProperties(requestBody);
Map<String, String> param = null;
// api.testInlineAdditionalProperties(param);
// TODO: test validations
}

View File

@@ -30,8 +30,8 @@ public class FakeClassnameTags123ApiTest {
*/
@Test
public void testClassnameTest() {
Client client = null;
// Client response = api.testClassname(client);
Client body = null;
// Client response = api.testClassname(body);
// TODO: test validations
}

View File

@@ -32,8 +32,8 @@ public class PetApiTest {
*/
@Test
public void addPetTest() {
Pet pet = null;
// api.addPet(pet);
Pet body = null;
// api.addPet(body);
// TODO: test validations
}
@@ -135,8 +135,8 @@ public class PetApiTest {
*/
@Test
public void updatePetTest() {
Pet pet = null;
// api.updatePet(pet);
Pet body = null;
// api.updatePet(body);
// TODO: test validations
}
@@ -174,4 +174,20 @@ public class PetApiTest {
}
/**
* uploads an image (required)
*
*
*/
@Test
public void uploadFileWithRequiredFileTest() {
Long petId = null;
File requiredFile = null;
String additionalMetadata = null;
// ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
// TODO: test validations
}
}

View File

@@ -71,8 +71,8 @@ public class StoreApiTest {
*/
@Test
public void placeOrderTest() {
Order order = null;
// Order response = api.placeOrder(order);
Order body = null;
// Order response = api.placeOrder(body);
// TODO: test validations
}

View File

@@ -30,8 +30,8 @@ public class UserApiTest {
*/
@Test
public void createUserTest() {
User user = null;
// api.createUser(user);
User body = null;
// api.createUser(body);
// TODO: test validations
}
@@ -44,8 +44,8 @@ public class UserApiTest {
*/
@Test
public void createUsersWithArrayInputTest() {
List<User> user = null;
// api.createUsersWithArrayInput(user);
List<User> body = null;
// api.createUsersWithArrayInput(body);
// TODO: test validations
}
@@ -58,8 +58,8 @@ public class UserApiTest {
*/
@Test
public void createUsersWithListInputTest() {
List<User> user = null;
// api.createUsersWithListInput(user);
List<User> body = null;
// api.createUsersWithListInput(body);
// TODO: test validations
}
@@ -146,8 +146,8 @@ public class UserApiTest {
@Test
public void updateUserTest() {
String username = null;
User user = null;
// api.updateUser(username, user);
User body = null;
// api.updateUser(username, body);
// TODO: test validations
}