Skip to content

Commit 58ff930

Browse files
fix: Correct types of paged and thumb properties in File representation (box/box-openapi#503) (#347)
1 parent 8ef2533 commit 58ff930

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "ead925a", "specHash": "091b558", "version": "0.5.0" }
1+
{ "engineHash": "b5ed925", "specHash": "99792c6", "version": "0.5.0" }

Sources/Schemas/FileFull/FileFullRepresentationsEntriesPropertiesField.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ public class FileFullRepresentationsEntriesPropertiesField: Codable {
1212

1313
/// Indicates if the representation is build up out of multiple
1414
/// pages.
15-
public let paged: Bool?
15+
public let paged: String?
1616

1717
/// Indicates if the representation can be used as a thumbnail of
1818
/// the file.
19-
public let thumb: Bool?
19+
public let thumb: String?
2020

2121
/// Initializer for a FileFullRepresentationsEntriesPropertiesField.
2222
///
@@ -26,7 +26,7 @@ public class FileFullRepresentationsEntriesPropertiesField: Codable {
2626
/// pages.
2727
/// - thumb: Indicates if the representation can be used as a thumbnail of
2828
/// the file.
29-
public init(dimensions: String? = nil, paged: Bool? = nil, thumb: Bool? = nil) {
29+
public init(dimensions: String? = nil, paged: String? = nil, thumb: String? = nil) {
3030
self.dimensions = dimensions
3131
self.paged = paged
3232
self.thumb = thumb
@@ -35,8 +35,8 @@ public class FileFullRepresentationsEntriesPropertiesField: Codable {
3535
required public init(from decoder: Decoder) throws {
3636
let container = try decoder.container(keyedBy: CodingKeys.self)
3737
dimensions = try container.decodeIfPresent(String.self, forKey: .dimensions)
38-
paged = try container.decodeIfPresent(Bool.self, forKey: .paged)
39-
thumb = try container.decodeIfPresent(Bool.self, forKey: .thumb)
38+
paged = try container.decodeIfPresent(String.self, forKey: .paged)
39+
thumb = try container.decodeIfPresent(String.self, forKey: .thumb)
4040
}
4141

4242
public func encode(to encoder: Encoder) throws {

0 commit comments

Comments
 (0)