-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error: "A base path must be supplied in the configuration" #4
Comments
|
Thx for the hint - at least I got it running with this hint. Nevertheless the documentation should be updated with this information |
👍 Thank you for taking a look a this project - we will be happy to accept and PRs and/or suggestions. I will also re-review the documentation and update as you suggest. |
I guess that issue is in "package Swagger::V12": 35 unless (@{$self->configuration}{qw(basePath apiVersion resourcePath)}) { Because here is delete from configuration, so when method _build_swag_data is called 2nd time, values are set to null. For instance (i call 2 times /doc/api_doc). First call is ok and returns valid json. Second call (reload page) fail. HTTP::Server::PSGI: Accepting connections at http://0:3001/ |
It's rather a question than an error (maybe missing documentation?). I'm a bloody newbie on Swagger and on integrating swagger into catalyst - therefore bare with me ... ;-)
I tried to run your example within my current catalyst environment:
Doing so everything starts up without errors - and additional pathspecs are provided (
/testswagger/api_docs/...
,/testswagger/test_two/...
,/test_one/*/*/foo/*
)Opening the page
http://127.0.0.1:3001/testswagger/api_docs
in my browser, I get the error:Any idea what's wrong? Maybe the given example might be expanded to address this ...
The text was updated successfully, but these errors were encountered: