mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 21:37:06 +00:00
Merge remote-tracking branch 'origin/master' into 3.4.x
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **int** | | [optional]
|
||||
**name** | **string** | | [optional]
|
||||
**name** | **string** | | [default to 'default-name']
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ class Category implements ModelInterface, ArrayAccess
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||
$this->container['name'] = isset($data['name']) ? $data['name'] : 'default-name';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -195,6 +195,9 @@ class Category implements ModelInterface, ArrayAccess
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['name'] === null) {
|
||||
$invalidProperties[] = "'name' can't be null";
|
||||
}
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
@@ -237,7 +240,7 @@ class Category implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Gets name
|
||||
*
|
||||
* @return string|null
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
@@ -247,7 +250,7 @@ class Category implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets name
|
||||
*
|
||||
* @param string|null $name name
|
||||
* @param string $name name
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user