Skip to content

OpenAPIV3Parser#getExtensions() not finding extensions on OSGi #1003 - #1068

Merged
gracekarina merged 3 commits into
swagger-api:masterfrom
Talend:master
Apr 13, 2019
Merged

OpenAPIV3Parser#getExtensions() not finding extensions on OSGi #1003#1068
gracekarina merged 3 commits into
swagger-api:masterfrom
Talend:master

Conversation

@fmoussallam

Copy link
Copy Markdown
Contributor

What is the problem: When swagger-parser is used in an OSGi bundle, it fails to find extensions because it only looks into the current thread classloader. In an OSGi environment, swagger itself and its extensions (like v2 support) are not available from the tccl.

What is the solution: Load extensions from both tccl and the SwaggerParserExtension classloader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants