imagekit-developer/imagekit-ios

All keys in UploadAPIResponse should be optional

Closed this issue · 1 comments

ahnv commented

Since there is a feature to get only the required fields in the UploadAPI, if one of the required field is not passed in responseFields parameter, it will throw an encoding error

public let fileId, name, url, filePath, fileType: String
public let height, width: Int?
public let size: Int
public let tags: [String]?
public let isPrivateFile: Bool?
public let customCoordinates, metadata, thumbnailUrl: String?

ahnv commented

Fixed