ozonep / openapi-fastify-codegen

Server Generator based on OpenAPIv3 spec file
MIT License
7 stars 1 forks source link

options with request body having too many commas (,) #5

Open simenfossnes opened 4 years ago

simenfossnes commented 4 years ago

When generating a server, the options object (whenever the request body is included) has too many commas, which leads to a syntax error. This is within the routes folder.

const options = {
  body: req.body,
  ,
  ...
};