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

swagger 3.0.0 can not find request params #7

Open
lanemy opened this issue Feb 25, 2021 · 1 comment
Open

swagger 3.0.0 can not find request params #7

lanemy opened this issue Feb 25, 2021 · 1 comment

Comments

@lanemy
Copy link

lanemy commented Feb 25, 2021

hi, springfox-protobuf works fine with 2.9.x swagger,
but when i upgrade to swagger 3.0.0 to adjust webflux framework, the @RequestBody's param disappear
I've debugged and found out that in the class OptimizedModelPropertiesProvider.safeGetPrimaryMember() has been changed. replacing jacksonProperty.getPrimaryMember() with
if (givenContext.isReturnType()) return jacksonProperty.getAccessor();
return jacksonProperty.getMutator();

image

image

I'v tried to find solution to fix it, but all failed, could you please give some suggestions?

@xehonk
Copy link
Collaborator

xehonk commented Feb 25, 2021

Hi, we're using this project with springfox 3 (webmvc) successfully.

Is this problem specific to webflux?
Do you have spring.main.lazy-initialization enabled?

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

No branches or pull requests

2 participants