Open rmannibucau opened 6 years ago
Hmm.. what would you suggest? Having an SPI would be the most flexible option I guess.
There is already a spi in the analyzer (see the issue in mvn plugin) but methods should be protected to let it be useful
I see (sorry for the late response, once again :))
So, a solution would be to modularize the Swagger backend impl (so the methods fits the swagger concepts) to make it extendable, while doing the "hard work" in the base API class?
Sounds good as the generic solution.
Side note: supporting some widely spread extensions can be good too (restlet, tomitribe, etc...)
the need is to be able to implement its own swagger backend to add custom extensions in the model so it requires classes to become public and method protected
Some rational behind it: to add x-restlet swagger extension i needed to fork the whole swagger backend (https://github.com/rmannibucau/jaxrs-analyzer-extension/blob/master/src/main/java/com/github/rmannibucau/jaxrsanalyzer/backend/EnrichedSwaggerBackend.java) which is a pain. Enhancements are: