Skip to content

Commit e2e53be

Browse files
committed
[swift6] fix vapor build
1 parent ae5cfcc commit e2e53be

44 files changed

Lines changed: 0 additions & 574 deletions

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/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesAnyType.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public struct AdditionalPropertiesAnyType: Content, Hashable {
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(JSONValue.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
5858

59-
public static func == (lhs: AdditionalPropertiesAnyType, rhs: AdditionalPropertiesAnyType) -> Bool {
60-
lhs.name == rhs.name
61-
&& lhs.additionalProperties == rhs.additionalProperties
62-
}
6359

64-
public func hash(into hasher: inout Hasher) {
65-
hasher.combine(name?.hashValue)
66-
hasher.combine(additionalProperties.hashValue)
67-
}
6860
}
6961

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesArray.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public struct AdditionalPropertiesArray: Content, Hashable {
5656
additionalProperties = try additionalPropertiesContainer.decodeMap([JSONValue].self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
5858

59-
public static func == (lhs: AdditionalPropertiesArray, rhs: AdditionalPropertiesArray) -> Bool {
60-
lhs.name == rhs.name
61-
&& lhs.additionalProperties == rhs.additionalProperties
62-
}
6359

64-
public func hash(into hasher: inout Hasher) {
65-
hasher.combine(name?.hashValue)
66-
hasher.combine(additionalProperties.hashValue)
67-
}
6860
}
6961

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesBoolean.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public struct AdditionalPropertiesBoolean: Content, Hashable {
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
5858

59-
public static func == (lhs: AdditionalPropertiesBoolean, rhs: AdditionalPropertiesBoolean) -> Bool {
60-
lhs.name == rhs.name
61-
&& lhs.additionalProperties == rhs.additionalProperties
62-
}
6359

64-
public func hash(into hasher: inout Hasher) {
65-
hasher.combine(name?.hashValue)
66-
hasher.combine(additionalProperties.hashValue)
67-
}
6860
}
6961

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -67,34 +67,6 @@ public struct AdditionalPropertiesClass: Content, Hashable {
6767
try container.encodeIfPresent(anytype3, forKey: .anytype3)
6868
}
6969

70-
public static func == (lhs: AdditionalPropertiesClass, rhs: AdditionalPropertiesClass) -> Bool {
71-
lhs.mapString == rhs.mapString &&
72-
lhs.mapNumber == rhs.mapNumber &&
73-
lhs.mapInteger == rhs.mapInteger &&
74-
lhs.mapBoolean == rhs.mapBoolean &&
75-
lhs.mapArrayInteger == rhs.mapArrayInteger &&
76-
lhs.mapArrayAnytype == rhs.mapArrayAnytype &&
77-
lhs.mapMapString == rhs.mapMapString &&
78-
lhs.mapMapAnytype == rhs.mapMapAnytype &&
79-
lhs.anytype1 == rhs.anytype1 &&
80-
lhs.anytype2 == rhs.anytype2 &&
81-
lhs.anytype3 == rhs.anytype3
82-
83-
}
8470

85-
public func hash(into hasher: inout Hasher) {
86-
hasher.combine(mapString?.hashValue)
87-
hasher.combine(mapNumber?.hashValue)
88-
hasher.combine(mapInteger?.hashValue)
89-
hasher.combine(mapBoolean?.hashValue)
90-
hasher.combine(mapArrayInteger?.hashValue)
91-
hasher.combine(mapArrayAnytype?.hashValue)
92-
hasher.combine(mapMapString?.hashValue)
93-
hasher.combine(mapMapAnytype?.hashValue)
94-
hasher.combine(anytype1?.hashValue)
95-
hasher.combine(anytype2?.hashValue)
96-
hasher.combine(anytype3?.hashValue)
97-
98-
}
9971
}
10072

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesInteger.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public struct AdditionalPropertiesInteger: Content, Hashable {
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(Int.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
5858

59-
public static func == (lhs: AdditionalPropertiesInteger, rhs: AdditionalPropertiesInteger) -> Bool {
60-
lhs.name == rhs.name
61-
&& lhs.additionalProperties == rhs.additionalProperties
62-
}
6359

64-
public func hash(into hasher: inout Hasher) {
65-
hasher.combine(name?.hashValue)
66-
hasher.combine(additionalProperties.hashValue)
67-
}
6860
}
6961

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesNumber.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public struct AdditionalPropertiesNumber: Content, Hashable {
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(Double.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
5858

59-
public static func == (lhs: AdditionalPropertiesNumber, rhs: AdditionalPropertiesNumber) -> Bool {
60-
lhs.name == rhs.name
61-
&& lhs.additionalProperties == rhs.additionalProperties
62-
}
6359

64-
public func hash(into hasher: inout Hasher) {
65-
hasher.combine(name?.hashValue)
66-
hasher.combine(additionalProperties.hashValue)
67-
}
6860
}
6961

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesObject.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public struct AdditionalPropertiesObject: Content, Hashable {
5656
additionalProperties = try additionalPropertiesContainer.decodeMap([String: JSONValue].self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
5858

59-
public static func == (lhs: AdditionalPropertiesObject, rhs: AdditionalPropertiesObject) -> Bool {
60-
lhs.name == rhs.name
61-
&& lhs.additionalProperties == rhs.additionalProperties
62-
}
6359

64-
public func hash(into hasher: inout Hasher) {
65-
hasher.combine(name?.hashValue)
66-
hasher.combine(additionalProperties.hashValue)
67-
}
6860
}
6961

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesString.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public struct AdditionalPropertiesString: Content, Hashable {
5656
additionalProperties = try additionalPropertiesContainer.decodeMap(String.self, excludedKeys: nonAdditionalPropertyKeys)
5757
}
5858

59-
public static func == (lhs: AdditionalPropertiesString, rhs: AdditionalPropertiesString) -> Bool {
60-
lhs.name == rhs.name
61-
&& lhs.additionalProperties == rhs.additionalProperties
62-
}
6359

64-
public func hash(into hasher: inout Hasher) {
65-
hasher.combine(name?.hashValue)
66-
hasher.combine(additionalProperties.hashValue)
67-
}
6860
}
6961

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Animal.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ public struct Animal: Content, Hashable {
3131
try container.encodeIfPresent(color, forKey: .color)
3232
}
3333

34-
public static func == (lhs: Animal, rhs: Animal) -> Bool {
35-
lhs.className == rhs.className &&
36-
lhs.color == rhs.color
37-
38-
}
3934

40-
public func hash(into hasher: inout Hasher) {
41-
hasher.combine(className.hashValue)
42-
hasher.combine(color?.hashValue)
43-
44-
}
4535
}
4636

samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/ApiResponse.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,6 @@ public struct ApiResponse: Content, Hashable {
3535
try container.encodeIfPresent(message, forKey: .message)
3636
}
3737

38-
public static func == (lhs: ApiResponse, rhs: ApiResponse) -> Bool {
39-
lhs.code == rhs.code &&
40-
lhs.type == rhs.type &&
41-
lhs.message == rhs.message
42-
43-
}
4438

45-
public func hash(into hasher: inout Hasher) {
46-
hasher.combine(code?.hashValue)
47-
hasher.combine(type?.hashValue)
48-
hasher.combine(message?.hashValue)
49-
50-
}
5139
}
5240

0 commit comments

Comments
 (0)