Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 64b3131

Browse files
committed
PATCH: fix RecursiveFolderChildren model to allow an empty children field
1 parent 11afdc9 commit 64b3131

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

docs/RecursiveFolderChildren.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
1717
**size** | **Number** | | [optional]
1818
**ifcId** | **Number** | | [optional]
1919
**file** | **String** | | [optional]
20-
**children** | [**[RecursiveFolderChildren]**](RecursiveFolderChildren.md) | |
20+
**children** | [**[RecursiveFolderChildren]**](RecursiveFolderChildren.md) | | [optional]
2121

2222

2323

src/model/RecursiveFolderChildren.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,23 @@ class RecursiveFolderChildren {
2828
* @param name {String}
2929
* @param createdAt {Date}
3030
* @param updatedAt {Date}
31-
* @param children {Array.<module:model/RecursiveFolderChildren>}
3231
*/
33-
constructor(id, parentId, name, createdAt, updatedAt, children) {
32+
constructor(id, parentId, name, createdAt, updatedAt) {
3433

35-
RecursiveFolderChildren.initialize(this, id, parentId, name, createdAt, updatedAt, children);
34+
RecursiveFolderChildren.initialize(this, id, parentId, name, createdAt, updatedAt);
3635
}
3736

3837
/**
3938
* Initializes the fields of this object.
4039
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
4140
* Only for internal use.
4241
*/
43-
static initialize(obj, id, parentId, name, createdAt, updatedAt, children) {
42+
static initialize(obj, id, parentId, name, createdAt, updatedAt) {
4443
obj['id'] = id;
4544
obj['parent_id'] = parentId;
4645
obj['name'] = name;
4746
obj['created_at'] = createdAt;
4847
obj['updated_at'] = updatedAt;
49-
obj['children'] = children;
5048
}
5149

5250
/**

0 commit comments

Comments
 (0)