env0 / env0/serverless-openapi-typescript

Post requestBody not showing/generating

オープン
#46 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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
![imagen](https://github.com/env0/serverless-openapi-typescript/assets/107485722/9d78893f-21a8-4820-9b6d-fd9aae531159)

```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

![imagen](https://github.com/env0/serverless-openapi-typescript/assets/107485722/870da583-9524-4a7c-817e-0f18ccf5ed9a)

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

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

調査の方向性

ソースファイル、テスト、エントリーポイントのいずれも指定されていません。まず、endpoints の YAML 設定が生成された JSON にどのようにマッピングされるかを追跡し、requestBody フィールドと requestModels フィールドに注目してください。設定されたリクエストボディが手動編集なしで生成された OpenAPI 出力に現れれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
openapi, typescript
領域
api
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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