mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 18:45:23 +00:00
[PHP] Regenerate petstore samples
This commit is contained in:
parent
cfe8dfc112
commit
aacc235665
@ -4,7 +4,7 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod
|
||||
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
||||
|
||||
- API version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r
|
||||
- Build date: 2016-07-29T14:59:34.783+02:00
|
||||
- Build date: 2016-08-01T11:48:23.775+02:00
|
||||
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
|
||||
|
||||
## Requirements
|
||||
|
@ -4,7 +4,7 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod
|
||||
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
||||
|
||||
- API version: 1.0.0
|
||||
- Build date: 2016-07-29T14:59:28.041+02:00
|
||||
- Build date: 2016-08-01T11:48:17.791+02:00
|
||||
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
|
||||
|
||||
## Requirements
|
||||
|
@ -200,16 +200,16 @@ class FormatTest implements ArrayAccess
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalid_properties = array();
|
||||
if (!is_null(${{$this->container['integer']}}) && ($this->container['integer'] > 100.0)) {
|
||||
if (!is_null($this->container['integer']) && ($this->container['integer'] > 100.0)) {
|
||||
$invalid_properties[] = "invalid value for 'integer', must be smaller than or equal to 100.0.";
|
||||
}
|
||||
if (!is_null(${{$this->container['integer']}}) && ($this->container['integer'] < 10.0)) {
|
||||
if (!is_null($this->container['integer']) && ($this->container['integer'] < 10.0)) {
|
||||
$invalid_properties[] = "invalid value for 'integer', must be bigger than or equal to 10.0.";
|
||||
}
|
||||
if (!is_null(${{$this->container['int32']}}) && ($this->container['int32'] > 200.0)) {
|
||||
if (!is_null($this->container['int32']) && ($this->container['int32'] > 200.0)) {
|
||||
$invalid_properties[] = "invalid value for 'int32', must be smaller than or equal to 200.0.";
|
||||
}
|
||||
if (!is_null(${{$this->container['int32']}}) && ($this->container['int32'] < 20.0)) {
|
||||
if (!is_null($this->container['int32']) && ($this->container['int32'] < 20.0)) {
|
||||
$invalid_properties[] = "invalid value for 'int32', must be bigger than or equal to 20.0.";
|
||||
}
|
||||
if ($this->container['number'] === null) {
|
||||
@ -221,19 +221,19 @@ class FormatTest implements ArrayAccess
|
||||
if (($this->container['number'] < 32.1)) {
|
||||
$invalid_properties[] = "invalid value for 'number', must be bigger than or equal to 32.1.";
|
||||
}
|
||||
if (!is_null(${{$this->container['float']}}) && ($this->container['float'] > 987.6)) {
|
||||
if (!is_null($this->container['float']) && ($this->container['float'] > 987.6)) {
|
||||
$invalid_properties[] = "invalid value for 'float', must be smaller than or equal to 987.6.";
|
||||
}
|
||||
if (!is_null(${{$this->container['float']}}) && ($this->container['float'] < 54.3)) {
|
||||
if (!is_null($this->container['float']) && ($this->container['float'] < 54.3)) {
|
||||
$invalid_properties[] = "invalid value for 'float', must be bigger than or equal to 54.3.";
|
||||
}
|
||||
if (!is_null(${{$this->container['double']}}) && ($this->container['double'] > 123.4)) {
|
||||
if (!is_null($this->container['double']) && ($this->container['double'] > 123.4)) {
|
||||
$invalid_properties[] = "invalid value for 'double', must be smaller than or equal to 123.4.";
|
||||
}
|
||||
if (!is_null(${{$this->container['double']}}) && ($this->container['double'] < 67.8)) {
|
||||
if (!is_null($this->container['double']) && ($this->container['double'] < 67.8)) {
|
||||
$invalid_properties[] = "invalid value for 'double', must be bigger than or equal to 67.8.";
|
||||
}
|
||||
if (!is_null(${{$this->container['string']}}) && !preg_match("/[a-z]/i", $this->container['string'])) {
|
||||
if (!is_null($this->container['string']) && !preg_match("/[a-z]/i", $this->container['string'])) {
|
||||
$invalid_properties[] = "invalid value for 'string', must be conform to the pattern /[a-z]/i.";
|
||||
}
|
||||
if ($this->container['byte'] === null) {
|
||||
|
Loading…
Reference in New Issue
Block a user