swagger-api/swagger-codegen

Tags in swagger yaml breaks nodejs generated server

開放

#2,423 建立於 2016年3月21日

 (17 則留言) (1 個反應) (0 位負責人)HTML (5,474 個分叉)batch import
Issue: BugServer: Nodejshelp wanted

倉庫指標

星標
 (12,701 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

I have been having a hard time using the generated nodejs server to build a mock API based on my swagger yaml file. It turns out that my use of tags in the yaml causes the generated server to have multiples of the controllers I am expecting.

If I add a single tag as follows:

      tags:
        - HTTP Request

Then when making an API request with the generated server I get the following error

Error: Cannot resolve the configured swagger-router handler: HTTP Request_shopsShopIdTransactionsGET

Removing the tag will allow the server to identify the correct controller and respond.

貢獻者指南