Better allOf handling in fromProperty (#15035)

* fix allOf handling in fromProperty

* add null check, update samples

* update dart generator to handle allof with a single ref
This commit is contained in:
William Cheng
2023-03-26 15:06:27 +08:00
committed by GitHub
parent 56e5122a6a
commit a4dd90c01d
27 changed files with 129 additions and 37 deletions

View File

@@ -58,7 +58,7 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, \JsonSerializab
*/
protected static $openAPITypes = [
'username' => 'string',
'single_ref_type' => 'SingleRefType'
'single_ref_type' => '\OpenAPI\Client\Model\SingleRefType'
];
/**
@@ -326,7 +326,7 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, \JsonSerializab
/**
* Gets single_ref_type
*
* @return SingleRefType|null
* @return \OpenAPI\Client\Model\SingleRefType|null
*/
public function getSingleRefType()
{
@@ -336,7 +336,7 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, \JsonSerializab
/**
* Sets single_ref_type
*
* @param SingleRefType|null $single_ref_type single_ref_type
* @param \OpenAPI\Client\Model\SingleRefType|null $single_ref_type single_ref_type
*
* @return self
*/