-
Notifications
You must be signed in to change notification settings - Fork 762
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
resolveSubtree does not support 3.1 spec #3728
Comments
Hi @meijey, Thanks for the detailed report. I've addressed the issue in #3760. Let me dissect what the PR is actually addressing: 1. Passing
|
Q&A (please complete the following information)
Swagger/OpenAPI definition:
https://petstore3.swagger.io/api/v3/openapi.json (working)
https://petstore31.swagger.io/api/v31/openapi.json (cannot be resolved partly)
Swagger-Client usage:
Describe the bug you're encountering
Hi,
I'm using swagger-js in openApi-red for Node-RED.
On startup I partly resolve all files in use to check for errors and to normalize the file. To reduce loading times, especially for huge files, this is made with
SwaggerClient.resolveSubtree(spec, [''], { returnEntireTree: true })
.This works fine with openAPI 2.0 and 3.0 files.
Files with version 3.1 will return null.
The error seems to occur here:
This may be related to this ticket in swagger-ui: swagger-api/swagger-ui#10191.
To reproduce...
This test case shows which way is working and with what file version and which is not.
test.js
Expected behavior
Getting a (partly) resolved specification with version 3.0 and 3.1.
The text was updated successfully, but these errors were encountered: