Skip to content

Commit 2011b62

Browse files
committed
Corrects API availability logic
1 parent b2d4fa9 commit 2011b62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/TecoServiceGenerator/models/APIModel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ struct APIModel: Codable {
1818
switch self.status {
1919
case .online:
2020
return nil
21-
case .deprecated:
22-
return "deprecated"
2321
case .offline:
22+
return "deprecated"
23+
case .deprecated:
2424
return "unavailable"
2525
}
2626
}
@@ -53,8 +53,8 @@ struct APIModel: Codable {
5353

5454
enum Status: String, Codable {
5555
case online
56-
case deprecated
5756
case offline
57+
case deprecated
5858
}
5959
}
6060

0 commit comments

Comments
 (0)