[3.0.0] Optional params are printed as required
See original GitHub issueHi!
I found a bug that an Optional parameter will be rendered as required 😃
This happens when I use Optional<T>, but if I use @RequestParam(.... , required = false), it works fine.
Version 2.9.2 does not have this problem.
Other than that, I want to say, huge thank you for this project 😃
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Parameter defaults and Optional Function Parameters in Swift ...
So with a simple tweak to our previous default values example, we can introduce a true optional parameter, using the Optional type.
Read more >How to define an optional parameter in path using swagger
Determines whether this parameter is mandatory. If the parameter is in "path", this property is required and its value MUST be true.
Read more >Describing Parameters - Swagger
Required and Optional Parameters. By default, OpenAPI treats all request parameters as optional. You can add required: true to mark a parameter as...
Read more >Named and Optional Arguments - C# Programming Guide
Optional parameters are defined at the end of the parameter list, after any required parameters. If the caller provides an argument for any...
Read more >Optional Parameters — Applications - OpenEye Documentation
All parameters necessary for program execution may be provided in the control parameter file, although any command given explicitly on the command line...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This was fixed in 3.0.0
Kotlin nullable types aren’t directly supported… however java native Optionals are