Bug Report Checklist
Description
with a manual accept header as a header param, the generated code overrides passed in params with the inferred ones.
/endpoint:
get:
parameters:
name: Accept
required: false
in: header
description: |
Media type that is acceptable by the client to control the content negotiation for the response.
schema:
type: string
example: "application/json"
responses:
'200':
content:
application/octet-stream:
schema:
type: object
application/json:
schema:
type: object
generates:
accept?.apply { localVariableHeaders["Accept"] = this.toString() }
localVariableHeaders["Accept"] = "application/octet-stream, application/json"
which makes the accept parameter ineffective.
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Bug Report Checklist
Description
with a manual accept header as a header param, the generated code overrides passed in params with the inferred ones.
generates:
which makes the accept parameter ineffective.
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix