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

Need similar way for Open API #4079

Open
chakilamt opened this issue Dec 22, 2023 · 0 comments
Open

Need similar way for Open API #4079

chakilamt opened this issue Dec 22, 2023 · 0 comments

Comments

@chakilamt
Copy link

I have migrated from Springfox to Open API and my old Springfox config has some alternate type rules like the below:

new AlternateTypeRule(typeResolver.resolve(ResponseEntity.class,
                                typeResolver.resolve(ResponseVO.class, WildcardType.class)),
                                typeResolver.resolve(WildcardType.class)))

Similar way, I needed for Open API Config but was not able to find any, and even when I used the code below, it also its not work.

SpringDocUtils.getConfig().replaceWithClass(typeResolver.resolve(ResponseEntity.class,
                        typeResolver.resolve(ResponseVO.class, WildcardType.class)).getClass(),
                typeResolver.resolve(WildcardType.class).getClass());

Please help!!

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

1 participant