Adding a description to the request body of Nest.js
I’m using Nest.js for the first time and migrating a legacy node.js API. I’m creating the first route to make sure this will preserve the OpenAPI spec capabilities. I’ve created the controller with one route that accepts a JSON body. The body class uses decorators from @nestjs/swagger
, and I am able to see the schema show up in the Swatter UI when using the @Body
decorator: