From 7a1f7b2270eea7770ecffd49e2cdbd94f1cca0ae Mon Sep 17 00:00:00 2001 From: Eike Starkmann Date: Tue, 13 Apr 2021 08:57:50 +0200 Subject: [PATCH] Update model_variables.mustache (#7074) Recursive validate non primitive objects --- .../src/main/resources/php-symfony/model_variables.mustache | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache b/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache index 3ef46d1c9b05..d79a5feb74ab 100644 --- a/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache +++ b/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache @@ -7,6 +7,9 @@ * @SerializedName("{{baseName}}") {{#required}} * @Assert\NotNull() + {{^isPrimitiveType}} + * @Assert\Valid() + {{/isPrimitiveType}} {{/required}} {{#isEnum}} {{#isContainer}}