Skip to content

Commit f8f7c32

Browse files
committed
Fix double optional
1 parent 3489b37 commit f8f7c32

File tree

90 files changed

+33
-545
lines changed

Some content is hidden

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

90 files changed

+33
-545
lines changed

Sources/AppwriteModels/AlgoArgon2.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ public class AlgoArgon2 {
77
/// Algo type.
88
public let type: String
99

10-
1110
/// Memory used to compute hash.
1211
public let memoryCost: Int
1312

14-
1513
/// Amount of time consumed to compute hash
1614
public let timeCost: Int
1715

18-
1916
/// Number of threads used to compute hash.
2017
public let threads: Int
2118

2219

23-
2420
init(
2521
type: String,
2622
memoryCost: Int,

Sources/AppwriteModels/AlgoBcrypt.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public class AlgoBcrypt {
88
public let type: String
99

1010

11-
1211
init(
1312
type: String
1413
) {

Sources/AppwriteModels/AlgoMd5.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public class AlgoMd5 {
88
public let type: String
99

1010

11-
1211
init(
1312
type: String
1413
) {

Sources/AppwriteModels/AlgoPhpass.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public class AlgoPhpass {
88
public let type: String
99

1010

11-
1211
init(
1312
type: String
1413
) {

Sources/AppwriteModels/AlgoScrypt.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,19 @@ public class AlgoScrypt {
77
/// Algo type.
88
public let type: String
99

10-
1110
/// CPU complexity of computed hash.
1211
public let costCpu: Int
1312

14-
1513
/// Memory complexity of computed hash.
1614
public let costMemory: Int
1715

18-
1916
/// Parallelization of computed hash.
2017
public let costParallel: Int
2118

22-
2319
/// Length used to compute hash.
2420
public let length: Int
2521

2622

27-
2823
init(
2924
type: String,
3025
costCpu: Int,

Sources/AppwriteModels/AlgoScryptModified.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ public class AlgoScryptModified {
77
/// Algo type.
88
public let type: String
99

10-
1110
/// Salt used to compute hash.
1211
public let salt: String
1312

14-
1513
/// Separator used to compute hash.
1614
public let saltSeparator: String
1715

18-
1916
/// Key used to compute hash.
2017
public let signerKey: String
2118

2219

23-
2420
init(
2521
type: String,
2622
salt: String,

Sources/AppwriteModels/AlgoSha.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public class AlgoSha {
88
public let type: String
99

1010

11-
1211
init(
1312
type: String
1413
) {

Sources/AppwriteModels/AttributeBoolean.swift

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,25 @@ public class AttributeBoolean {
77
/// Attribute Key.
88
public let key: String
99

10-
1110
/// Attribute type.
1211
public let type: String
1312

14-
1513
/// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1614
public let status: String
1715

18-
1916
/// Error message. Displays error generated on failure of creating or deleting an attribute.
2017
public let error: String
2118

22-
2319
/// Is attribute required?
2420
public let `required`: Bool
2521

26-
2722
/// Is attribute an array?
2823
public let array: Bool?
2924

30-
3125
/// Default value for attribute when not provided. Cannot be set when attribute is required.
3226
public let `default`: Bool?
3327

3428

35-
3629
init(
3730
key: String,
3831
type: String,
@@ -70,8 +63,8 @@ public class AttributeBoolean {
7063
status: map["status"] as! String,
7164
error: map["error"] as! String,
7265
`required`: map["required"] as! Bool,
73-
array: map["array"] as? Bool?,
74-
`default`: map["default"] as? Bool?
66+
array: map["array"] as? Bool,
67+
`default`: map["default"] as? Bool
7568
)
7669
}
7770
}

Sources/AppwriteModels/AttributeDatetime.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,28 @@ public class AttributeDatetime {
77
/// Attribute Key.
88
public let key: String
99

10-
1110
/// Attribute type.
1211
public let type: String
1312

14-
1513
/// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1614
public let status: String
1715

18-
1916
/// Error message. Displays error generated on failure of creating or deleting an attribute.
2017
public let error: String
2118

22-
2319
/// Is attribute required?
2420
public let `required`: Bool
2521

26-
2722
/// Is attribute an array?
2823
public let array: Bool?
2924

30-
3125
/// ISO 8601 format.
3226
public let format: String
3327

34-
3528
/// Default value for attribute when not provided. Only null is optional
3629
public let `default`: String?
3730

3831

39-
4032
init(
4133
key: String,
4234
type: String,
@@ -77,9 +69,9 @@ public class AttributeDatetime {
7769
status: map["status"] as! String,
7870
error: map["error"] as! String,
7971
`required`: map["required"] as! Bool,
80-
array: map["array"] as? Bool?,
72+
array: map["array"] as? Bool,
8173
format: map["format"] as! String,
82-
`default`: map["default"] as? String?
74+
`default`: map["default"] as? String
8375
)
8476
}
8577
}

Sources/AppwriteModels/AttributeEmail.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,28 @@ public class AttributeEmail {
77
/// Attribute Key.
88
public let key: String
99

10-
1110
/// Attribute type.
1211
public let type: String
1312

14-
1513
/// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1614
public let status: String
1715

18-
1916
/// Error message. Displays error generated on failure of creating or deleting an attribute.
2017
public let error: String
2118

22-
2319
/// Is attribute required?
2420
public let `required`: Bool
2521

26-
2722
/// Is attribute an array?
2823
public let array: Bool?
2924

30-
3125
/// String format.
3226
public let format: String
3327

34-
3528
/// Default value for attribute when not provided. Cannot be set when attribute is required.
3629
public let `default`: String?
3730

3831

39-
4032
init(
4133
key: String,
4234
type: String,
@@ -77,9 +69,9 @@ public class AttributeEmail {
7769
status: map["status"] as! String,
7870
error: map["error"] as! String,
7971
`required`: map["required"] as! Bool,
80-
array: map["array"] as? Bool?,
72+
array: map["array"] as? Bool,
8173
format: map["format"] as! String,
82-
`default`: map["default"] as? String?
74+
`default`: map["default"] as? String
8375
)
8476
}
8577
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy