swagger-api/swagger-codegen

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

Open

#2.373 geöffnet am 13. März 2016

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (5.474 Forks)batch import
Client: RubyIssue: Bughelp wanted

Repository-Metriken

Stars
 (12.701 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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'

Contributor Guide