Client generation when there is a customer header in default response code #4569
Unanswered
bhanuprakash-1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
Need help in understanding how the clients (especially models corresponding to response headers are generated).
I have a requirement where in OpenAPI Spec (Swagger) in every operation in default response code, I have to add a header like below in.
But the issue Im facing is although the header x-ms-error-code is pretty much same (type string) for every operation, client generation is such that a new Header class is getting generated for every operation. Is there a way to give config to autorest while client generation, such that only single Header class is generated and used. I'm new to autorest and still not very sure how it works. Tried to go through its documentation, but did not find anything related to this. Can you please point me if this is covered somewhere in documentation
Beta Was this translation helpful? Give feedback.
All reactions