Skip to content

Commit ef3c4ff

Browse files
committed
fix: Fix issues in box-openapi (box/box-openapi#527)
1 parent 9ff4d9f commit ef3c4ff

File tree

5 files changed

+35
-16
lines changed

5 files changed

+35
-16
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "20cb559", "specHash": "2da99e0", "version": "1.15.1" }
1+
{ "engineHash": "20cb559", "specHash": "a54170e", "version": "1.15.1" }

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/managers/files.generated.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,10 @@ export interface UpdateFileByIdRequestBodyCollectionsField {
452452
export interface UpdateFileByIdRequestBody {
453453
/**
454454
* An optional different name for the file. This can be used to
455-
* rename the file. */
455+
* rename the file.
456+
*
457+
* File names must be unique within their parent folder. The name check is case-insensitive, so a file
458+
* named `New File` cannot be created in a parent folder that already contains a folder named `new file`. */
456459
readonly name?: string;
457460
/**
458461
* The description for a file. This can be seen in the right-hand sidebar panel

src/managers/folders.generated.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,16 @@ export interface UpdateFolderByIdRequestBodyCollectionsField {
469469
}
470470
export interface UpdateFolderByIdRequestBody {
471471
/**
472-
* The optional new name for this folder. */
472+
* The optional new name for this folder.
473+
*
474+
* The following restrictions to folder names apply: names containing
475+
* non-printable ASCII characters, forward and backward slashes
476+
* (`/`, `\`), names with trailing spaces, and names `.` and `..` are
477+
* not allowed.
478+
*
479+
* Folder names must be unique within their parent folder. The name check is case-insensitive,
480+
* so a folder named `New Folder` cannot be created in a parent folder that already contains
481+
* a folder named `new folder`. */
473482
readonly name?: string;
474483
/**
475484
* The optional description of this folder */
@@ -811,13 +820,14 @@ export interface CreateFolderRequestBody {
811820
/**
812821
* The name for the new folder.
813822
*
814-
* There are some restrictions to the file name. Names containing
823+
* The following restrictions to folder names apply: names containing
815824
* non-printable ASCII characters, forward and backward slashes
816-
* (`/`, `\`), as well as names with trailing spaces are
817-
* prohibited.
825+
* (`/`, `\`), names with trailing spaces, and names `.` and `..` are
826+
* not allowed.
818827
*
819-
* Additionally, the names `.` and `..` are
820-
* not allowed either. */
828+
* Folder names must be unique within their parent folder. The name check is case-insensitive,
829+
* so a folder named `New Folder` cannot be created in a parent folder that already contains
830+
* a folder named `new folder`. */
821831
readonly name: string;
822832
/**
823833
* The parent folder to create the new folder within. */

src/managers/uploads.generated.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ export interface UploadFileRequestBodyAttributesParentField {
292292
}
293293
export interface UploadFileRequestBodyAttributesField {
294294
/**
295-
* The name of the file */
295+
* The name of the file.
296+
*
297+
* File names must be unique within their parent folder. The name check is case-insensitive, so a file
298+
* named `New File` cannot be created in a parent folder that already contains a folder named `new file`. */
296299
readonly name: string;
297300
/**
298301
* The parent folder to upload the file to */
@@ -396,7 +399,10 @@ export interface UploadWithPreflightCheckRequestBodyAttributesParentField {
396399
}
397400
export interface UploadWithPreflightCheckRequestBodyAttributesField {
398401
/**
399-
* The name of the file */
402+
* The name of the file.
403+
*
404+
* File names must be unique within their parent folder. The name check is case-insensitive, so a file
405+
* named `New File` cannot be created in a parent folder that already contains a folder named `new file`. */
400406
readonly name: string;
401407
/**
402408
* The parent folder to upload the file to */

0 commit comments

Comments
 (0)