acacode / acacode/swagger-typescript-api
include header parameters in the client
- Ngôn ngữ chính
- TypeScript
- Star
- 4.1k
- Fork
- 436
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hello
The swagger JSON includes header params ( "name":"**X-Tenant-ID**" ), but the generator does not respect this. Is there a way to generate the client with those extra parameters to pass X-Tenant-ID when I call the fetch as parameter?
```
{
"/support/v1/corporatefeatures/{feature}":{
"post":{
"tags":[
"corporate-feature-controller"
],
"operationId":"CorporateFeatureController.enableFeature",
"parameters":[
{
"name":"X-Tenant-ID",
"in":"header",
"description":"Tenant identifier",
"required":true,
"schema":{
"type":"string"
},
"example":"tenant1"
},
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.