mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 14:36:12 +00:00
[PHP] [Laravel] Fix syntax errors in models (#721)
* Fix syntax errors in Models * Update samples ./bin/php-laravel-petstore-server.sh
This commit is contained in:
committed by
William Cheng
parent
a258cf3fc6
commit
2b429ee43b
@@ -31,14 +31,14 @@ class AnotherFakeController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation testSpecialTags
|
||||
* Operation 123testSpecialTags
|
||||
*
|
||||
* To test special tags.
|
||||
*
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function testSpecialTags()
|
||||
public function 123testSpecialTags()
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
@@ -47,11 +47,11 @@ class AnotherFakeController extends Controller
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['client'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $client when calling testSpecialTags');
|
||||
throw new \InvalidArgumentException('Missing the required parameter $client when calling 123testSpecialTags');
|
||||
}
|
||||
$client = $input['client'];
|
||||
|
||||
|
||||
return response('How about implementing testSpecialTags as a patch method ?');
|
||||
return response('How about implementing 123testSpecialTags as a patch method ?');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* AdditionalPropertiesClass
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesClass
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Animal
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Animal
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* AnimalFarm
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* AnimalFarm
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* ApiResponse
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* ApiResponse
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* ArrayOfArrayOfNumberOnly
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* ArrayOfArrayOfNumberOnly
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* ArrayOfNumberOnly
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* ArrayOfNumberOnly
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* ArrayTest
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* ArrayTest
|
||||
@@ -15,7 +15,7 @@ class ArrayTest {
|
||||
/** @var int[][] $array_array_of_integer */
|
||||
private $array_array_of_integer;
|
||||
|
||||
/** @var \app.Models\ReadOnlyFirst[][] $array_array_of_model */
|
||||
/** @var \app\Models\ReadOnlyFirst[][] $array_array_of_model */
|
||||
private $array_array_of_model;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Capitalization
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Capitalization
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Cat
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Cat
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Category
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Category
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* ClassModel
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* ClassModel
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Client
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Client
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Dog
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Dog
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* EnumArrays
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* EnumArrays
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* EnumClass
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* EnumClass
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* EnumTest
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* EnumTest
|
||||
@@ -21,7 +21,7 @@ class EnumTest {
|
||||
/** @var double $enum_number */
|
||||
private $enum_number;
|
||||
|
||||
/** @var \app.Models\OuterEnum $outer_enum */
|
||||
/** @var \app\Models\OuterEnum $outer_enum */
|
||||
private $outer_enum;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
/**
|
||||
* FileSchemaTestClass
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* FileSchemaTestClass
|
||||
*/
|
||||
class FileSchemaTestClass {
|
||||
|
||||
/** @var \app.Models\File $file */
|
||||
/** @var \app\Models\File $file */
|
||||
private $file;
|
||||
|
||||
/** @var \app.Models\File[] $files */
|
||||
/** @var \app\Models\File[] $files */
|
||||
private $files;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* FormatTest
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* FormatTest
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* HasOnlyReadOnly
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* HasOnlyReadOnly
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* MapTest
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* MapTest
|
||||
@@ -18,7 +18,7 @@ class MapTest {
|
||||
/** @var map[string,bool] $direct_map */
|
||||
private $direct_map;
|
||||
|
||||
/** @var \app.Models\StringBooleanMap $indirect_map */
|
||||
/** @var \app\Models\StringBooleanMap $indirect_map */
|
||||
private $indirect_map;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* MixedPropertiesAndAdditionalPropertiesClass
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* MixedPropertiesAndAdditionalPropertiesClass
|
||||
@@ -15,7 +15,7 @@ class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
/** @var \DateTime $date_time */
|
||||
private $date_time;
|
||||
|
||||
/** @var map[string,\app.Models\Animal] $map */
|
||||
/** @var map[string,\app\Models\Animal] $map */
|
||||
private $map;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Model200Response
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Model200Response
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* ModelReturn
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* ModelReturn
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Name
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* NumberOnly
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* NumberOnly
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Order
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Order
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* OuterComposite
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* OuterComposite
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* OuterEnum
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* OuterEnum
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Pet
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Pet
|
||||
@@ -12,7 +12,7 @@ class Pet {
|
||||
/** @var int $id */
|
||||
private $id;
|
||||
|
||||
/** @var \app.Models\Category $category */
|
||||
/** @var \app\Models\Category $category */
|
||||
private $category;
|
||||
|
||||
/** @var string $name */
|
||||
@@ -21,7 +21,7 @@ class Pet {
|
||||
/** @var string[] $photo_urls */
|
||||
private $photo_urls;
|
||||
|
||||
/** @var \app.Models\Tag[] $tags */
|
||||
/** @var \app\Models\Tag[] $tags */
|
||||
private $tags;
|
||||
|
||||
/** @var string $status pet status in the store*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* ReadOnlyFirst
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* ReadOnlyFirst
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* SpecialModelName
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* SpecialModelName
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* StringBooleanMap
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* StringBooleanMap
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Tag
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* Tag
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* User
|
||||
*/
|
||||
namespace app.Models;
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* User
|
||||
|
||||
Reference in New Issue
Block a user