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

ModelConverterRegistrar should care the order #4746

Open
abccbaandy opened this issue Sep 24, 2024 · 0 comments
Open

ModelConverterRegistrar should care the order #4746

abccbaandy opened this issue Sep 24, 2024 · 0 comments

Comments

@abccbaandy
Copy link

Is your feature request related to a problem? Please describe.

I got the oneOf property is not work issue, but no fix yet.
#4732

In the meantime, I am working on my own ModelConverter to hack the result.
I use this code to add my converter.

        ModelConverters.getInstance().addConverter(new MyCustomResolver());

But I found the Springdoc have its own converter too, and it overwrite my result.
I think the reason is because the order of the converters in ModelConverters.

Describe the solution you'd like
Maybe just use Spring @Order annotation?

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