Using Stoplight Next on MacOS, imported a swagger.yaml file, started to define a new path and then the body of the request but found the output code is defining the body as parameters with in -body instead of using “requestBody”.
In our Node.js application we’re using swagger tools and the application simply doesn’t accept the body of the request unless I manually go into the exported code and change to using requestBody.
Could be our set up but in the docs for openapi it says the 2.0 way was using parameters in -body vs the 3.0 way of requestBody.
Am I correct or doing something wrong? If correct, will there be an update to support requestBody instead of the 2.0 way?
P.S. only used this tool for about 5 mins and I already love it. Once these things are solved I will be recommending we purchase a bunch of licenses. Writing OpenAPI swagger yaml by hand is the worst part of my day.