Skip to content

Commit

Permalink
fix: correct param types in file representation (box/box-openapi#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed Jan 21, 2025
1 parent 738090e commit 93beb8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "b5ed925", "specHash": "091b558", "version": "1.10.0" }
{ "engineHash": "b5ed925", "specHash": "99792c6", "version": "1.10.0" }
16 changes: 8 additions & 8 deletions src/schemas/fileFull.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ export interface FileFullRepresentationsEntriesPropertiesField {
/**
* Indicates if the representation is build up out of multiple
* pages. */
readonly paged?: boolean;
readonly paged?: string;
/**
* Indicates if the representation can be used as a thumbnail of
* the file. */
readonly thumb?: boolean;
readonly thumb?: string;
readonly rawData?: SerializedData;
}
export type FileFullRepresentationsEntriesStatusStateField =
Expand Down Expand Up @@ -976,20 +976,20 @@ export function deserializeFileFullRepresentationsEntriesPropertiesField(
}
const dimensions: undefined | string =
val.dimensions == void 0 ? void 0 : val.dimensions;
if (!(val.paged == void 0) && !sdIsBoolean(val.paged)) {
if (!(val.paged == void 0) && !sdIsString(val.paged)) {
throw new BoxSdkError({
message:
'Expecting boolean for "paged" of type "FileFullRepresentationsEntriesPropertiesField"',
'Expecting string for "paged" of type "FileFullRepresentationsEntriesPropertiesField"',
});
}
const paged: undefined | boolean = val.paged == void 0 ? void 0 : val.paged;
if (!(val.thumb == void 0) && !sdIsBoolean(val.thumb)) {
const paged: undefined | string = val.paged == void 0 ? void 0 : val.paged;
if (!(val.thumb == void 0) && !sdIsString(val.thumb)) {
throw new BoxSdkError({
message:
'Expecting boolean for "thumb" of type "FileFullRepresentationsEntriesPropertiesField"',
'Expecting string for "thumb" of type "FileFullRepresentationsEntriesPropertiesField"',
});
}
const thumb: undefined | boolean = val.thumb == void 0 ? void 0 : val.thumb;
const thumb: undefined | string = val.thumb == void 0 ? void 0 : val.thumb;
return {
dimensions: dimensions,
paged: paged,
Expand Down

0 comments on commit 93beb8a

Please sign in to comment.