Skip to content

Model imports don't support nested Arrays and Maps. #3194

@faresd

Description

@faresd

Model imports don't support nested Arrays and Maps.

Description

The problem can be reproduced using Swagger property the contains a nested Arrays such as:

"values" : {
          "type" : "array",
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/definitions/ApiNameValue"
            }
          }
        }

In the model generated (in my case JS) don't include the object "ApiNameValue" in the imports.

Swagger-codegen version

2.1.6

Swagger declaration file content or url

https://swagger-ui-1243.appspot.com/apis/search/v1

Command line used for generation
Steps to reproduce
Related issues
Suggest a Fix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions