Skip to content

Commit 4f30e3e

Browse files
authored
Merge pull request #3712 from swagger-api/ticket-3711
refs #3711 - expose ctxId resolving in BaseOpenApiResource
2 parents 405d02b + 3cbc8cf commit 4f30e3e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/swagger-jaxrs2/src/main/java/io/swagger/v3/jaxrs2/integration/resources/BaseOpenApiResource.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ public abstract class BaseOpenApiResource {
3030

3131
private static Logger LOGGER = LoggerFactory.getLogger(BaseOpenApiResource.class);
3232

33+
protected String getContextId(ServletConfig config) {
34+
return getContextIdFromServletConfig(config);
35+
}
36+
3337
protected Response getOpenApi(HttpHeaders headers,
3438
ServletConfig config,
3539
Application app,
3640
UriInfo uriInfo,
3741
String type) throws Exception {
3842

39-
String ctxId = getContextIdFromServletConfig(config);
43+
String ctxId = getContextId(config);
4044
OpenApiContext ctx = new JaxrsOpenApiContextBuilder()
4145
.servletConfig(config)
4246
.application(app)

0 commit comments

Comments
 (0)