Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Demonian opened this issue May 8, 2024 · 0 comments

Comments

@Demonian
Copy link

Demonian commented May 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant