Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Set HTTP header on the client side without an explicit swagger parameters #935
We have a need to set HTTP header parameters in the (generated) client code that are not necessarily part of the swagger documentation. We know that we could specify the header parameter in swagger but that is not feasible as it should not be exposed to the public users (it will be set automatically by the gateway but for internal development we also want to set it).
However, I don't really have access to the http request from any of the
Is there a better way to solve this by letting met set custom headers that are not specified in the swagger document? Alternative would be hidden parameters in the swagger doc but I don't think that exists.