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

[spring-web] Marking java.util.Optional request parameters as not required #1069

Closed
pszemus opened this issue Jan 20, 2021 · 1 comment
Closed
Milestone

Comments

@pszemus
Copy link

pszemus commented Jan 20, 2021

As spring-framework treats java.util.Optional request parameters as not required (regardless the required value)[1], enunciate should do the same (respecting @RequestParam(required) annotation's field if parameter's not a java.util.Optional).

[1] https://github.com/spring-projects/spring-framework/blob/v5.3.3/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/AbstractNamedValueMethodArgumentResolver.java#L107

@stoicflame stoicflame added this to the 2.14.0 milestone Jan 20, 2021
@stoicflame
Copy link
Owner

Fixed in 2.13.3.

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

No branches or pull requests

2 participants