swagger-api/swagger-codegen

Ruby client: Array included in imports & import(require) statements are missing in models

開放

#2,373 建立於 2016年3月13日

 (7 則留言) (0 個反應) (0 位負責人)HTML (5,474 個分叉)batch import
Client: RubyIssue: Bughelp wanted

倉庫指標

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

描述

Hi @wing328, I just came across model mustache for Ruby does not have require or require_relative as we have importstatements for Java in model mustache. So I modified mustache to include require statements for imports, but I noticed that import mustache variable has Array as imports. In Ruby, a seperate import statement is not required for Arrays as in Java. How can I skip Array import in mustache ? My model mustache has imports as below :

{{#imports}}require_relative '{{{import}}}'
{{/imports}}

My model.rb looks as below, having Java imports in ruby model :

require_relative 'java.util.List'

貢獻者指南