env0 / env0/serverless-openapi-typescript

Post requestBody not showing/generating

Aperta
#46 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
14
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.