Interactive API Docs 'Try it out!' does not set "Accept" header
I describe API model on swaggerhub.com and trying to send POST request with parameters in body using 'Try it out!' operation. It returns response with status '406 Not Acceptable'.
However when I copy Curl that suggests swaggerhub and paste it to command line it works fine.
There is no header "Accept: application/json" in request that comes to web app when I use 'Try it out' operation.
In the description of my POST operation there is field
produces: - application/json
I tried to add header using parameters:
parameters: - name: "Accept" in: header type: string default: "application/json"
But result doesn't changed at all.
When I change header in parameters, I can set changes in represented curl, but result is the same.
Is there something I am doing wrong? Thanks in advance for your assistance.
Thanks again for you patience... the issue should be resolved in production, please feel free to reach out with any other queries.
Josh