env0 / env0/serverless-openapi-typescript
Post requestBody not showing/generating
- 主要言語
- TypeScript
- スター
- 14
- フォーク
- 7
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I'm trying to add request body here for my post endpoint, I cannot, I have tried requestBody property and nothing.
As seen in the picture I've been able to add it manually in the json output but not from the yml config file

```yml
endpoints:
createPerson:
summary: Crear personaje
description: Crea un personaje nuevo en la BD.
requestBody:
description: "Body param"
requestModels:
application/json: RequestObject
```
Basically this object is not being generated I have to add it manually for it to work

コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
ソースファイル、テスト、エントリーポイントのいずれも指定されていません。まず、endpoints の YAML 設定が生成された JSON にどのようにマッピングされるかを追跡し、requestBody フィールドと requestModels フィールドに注目してください。設定されたリクエストボディが手動編集なしで生成された OpenAPI 出力に現れれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- openapi, typescript
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100