forked from loafle/openapi-generator-original
add enum support for model property
This commit is contained in:
@@ -72,7 +72,7 @@ class PetApi {
|
||||
*/
|
||||
public function updatePet($body) {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/pet";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -133,7 +133,7 @@ class PetApi {
|
||||
*/
|
||||
public function addPet($body) {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/pet";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -194,7 +194,7 @@ class PetApi {
|
||||
*/
|
||||
public function findPetsByStatus($status) {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/pet/findByStatus";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -264,7 +264,7 @@ class PetApi {
|
||||
*/
|
||||
public function findPetsByTags($tags) {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/pet/findByTags";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -333,13 +333,11 @@ class PetApi {
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
public function getPetById($pet_id) {
|
||||
|
||||
// verify the required parameter 'pet_id' is set
|
||||
if ($pet_id === null) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $pet_id when calling getPetById');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/pet/{petId}";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -419,13 +417,11 @@ class PetApi {
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
public function updatePetWithForm($pet_id, $name, $status) {
|
||||
|
||||
// verify the required parameter 'pet_id' is set
|
||||
if ($pet_id === null) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $pet_id when calling updatePetWithForm');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/pet/{petId}";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -493,13 +489,11 @@ class PetApi {
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
public function deletePet($api_key, $pet_id) {
|
||||
|
||||
// verify the required parameter 'pet_id' is set
|
||||
if ($pet_id === null) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $pet_id when calling deletePet');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/pet/{petId}";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -565,13 +559,11 @@ class PetApi {
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
public function uploadFile($pet_id, $additional_metadata, $file) {
|
||||
|
||||
// verify the required parameter 'pet_id' is set
|
||||
if ($pet_id === null) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $pet_id when calling uploadFile');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/pet/{petId}/uploadImage";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
|
||||
@@ -71,7 +71,7 @@ class StoreApi {
|
||||
*/
|
||||
public function getInventory() {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/store/inventory";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -142,7 +142,7 @@ class StoreApi {
|
||||
*/
|
||||
public function placeOrder($body) {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/store/order";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -209,13 +209,11 @@ class StoreApi {
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
public function getOrderById($order_id) {
|
||||
|
||||
// verify the required parameter 'order_id' is set
|
||||
if ($order_id === null) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $order_id when calling getOrderById');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/store/order/{orderId}";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -283,13 +281,11 @@ class StoreApi {
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
public function deleteOrder($order_id) {
|
||||
|
||||
// verify the required parameter 'order_id' is set
|
||||
if ($order_id === null) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $order_id when calling deleteOrder');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/store/order/{orderId}";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
|
||||
@@ -72,7 +72,7 @@ class UserApi {
|
||||
*/
|
||||
public function createUser($body) {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/user";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -130,7 +130,7 @@ class UserApi {
|
||||
*/
|
||||
public function createUsersWithArrayInput($body) {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/user/createWithArray";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -188,7 +188,7 @@ class UserApi {
|
||||
*/
|
||||
public function createUsersWithListInput($body) {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/user/createWithList";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -247,7 +247,7 @@ class UserApi {
|
||||
*/
|
||||
public function loginUser($username, $password) {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/user/login";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -316,7 +316,7 @@ class UserApi {
|
||||
*/
|
||||
public function logoutUser() {
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/user/logout";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -369,13 +369,11 @@ class UserApi {
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
public function getUserByName($username) {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if ($username === null) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $username when calling getUserByName');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/user/{username}";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -444,13 +442,11 @@ class UserApi {
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
public function updateUser($username, $body) {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if ($username === null) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $username when calling updateUser');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/user/{username}";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
@@ -512,13 +508,11 @@ class UserApi {
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
public function deleteUser($username) {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if ($username === null) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $username when calling deleteUser');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// parse inputs
|
||||
$resourcePath = "/user/{username}";
|
||||
$resourcePath = str_replace("{format}", "json", $resourcePath);
|
||||
|
||||
Reference in New Issue
Block a user