Skip to content

Commit

Permalink
Add param to user collab (box/box-openapi#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed Jul 18, 2024
1 parent 1e4cad7 commit 46c1606
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "25c4224", "specHash": "e95d6fa", "version": "1.2.0" }
{ "engineHash": "25c4224", "specHash": "137da0d", "version": "1.2.0" }
96 changes: 48 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/schemas/userCollaborations.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { sdIsMap } from '../serialization/json.js';
export class UserCollaborations extends UserBase {
readonly name?: string;
readonly login?: string;
readonly isActive?: boolean;
constructor(fields: UserCollaborations) {
super(fields);
}
Expand All @@ -33,6 +34,7 @@ export function serializeUserCollaborations(
...{
['name']: val.name == void 0 ? void 0 : val.name,
['login']: val.login == void 0 ? void 0 : val.login,
['is_active']: val.isActive == void 0 ? void 0 : val.isActive,
},
};
}
Expand All @@ -56,6 +58,13 @@ export function deserializeUserCollaborations(
});
}
const login: undefined | string = val.login == void 0 ? void 0 : val.login;
if (!(val.is_active == void 0) && !sdIsBoolean(val.is_active)) {
throw new BoxSdkError({
message: 'Expecting boolean for "is_active" of type "UserCollaborations"',
});
}
const isActive: undefined | boolean =
val.is_active == void 0 ? void 0 : val.is_active;
if (val.id == void 0) {
throw new BoxSdkError({
message: 'Expecting "id" of type "UserCollaborations" to be defined',
Expand All @@ -76,6 +85,7 @@ export function deserializeUserCollaborations(
return {
name: name,
login: login,
isActive: isActive,
id: id,
type: type,
} satisfies UserCollaborations;
Expand Down

0 comments on commit 46c1606

Please sign in to comment.