-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Milestone
Description
Description
When generating nodejs server code with swagger-codegen-cli, the generated service.js files are placed in the controllers folder but they should be in a folder called service. This folder is not created.
Swagger-codegen version
swagger-codegen from master branch. commit b8183fb
Swagger declaration file content or url
swagger: "2.0"
info:
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
version: "1.0.0"
title: "Swagger Petstore"
termsOfService: "http://swagger.io/terms/"
contact:
email: "apiteam@swagger.io"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
host: "petstore.swagger.io"
basePath: "/v2"
tags:
- name: "pet"
description: "Everything about your Pets"
externalDocs:
description: "Find out more"
url: "http://swagger.io"
schemes:
- "http"
paths:
/pet/findByStatus:
get:
tags:
- "pet"
produces:
- "application/xml"
- "application/json"
responses:
'200':
headers:
MyHeader:
type: string
default: "*"
description: "successful operation"Command line used for generation
java -DdebugOpeations -jar swagger-codegen-cli.jar generate -i swagger.yaml -l nodejs-server -o out
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
Probably something has to be corrected in NodeJSServerCodegen.java, so that the service files are correctly placed in the service folder.
Reactions are currently unavailable