forked from loafle/openapi-generator-original
[swift6] Add Identifiable conformance to supported models (#20166)
This commit is contained in:
@@ -31,3 +31,6 @@ public struct Category: Sendable, Codable, JSONEncodable, Hashable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
||||
extension Category: Identifiable {}
|
||||
|
||||
@@ -53,3 +53,6 @@ public struct Order: Sendable, Codable, JSONEncodable, Hashable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
||||
extension Order: Identifiable {}
|
||||
|
||||
@@ -56,3 +56,6 @@ public struct Pet: Sendable, Codable, JSONEncodable, Hashable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
||||
extension Pet: Identifiable {}
|
||||
|
||||
@@ -31,3 +31,6 @@ public struct Tag: Sendable, Codable, JSONEncodable, Hashable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
||||
extension Tag: Identifiable {}
|
||||
|
||||
@@ -56,3 +56,6 @@ public struct User: Sendable, Codable, JSONEncodable, Hashable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
||||
extension User: Identifiable {}
|
||||
|
||||
Reference in New Issue
Block a user