Skip to content
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

Fix the url docs link and handling referenced json files #99

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aiolos
Copy link

@aiolos aiolos commented Apr 12, 2021

In an application I'm using references to json files in my swagger documentation (these files are also used for validation of requests and responses, as well as tests, that why I want to use these references and don't put them inline).
In the laravel-package this works correctly, but the lumen-package didn't use the file name in the docs correctly, and referenced files were also not served through the SwaggerLumeController.

I applied changes that give the expected result. I.e. the default docs url is now .../docs/api-docs.json (in comparison to ../docs/ it was before, and json files referenced in api-docs.json are served correctly.

Let me know if anything is unclear.

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.

1 participant