forked from loafle/openapi-generator-original
Fix wrong variable name in LessThan and LessThanOrEqual asserts (#3971)
* Fix wrong variable name in LessThan and LessThanOrEqual asserts * After run ./bin/php-symfony-petstore.sh
This commit is contained in:
parent
e901132ea9
commit
0bf9926066
@ -67,10 +67,10 @@
|
||||
{{/minimum}}
|
||||
{{#maximum}}
|
||||
{{#exclusiveMaximum}}
|
||||
$asserts[] = new Assert\LessThan({{minimum}});
|
||||
$asserts[] = new Assert\LessThan({{maximum}});
|
||||
{{/exclusiveMaximum}}
|
||||
{{^exclusiveMaximum}}
|
||||
$asserts[] = new Assert\LessThanOrEqual({{minimum}});
|
||||
$asserts[] = new Assert\LessThanOrEqual({{maximum}});
|
||||
{{/exclusiveMaximum}}
|
||||
{{/maximum}}
|
||||
{{#pattern}}
|
||||
|
@ -224,7 +224,7 @@ class StoreController extends Controller
|
||||
$asserts[] = new Assert\NotNull();
|
||||
$asserts[] = new Assert\Type("int");
|
||||
$asserts[] = new Assert\GreaterThanOrEqual(1);
|
||||
$asserts[] = new Assert\LessThanOrEqual(1);
|
||||
$asserts[] = new Assert\LessThanOrEqual(5);
|
||||
$response = $this->validate($orderId, $asserts);
|
||||
if ($response instanceof Response) {
|
||||
return $response;
|
||||
|
Loading…
x
Reference in New Issue
Block a user