-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #1592 Add support for JAR: URLs to OpenAPIV3Parser #1593
Conversation
…thorizationValue> auth).
I've tried this PR as it's a feature we'd like to use, but I get a NPE if the Swagger contains a reference to another schema within the JAR
The actual exception leading up to it is an InvalidPathException (due to a ":" in the path) thrown in PathUtils that is ignored. Tweaking the
as during the loading of references it'll use the root path to load an external reference:
|
Thank you. I've made your suggested change and the tests ran successfully. |
thanks for this feature. |
Extended OpenAPIV3Parser.readLocation() to read content from a jar:jarfile-uri-spec!/spec.yml styled URL as described in #1592. Additional test included.