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

Wrong tag generated #4

Open
c0rnoTa opened this issue Sep 8, 2017 · 0 comments
Open

Wrong tag generated #4

c0rnoTa opened this issue Sep 8, 2017 · 0 comments

Comments

@c0rnoTa
Copy link

c0rnoTa commented Sep 8, 2017

str_replace('CE\Http\Controllers', '', array_get($method, 'controllerNameSpace', '')),

Controllers namespace hardcoded as 'CE\Http\Controllers' but by default it has 'App\Http\Controllers'. That's why you have wrong 'tags' when generating JSON resources for swagger and JS errors when click on 'List operations'.

So it's better to write 'App\Http\Controllers' here. And the best way is to determinate controllers namespace, but I do not know how to get it (that's because I did not made a PR). But we could read it from composer.json, autoload->ps-4 and then just add 'Http\Controllers'.

Could you please made a patch? :)

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

No branches or pull requests

1 participant