You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular, "default": ["#{{}}"] struck me as wrong, since fun test(@RequestParam(defaultValue = "#{{}}") list: List<String>) actually uses a SpEL expression which should convert to an empty list. Should this work out of the box or am I missing some enabler configuration?
Changing to fun test(@RequestParam(defaultValue = "#{{}}") list: List<Int>) gets even worse, as now the conversion service throws an exception that translates into org.springdoc.core.ParameterInfo : Using the following default value : #{{}}, without spring conversionService
Uh oh!
There was an error while loading. Please reload this page.
With a simple application like
and a
build.gradle.kts
file autogenerated from Spring Initializr plusspringdoc
addition as followI get the following OpenAPI definition:
In particular,
"default": ["#{{}}"]
struck me as wrong, sincefun test(@RequestParam(defaultValue = "#{{}}") list: List<String>)
actually uses a SpEL expression which should convert to an empty list. Should this work out of the box or am I missing some enabler configuration?Changing to
fun test(@RequestParam(defaultValue = "#{{}}") list: List<Int>)
gets even worse, as now the conversion service throws an exception that translates intoorg.springdoc.core.ParameterInfo : Using the following default value : #{{}}, without spring conversionService
Sample project: https://github.com/ThanksForAllTheFish/springdocspel
The text was updated successfully, but these errors were encountered: