Skip to content

Commit 7242cdb

Browse files
authored
Merge pull request #8535 from 4n70w4/master
[BUG] [CRITICAL] [PHP] Symfony server incorrect validation: min contstraint in max condition
2 parents 3b8c2f3 + 9dd5fe6 commit 7242cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
{{/minimum}}
6868
{{#maximum}}
6969
{{#exclusiveMaximum}}
70-
* @Assert\LessThan({{minimum}})
70+
* @Assert\LessThan({{maximum}})
7171
{{/exclusiveMaximum}}
7272
{{^exclusiveMaximum}}
73-
* @Assert\LessThanOrEqual({{minimum}})
73+
* @Assert\LessThanOrEqual({{maximum}})
7474
{{/exclusiveMaximum}}
7575
{{/maximum}}
7676
{{#pattern}}

0 commit comments

Comments
 (0)