env0 / env0/serverless-openapi-typescript

Post requestBody not showing/generating

Abierto
#46 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
14
Forks
7
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.