Skip to content

Conversation

@krupt
Copy link
Contributor

@krupt krupt commented Nov 26, 2022

No description provided.

…terNameDiscoverer with org.springframework.core.DefaultParameterNameDiscoverer
@bnasslahsen
Copy link
Collaborator

@krupt,

I have fixed your PR:
LocalVariableTableParameterNameDiscoverer should have been replaced by StandardReflectionParameterNameDiscoverer.

bnasslahsen added a commit that referenced this pull request Nov 29, 2022
@bnasslahsen bnasslahsen changed the title Replaced deprecated org.springframework.core.LocalVariableTableParameterNameDiscoverer with org.springframework.core.DefaultParameterNameDiscoverer Replaced deprecated org.springframework.core.LocalVariableTableParameterNameDiscoverer with org.springframework.core.StandardReflectionParameterNameDiscoverer Nov 29, 2022
@krupt
Copy link
Contributor Author

krupt commented Nov 29, 2022

But why? StandardReflectionParameterNameDiscoverer can't work for every library. DefaultParameterNameDiscoverer is better, cause it uses all posible options. First Kotlin, if exists, then StandardReflectionParameterNameDiscoverer for classes that were compiled with Java 8+ with -parameters option and then LocalVariableTableParameterNameDiscoverer for all other classes. That's how it works in Spring Framework

@bnasslahsen
Copy link
Collaborator

You were breaking tests ...

@sascha-sphw
Copy link

In which version will this be included?

@bnasslahsen
Copy link
Collaborator

@springdoc springdoc locked as too heated and limited conversation to collaborators Dec 16, 2022
mpleine pushed a commit to mpleine/springdoc-openapi that referenced this pull request May 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants