Skip to content

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

Open
aiolos wants to merge 4 commits into
DarkaOnLine:masterfrom
aiolos:fix-url-docs-link
Open

Fix the url docs link and handling referenced json files#99
aiolos wants to merge 4 commits into
DarkaOnLine:masterfrom
aiolos:fix-url-docs-link

Conversation

@aiolos

@aiolos aiolos commented Apr 12, 2021

Copy link
Copy Markdown

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