Closed sven-petersen closed 2 months ago
Hi @sven-petersen ,
Thanks for raising up. Using custom headers is the recommended way for passing header parameters for the time being.
I'll leave this ticket open and re-evaluate it later (e.g., the workaround does not work).
Best regards, Junjie
This was implemented with https://sap.github.io/cloud-sdk/docs/js/release-notes#improvements-1 / aa0b849
Describe the bug
Parameters in headers (
in: header
) cannot be passed to the generated OpenAPI client.To Reproduce Steps to reproduce the behavior:
Generate an OpenAPI client for the following schema:
Check if the header parameter
header-param
can be set in the generated client.Expected behavior
The parameter in the header (
header-param
) can be passed as parameter to the generated client somewhere like so:Used Versions:
Impact / Priority
Affected development phase: Development
Additional context
Current workaround is to manually set the headers using