forked from loafle/openapi-generator-original
Better inline model resolver to handle inline schema in array item (#12104)
* better support of inline schema in array item * update tests * update samples * regenerate samples * fix allof naming, remove files * add files * update samples * update readme * fix tests * update samples * update samples * add new files * update test spec * add back tests * remove unused files * comment out python test * update js test using own spec * remove files * remove unused files * remove files * remove unused files * better handling of allOf with a single type * comment out go test * remove test_all_of_with_single_ref_single_ref_type.py * fix inline resolver, uncomment go test
This commit is contained in:
@@ -23,6 +23,7 @@ lib/app/Http/Middleware/TrimStrings.php
|
||||
lib/app/Http/Middleware/TrustProxies.php
|
||||
lib/app/Http/Middleware/VerifyCsrfToken.php
|
||||
lib/app/Models/AdditionalPropertiesClass.php
|
||||
lib/app/Models/AllOfWithSingleRef.php
|
||||
lib/app/Models/Animal.php
|
||||
lib/app/Models/ApiResponse.php
|
||||
lib/app/Models/ArrayOfArrayOfNumberOnly.php
|
||||
@@ -65,10 +66,10 @@ lib/app/Models/OuterEnumIntegerDefaultValue.php
|
||||
lib/app/Models/OuterObjectWithEnumProperty.php
|
||||
lib/app/Models/Pet.php
|
||||
lib/app/Models/ReadOnlyFirst.php
|
||||
lib/app/Models/SingleRefType.php
|
||||
lib/app/Models/SpecialModelName.php
|
||||
lib/app/Models/Tag.php
|
||||
lib/app/Models/User.php
|
||||
lib/app/Models/UserType.php
|
||||
lib/app/Providers/AppServiceProvider.php
|
||||
lib/app/Providers/AuthServiceProvider.php
|
||||
lib/app/Providers/BroadcastServiceProvider.php
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* AllOfWithSingleRef
|
||||
*/
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* AllOfWithSingleRef
|
||||
*/
|
||||
class AllOfWithSingleRef {
|
||||
|
||||
/** @var string $username */
|
||||
private $username;
|
||||
|
||||
/** @var SingleRefType $singleRefType */
|
||||
private $singleRefType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* SingleRefType
|
||||
*/
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* SingleRefType
|
||||
*/
|
||||
class SingleRefType {
|
||||
|
||||
}
|
||||
@@ -33,7 +33,4 @@ class User {
|
||||
/** @var int $userStatus User Status*/
|
||||
private $userStatus;
|
||||
|
||||
/** @var UserType $userType */
|
||||
private $userType;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* UserType
|
||||
*/
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* UserType
|
||||
*/
|
||||
class UserType {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user