question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[3.0.0] Optional params are printed as required

See original GitHub issue

Hi! 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dilipkrishcommented, Jul 22, 2020

This was fixed in 3.0.0

0reactions
dilipkrishcommented, Jul 22, 2020

Kotlin nullable types aren’t directly supported… however java native Optionals are

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found