acacode / acacode/swagger-typescript-api

include header parameters in the client

オープン
#315 コメント 1 件 リアクション 21 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
4.1k
フォーク
436
PR マージ指標
30日以内にマージされた PR はありません

説明

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"
},
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。