Skip to content

Commit f0c7460

Browse files
committed
fix php-symfony api_input_validation lt and lte condition
1 parent 79e800a commit f0c7460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/swagger-codegen/src/main/resources/php-symfony/api_input_validation.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
{{/minimum}}
6262
{{#maximum}}
6363
{{#exclusiveMaximum}}
64-
$asserts[] = new Assert\LessThan({{minimum}});
64+
$asserts[] = new Assert\LessThan({{maximum}});
6565
{{/exclusiveMaximum}}
6666
{{^exclusiveMaximum}}
67-
$asserts[] = new Assert\LessThanOrEqual({{minimum}});
67+
$asserts[] = new Assert\LessThanOrEqual({{maximum}});
6868
{{/exclusiveMaximum}}
6969
{{/maximum}}
7070
{{#pattern}}

0 commit comments

Comments
 (0)