forked from loafle/openapi-generator-original
* 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
15 lines
524 B
Ruby
15 lines
524 B
Ruby
Pod::Spec.new do |s|
|
|
s.name = 'PetstoreClient'
|
|
s.ios.deployment_target = '9.0'
|
|
s.osx.deployment_target = '10.11'
|
|
s.version = '0.0.1'
|
|
s.source = { :git => 'git@github.com:swagger-api/swagger-mustache.git', :tag => 'v1.0.0' }
|
|
s.authors = ''
|
|
s.license = 'Proprietary'
|
|
s.homepage = 'https://github.com/swagger-api/swagger-codegen'
|
|
s.summary = 'PetstoreClient'
|
|
s.source_files = 'PetstoreClient/Classes/**/*.swift'
|
|
s.dependency 'PromiseKit/CorePromise', '~> 4.4.0'
|
|
s.dependency 'Alamofire', '~> 4.5.0'
|
|
end
|