danielgtaylor / danielgtaylor/openapi-cli-generator
How to set default value to custom header
- Dominant language
- Go
- Stars
- 218
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
Hi ,
I am trying to have a custom header in my spec like below :
- name: 'Client-Type'
in: header
schema:
type: string
**./cli --Client-Type **
I don't want to force user to pass the header like above example command, it should take from spec instead.
So I modified it like below :
- name: 'Client-Type'
in: header
schema:
type: string
default: "my-header"
nullable: true
Still, I don't see this header in my request. And it expects me to pass the same from CLI.
Can you please suggest on this ?
Thanks in advance ;)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.