swagger-codegen-generators
swagger-codegen-generators copied to clipboard
[JavaSpring] Missing @Valid annotation for multipard/form-data content type if part is object
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