swagger-core
swagger-core copied to clipboard
ModelConverterRegistrar should care the order
Is your feature request related to a problem? Please describe.
I got the oneOf property is not work issue, but no fix yet. https://github.com/swagger-api/swagger-core/issues/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?