swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

ModelConverterRegistrar should care the order

Open abccbaandy opened this issue 1 year ago • 0 comments

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?

abccbaandy avatar Sep 24 '24 13:09 abccbaandy