Skip to content

Commit c5a82eb

Browse files
committed
fix: Fix issues in box-openapi (box/box-openapi#527)
1 parent 5d40382 commit c5a82eb

File tree

6 files changed

+27
-8
lines changed

6 files changed

+27
-8
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.10.0" }
1+
{ "engineHash": "20cb559", "specHash": "a54170e", "version": "1.10.0" }

Box.Sdk.Gen/Managers/Files/UpdateFileByIdRequestBody.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public class UpdateFileByIdRequestBody : ISerializable {
2929
/// <summary>
3030
/// An optional different name for the file. This can be used to
3131
/// rename the file.
32+
///
33+
/// File names must be unique within their parent folder. The name check is case-insensitive, so a file
34+
/// named `New File` cannot be created in a parent folder that already contains a folder named `new file`.
3235
/// </summary>
3336
[JsonPropertyName("name")]
3437
public string? Name { get; init; }

Box.Sdk.Gen/Managers/Folders/CreateFolderRequestBody.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ public class CreateFolderRequestBody : ISerializable {
1111
/// <summary>
1212
/// The name for the new folder.
1313
///
14-
/// There are some restrictions to the file name. Names containing
14+
/// The following restrictions to folder names apply: names containing
1515
/// non-printable ASCII characters, forward and backward slashes
16-
/// (`/`, `\`), as well as names with trailing spaces are
17-
/// prohibited.
16+
/// (`/`, `\`), names with trailing spaces, and names `.` and `..` are
17+
/// not allowed.
1818
///
19-
/// Additionally, the names `.` and `..` are
20-
/// not allowed either.
19+
/// Folder names must be unique within their parent folder. The name check is case-insensitive,
20+
/// so a folder named `New Folder` cannot be created in a parent folder that already contains
21+
/// a folder named `new folder`.
2122
/// </summary>
2223
[JsonPropertyName("name")]
2324
public string Name { get; }

Box.Sdk.Gen/Managers/Folders/UpdateFolderByIdRequestBody.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ public class UpdateFolderByIdRequestBody : ISerializable {
2222

2323
/// <summary>
2424
/// The optional new name for this folder.
25+
///
26+
/// The following restrictions to folder names apply: names containing
27+
/// non-printable ASCII characters, forward and backward slashes
28+
/// (`/`, `\`), names with trailing spaces, and names `.` and `..` are
29+
/// not allowed.
30+
///
31+
/// Folder names must be unique within their parent folder. The name check is case-insensitive,
32+
/// so a folder named `New Folder` cannot be created in a parent folder that already contains
33+
/// a folder named `new folder`.
2534
/// </summary>
2635
[JsonPropertyName("name")]
2736
public string? Name { get; init; }

Box.Sdk.Gen/Managers/Uploads/UploadFileRequestBodyAttributesField.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
namespace Box.Sdk.Gen.Managers {
1010
public class UploadFileRequestBodyAttributesField : ISerializable {
1111
/// <summary>
12-
/// The name of the file
12+
/// The name of the file.
13+
///
14+
/// File names must be unique within their parent folder. The name check is case-insensitive, so a file
15+
/// named `New File` cannot be created in a parent folder that already contains a folder named `new file`.
1316
/// </summary>
1417
[JsonPropertyName("name")]
1518
public string Name { get; }

Box.Sdk.Gen/Managers/Uploads/UploadWithPreflightCheckRequestBodyAttributesField.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
namespace Box.Sdk.Gen.Managers {
1010
public class UploadWithPreflightCheckRequestBodyAttributesField : ISerializable {
1111
/// <summary>
12-
/// The name of the file
12+
/// The name of the file.
13+
///
14+
/// File names must be unique within their parent folder. The name check is case-insensitive, so a file
15+
/// named `New File` cannot be created in a parent folder that already contains a folder named `new file`.
1316
/// </summary>
1417
[JsonPropertyName("name")]
1518
public string Name { get; }

0 commit comments

Comments
 (0)