Files
openapi-generator/samples/client/petstore
ehyche b716b378c4 Swift4: Add additional initializer for initializing model object with properties. (#6642)
* Add addiitional files from upstream

* Remove mis-added files

* Add additional swift4 initializer for initializing model object with properties.

This change fixes this issue: https://github.com/swagger-api/swagger-codegen/issues/6641

It adds an additional initializer which allows model objects to be initialized using the properties. For exxample, if we had this model:

    "ErrorInfo": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Example Error object"
    },

This we generate an initializer for this model object like this:

    public init(code: Int?, message: String?, details: [String]?) {
        self.code = code
        self.message = message
        self.details = details
    }

* Add hasVars checks around initializers and re-run all scripts to re-generate
2017-10-12 17:35:59 +08:00
..
2017-05-27 00:33:49 +08:00
2017-09-09 21:19:21 +08:00
2017-06-29 13:22:26 +08:00
2017-10-08 17:16:48 +08:00
2017-10-08 17:16:48 +08:00
2017-10-08 17:16:48 +08:00
2017-06-29 10:56:12 +08:00
2017-09-19 10:20:47 +08:00
2017-09-27 00:06:53 +08:00
2017-08-04 01:01:19 +08:00
2016-08-27 02:34:33 +03:00
2017-07-05 01:28:39 +08:00