swagger-codegen-generators icon indicating copy to clipboard operation
swagger-codegen-generators copied to clipboard

[JavaSpring] Missing @Valid annotation for multipard/form-data content type if part is object

Open Demonian opened this issue 1 year ago • 0 comments

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

Demonian avatar May 08 '24 12:05 Demonian