coheigea opened a new pull request #679:
URL: https://github.com/apache/cxf/pull/679


   …oyed
   
   The idea behind the fix is to update the 
Swagger2Feature.ServletConfigProvider to return a random UUID for 
SwaggerContextService.CONFIG_ID_KEY. In Swaggers BaseApiListingResource, it 
will return the cached Swagger API if the initializedConfig map already 
contains this Id:
   
   `if (SwaggerContextService.isConfigIdInitParamDefined(sc)) {
                       if (!initializedConfig.containsKey(sc.getServletName() + 
"_" + SwaggerContextService.getConfigIdFromInitParam(sc))) {
                           swagger = scan(app, servletContext, sc, uriInfo);
                       }
                   } `
   When the service is redeployed, the ServletConfigProvider will be added with 
a different random Id, which will force a reload of the Swagger document in 
BaseApiListingResource.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to