Skip to content

Commit b2f9bd5

Browse files
committed
change id to required in filerequest
1 parent eb7134e commit b2f9bd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Responses/FileRequest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final class FileRequest: BoxModel {
5353
// MARK: - Properties
5454

5555
/// The unique identifier for this file request.
56-
public let id: String?
56+
public let id: String
5757
/// The title of file request. This is shown in the Box UI to users uploading files.
5858
public let title: String?
5959
/// The optional description of this file request. This is shown in the Box UI to users uploading files.
@@ -98,7 +98,7 @@ public final class FileRequest: BoxModel {
9898

9999
type = itemType
100100
rawData = json
101-
id = try BoxJSONDecoder.optionalDecode(json: json, forKey: "id")
101+
id = try BoxJSONDecoder.decode(json: json, forKey: "id")
102102
title = try BoxJSONDecoder.optionalDecode(json: json, forKey: "title")
103103
description = try BoxJSONDecoder.optionalDecode(json: json, forKey: "description")
104104
status = try BoxJSONDecoder.optionalDecodeEnum(json: json, forKey: "status")

0 commit comments

Comments
 (0)