Skip to content

[Swift3] [Swift4] Fails to create array of strings, integers, floats, etc... #6746

@ornithocoder

Description

@ornithocoder

My swagger.json file has something like this to define an array of doubles:

    "arrayOfDoubles": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "double"
      }
    },

But swagger-codegen creates the following typealias for the array, without the type (which fails to compile):

public typealias ArrayOfDoubles = []

I'm using 2.2.3.

Updates:

  • Same result with 2.3.0.
  • Same result using Swift4.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions