forked from loafle/openapi-generator-original
Update model_variables.mustache (#7074)
Recursive validate non primitive objects
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
* @SerializedName("{{baseName}}")
|
||||
{{#required}}
|
||||
* @Assert\NotNull()
|
||||
{{^isPrimitiveType}}
|
||||
* @Assert\Valid()
|
||||
{{/isPrimitiveType}}
|
||||
{{/required}}
|
||||
{{#isEnum}}
|
||||
{{#isContainer}}
|
||||
|
||||
Reference in New Issue
Block a user