mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 08:46:55 +00:00
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:
@@ -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