-
Notifications
You must be signed in to change notification settings - Fork 228
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
Display custom headers in resuable way (Components/parameters) with different field for each header in swagger ui express #364
Comments
I do not have sure if I get the entire idea here. Can you provide a repo as an example to make things clear? |
It would be great If you can provide some way around, I have been messing my head around it for many days but could not find any better way. |
May I believe this is related to openapi specification. Can you try this? |
ok lets take above example shared in link you mentioned so only thing I want is instead of referring each header one by one like this
can I reference all the header at once like I want to do this because I have about 11 headers and all those will be used in about 50 different request so it will cause a lot of repetition for me. |
the swagger-jsdocs will help you to build your yml file to your swagger api. What you want to do is related to Openapi specification. Looks like you need to refer each header in your requests |
Hi, I have about 12 different headers and all those are needed in about 40 to 50 different request so obviously I am looking for some reusable way and I want to $ref all the headers at once instead of use $ref for all the headers one by one in parameters part and it works as well using below code example
The only Issue is it creates only one object for entering all the headers instead of separate fields for all the headers in ui. Any help would be greatly appreciated.
@daniloab
The text was updated successfully, but these errors were encountered: