Add PHP scripts to bin/ensure-up-to-date (#155)

* Add PHP scripts

* Run php-petstore.sh (OAS2,3)
This commit is contained in:
Akihito Nakano 2018-05-26 12:46:47 +09:00 committed by GitHub
parent 9a2064cbf9
commit 6f23b5061a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 2 deletions

View File

@ -17,6 +17,13 @@ sleep 5
./bin/kotlin-client-string.sh
./bin/kotlin-client-threetenbp.sh
./bin/kotlin-server-petstore.sh
./bin/php-petstore.sh
./bin/php-silex-petstore-server.sh
./bin/php-symfony-petstore.sh
./bin/lumen-petstore-server.sh
./bin/slim-petstore-server.sh
./bin/ze-ph-petstore-server.sh
./bin/openapi3/php-petstore.sh
# Check:
if [ -n "$(git status --porcelain)" ]; then

View File

@ -434,7 +434,7 @@ Name | Type | Description | Notes
**enum_query_string** | **string**| Query parameter enum test (string) | [optional] [default to '-efg']
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
**enum_query_double** | **double**| Query parameter enum test (double) | [optional]
**enum_form_string_array** | **string[]**| Form parameter enum test (string array) | [optional] [default to '$']
**enum_form_string_array** | [**string[]**](../Model/string.md)| Form parameter enum test (string array) | [optional] [default to '$']
**enum_form_string** | **string**| Form parameter enum test (string) | [optional] [default to '-efg']
### Return type

View File

@ -385,7 +385,7 @@ Name | Type | Description | Notes
**enum_query_string** | **string**| Query parameter enum test (string) | [optional] [default to '-efg']
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
**enum_query_double** | **double**| Query parameter enum test (double) | [optional]
**enum_form_string_array** | **string[]**| Form parameter enum test (string array) | [optional] [default to '$']
**enum_form_string_array** | [**string[]**](../Model/string.md)| Form parameter enum test (string array) | [optional] [default to '$']
**enum_form_string** | **string**| Form parameter enum test (string) | [optional] [default to '-efg']
### Return type

View File

@ -1566,6 +1566,10 @@ class FakeApi
'Missing the required parameter $pattern_without_delimiter when calling testEndpointParameters'
);
}
if (!preg_match("/^[A-Z].*/", $pattern_without_delimiter)) {
throw new \InvalidArgumentException("invalid value for \"pattern_without_delimiter\" when calling FakeApi.testEndpointParameters, must conform to the pattern /^[A-Z].*/.");
}
// verify the required parameter 'byte' is set
if ($byte === null || (is_array($byte) && count($byte) === 0)) {
throw new \InvalidArgumentException(
@ -1590,6 +1594,10 @@ class FakeApi
throw new \InvalidArgumentException('invalid value for "$float" when calling FakeApi.testEndpointParameters, must be smaller than or equal to 987.6.');
}
if ($string !== null && !preg_match("/[a-z]/i", $string)) {
throw new \InvalidArgumentException("invalid value for \"string\" when calling FakeApi.testEndpointParameters, must conform to the pattern /[a-z]/i.");
}
if ($password !== null && strlen($password) > 64) {
throw new \InvalidArgumentException('invalid length for "$password" when calling FakeApi.testEndpointParameters, must be smaller than or equal to 64.');
}

View File

@ -304,6 +304,10 @@ class FormatTest implements ModelInterface, ArrayAccess
$invalidProperties[] = "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'])) {
$invalidProperties[] = "invalid value for 'string', must be conform to the pattern /[a-z]/i.";
}
if ($this->container['byte'] === null) {
$invalidProperties[] = "'byte' can't be null";
}
@ -539,6 +543,11 @@ class FormatTest implements ModelInterface, ArrayAccess
*/
public function setString($string)
{
if (!is_null($string) && (!preg_match("/[a-z]/i", $string))) {
throw new \InvalidArgumentException("invalid value for $string when calling FormatTest., must conform to the pattern /[a-z]/i.");
}
$this->container['string'] = $string;
return $this;