Skip to content

Commit 93beb8a

Browse files
committed
fix: correct param types in file representation (box/box-openapi#503)
1 parent 738090e commit 93beb8a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.codegen.json

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

src/schemas/fileFull.generated.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,11 @@ export interface FileFullRepresentationsEntriesPropertiesField {
211211
/**
212212
* Indicates if the representation is build up out of multiple
213213
* pages. */
214-
readonly paged?: boolean;
214+
readonly paged?: string;
215215
/**
216216
* Indicates if the representation can be used as a thumbnail of
217217
* the file. */
218-
readonly thumb?: boolean;
218+
readonly thumb?: string;
219219
readonly rawData?: SerializedData;
220220
}
221221
export type FileFullRepresentationsEntriesStatusStateField =
@@ -976,20 +976,20 @@ export function deserializeFileFullRepresentationsEntriesPropertiesField(
976976
}
977977
const dimensions: undefined | string =
978978
val.dimensions == void 0 ? void 0 : val.dimensions;
979-
if (!(val.paged == void 0) && !sdIsBoolean(val.paged)) {
979+
if (!(val.paged == void 0) && !sdIsString(val.paged)) {
980980
throw new BoxSdkError({
981981
message:
982-
'Expecting boolean for "paged" of type "FileFullRepresentationsEntriesPropertiesField"',
982+
'Expecting string for "paged" of type "FileFullRepresentationsEntriesPropertiesField"',
983983
});
984984
}
985-
const paged: undefined | boolean = val.paged == void 0 ? void 0 : val.paged;
986-
if (!(val.thumb == void 0) && !sdIsBoolean(val.thumb)) {
985+
const paged: undefined | string = val.paged == void 0 ? void 0 : val.paged;
986+
if (!(val.thumb == void 0) && !sdIsString(val.thumb)) {
987987
throw new BoxSdkError({
988988
message:
989-
'Expecting boolean for "thumb" of type "FileFullRepresentationsEntriesPropertiesField"',
989+
'Expecting string for "thumb" of type "FileFullRepresentationsEntriesPropertiesField"',
990990
});
991991
}
992-
const thumb: undefined | boolean = val.thumb == void 0 ? void 0 : val.thumb;
992+
const thumb: undefined | string = val.thumb == void 0 ? void 0 : val.thumb;
993993
return {
994994
dimensions: dimensions,
995995
paged: paged,

0 commit comments

Comments
 (0)