You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When $ref references an external yaml file, Swagger-Parser can merge everything and produce an instance of OpenAPI where the references are local.
The key point is to use setResolve(true).
See more: https://j2r2b.github.io/2018/05/26/external-ref-openapi.html
It was reported that this does not work with $ref in parameter. It works well in request body
and response.
When
$ref
references an external yaml file, Swagger-Parser can merge everything and produce an instance of OpenAPI where the references are local.The key point is to use
setResolve(true)
.See more: https://j2r2b.github.io/2018/05/26/external-ref-openapi.html
It was reported that this does not work with
$ref
in parameter. It works well in request bodyand response.
Test case, in the same folder, put two files:
Main OAS3 file:
main.yaml
External file:
other.yaml
Run this code:
Current value:
Expected value:
Tested with version
2.0.1
The text was updated successfully, but these errors were encountered: