Skip to content

Commit 80f9612

Browse files
committed
update samples with swiftlint
1 parent 833b733 commit 80f9612

348 files changed

Lines changed: 348 additions & 348 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public struct AdditionalPropertiesClass: Codable {
1212
public var mapString: [String: String]?
1313
public var mapMapString: [String: [String: String]]?
1414

15-
public init(mapString: [String: String]?, mapMapString: [String: [String: String]]?) {
15+
public init(mapString: [String: String]? = nil, mapMapString: [String: [String: String]]? = nil) {
1616
self.mapString = mapString
1717
self.mapMapString = mapMapString
1818
}

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public struct Animal: Codable {
1212
public var className: String
1313
public var color: String? = "red"
1414

15-
public init(className: String, color: String?) {
15+
public init(className: String, color: String? = nil) {
1616
self.className = className
1717
self.color = color
1818
}

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct ApiResponse: Codable {
1313
public var type: String?
1414
public var message: String?
1515

16-
public init(code: Int?, type: String?, message: String?) {
16+
public init(code: Int? = nil, type: String? = nil, message: String? = nil) {
1717
self.code = code
1818
self.type = type
1919
self.message = message

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public struct ArrayOfArrayOfNumberOnly: Codable {
1111

1212
public var arrayArrayNumber: [[Double]]?
1313

14-
public init(arrayArrayNumber: [[Double]]?) {
14+
public init(arrayArrayNumber: [[Double]]? = nil) {
1515
self.arrayArrayNumber = arrayArrayNumber
1616
}
1717

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public struct ArrayOfNumberOnly: Codable {
1111

1212
public var arrayNumber: [Double]?
1313

14-
public init(arrayNumber: [Double]?) {
14+
public init(arrayNumber: [Double]? = nil) {
1515
self.arrayNumber = arrayNumber
1616
}
1717

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct ArrayTest: Codable {
1313
public var arrayArrayOfInteger: [[Int64]]?
1414
public var arrayArrayOfModel: [[ReadOnlyFirst]]?
1515

16-
public init(arrayOfString: [String]?, arrayArrayOfInteger: [[Int64]]?, arrayArrayOfModel: [[ReadOnlyFirst]]?) {
16+
public init(arrayOfString: [String]? = nil, arrayArrayOfInteger: [[Int64]]? = nil, arrayArrayOfModel: [[ReadOnlyFirst]]? = nil) {
1717
self.arrayOfString = arrayOfString
1818
self.arrayArrayOfInteger = arrayArrayOfInteger
1919
self.arrayArrayOfModel = arrayArrayOfModel

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public struct Capitalization: Codable {
1717
/** Name of the pet */
1818
public var ATT_NAME: String?
1919

20-
public init(smallCamel: String?, capitalCamel: String?, smallSnake: String?, capitalSnake: String?, sCAETHFlowPoints: String?, ATT_NAME: String?) {
20+
public init(smallCamel: String? = nil, capitalCamel: String? = nil, smallSnake: String? = nil, capitalSnake: String? = nil, sCAETHFlowPoints: String? = nil, ATT_NAME: String? = nil) {
2121
self.smallCamel = smallCamel
2222
self.capitalCamel = capitalCamel
2323
self.smallSnake = smallSnake

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct Cat: Codable {
1313
public var color: String? = "red"
1414
public var declawed: Bool?
1515

16-
public init(className: String, color: String?, declawed: Bool?) {
16+
public init(className: String, color: String? = nil, declawed: Bool? = nil) {
1717
self.className = className
1818
self.color = color
1919
self.declawed = declawed

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public struct CatAllOf: Codable {
1111

1212
public var declawed: Bool?
1313

14-
public init(declawed: Bool?) {
14+
public init(declawed: Bool? = nil) {
1515
self.declawed = declawed
1616
}
1717

samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public struct Category: Codable {
1212
public var id: Int64?
1313
public var name: String = "default-name"
1414

15-
public init(id: Int64?, name: String) {
15+
public init(id: Int64? = nil, name: String) {
1616
self.id = id
1717
self.name = name
1818
}

0 commit comments

Comments
 (0)