-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How to add the custom request header #29
Comments
I create a PR for this. #30 |
Fix via #30. Thanks for your contributions. 👍 |
I like the idea of this, but it seems incomplete to me. When attempting to post a request using the Authorization field defined this way, there doesn't seem to be an auth type specified. Using comments like so: Swag produces an auth field as expected in the documentation, but fails to specify an auth type in the request. Consider a check on the following test route:
Obviously this is missing a field and is a malformed auth header. Any guidance here? Is there something elsewhere in Swag that I'm missing? |
@bbriggs Did you find any workaround? |
@bbriggs you need to paste |
@ubogdan Yes, it's obvious. I though that there is a method to add 'Bearer' automatically :) Thanks! |
Hello,
I'm wondering how I can add the custom request header? for example JWT.
The text was updated successfully, but these errors were encountered: