mimarec / swagger-doc-viewer

Viewer documentation for a OpenAPI Specification (fka The Swagger Specification)
MIT License
6 stars 5 forks source link

FIX relative $ref in second level references, to keep relative to roo… #3

Closed albertogb closed 7 years ago

albertogb commented 7 years ago

FIX relative $ref in second level references, to keep relative to root level as default behaviour in swagger tools.

When adding a $ref on a second level reference, the base bath took, was relative to second level .yaml file, instead of being relatie to origin root .taml file, as default behaviour on swagger tools.

In order to fix base path, "pointerResolutionBasePath" has been assigned to "http://localhost:9000/" on defaults.json file.

At the moment, the extension does not support a different port, so this should be ok, but this settings should be dinamically modified in case it is required.

albertogb commented 7 years ago

Not working on all secenarios.