You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a DemoClass as my request class in which I have one header. I am using @HeaderParam annotation to do this. Here is my DemoClass -
@Request("Request class")
data class DemoClass(
@HeaderParam("Header required in request")
val xyz: String,
@PathParam("Name")
val name: String
)
On running the app and opening the documentation, I see the header xyz in request body instead of being shown as a header. Even when I make a request, I have to add xyz inside the request body instead of the header.
I checked a closed issue where header name in backticks and "-" was the solution suggested, but it still didn't work for me. Someone also suggested to use @OpenAPIName with @HeaderParam but the issue still persists. Any way to fix this?
The text was updated successfully, but these errors were encountered:
I am using a
DemoClass
as my request class in which I have one header. I am using@HeaderParam
annotation to do this. Here is my DemoClass -On running the app and opening the documentation, I see the header
![Screenshot (67)](https://user-images.githubusercontent.com/33890820/158369466-b2a3bd9f-3075-4ba8-8354-bf36dc03af1e.png)
![Screenshot (66)](https://user-images.githubusercontent.com/33890820/158369538-24eaf0ad-8642-4a16-b925-fd21831d532e.png)
xyz
in request body instead of being shown as a header. Even when I make a request, I have to addxyz
inside the request body instead of the header.I checked a closed issue where header name in backticks and "-" was the solution suggested, but it still didn't work for me. Someone also suggested to use
@OpenAPIName
with@HeaderParam
but the issue still persists. Any way to fix this?The text was updated successfully, but these errors were encountered: