THe problem is located in mustache file FormData and it seems that @Valid annotation will only be added to file multipart file part but not to other parts which could be objects with their own required fields
Expected Result:
@Valid annotation is added during generation
Actual Result:
@Valid annotation is missing thus required fields inside model are not validated
THe problem is located in mustache file FormData and it seems that @Valid annotation will only be added to file multipart file part but not to other parts which could be objects with their own required fields
Expected Result:
@Valid annotation is added during generation
Actual Result: @Valid annotation is missing thus required fields inside model are not validated