-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
resuable request headers to be used in multiple request. #3293
Comments
Hi, I am writing swagger documentation for my services using swaggerjsdoc and I have about 12 custom headers that will be used in 40 to 50 request each microservice and I have about 10 different microservices. with the current approach as mentioned below `
I need to use $ref for each header explicitly for each request and keeping this approach I have to do this in all of my hundreds of apis which is going to cause a lot of replication and difficult to maintain. Please help me get a better solution, thank you. |
@handrews any suggestions please. |
@AqibFayyazShaheer I'm not aware of anything that can improve this in OAS 3.x. This is something that OAS 4 a.k.a. Moonwalk will hopefully improve. |
We are also interested in seeing an alternative approach to managing response headers, as mentioned the One possible workaround I can think of for the moment is the use of YAML anchors. This, however, would require developers to render the YAML without the anchors as most tools out there would not support them, which is not the worst tradeoff one can make. Curious to see what other people are doing to solve this? |
No description provided.
The text was updated successfully, but these errors were encountered: