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

Commit f7f2988

Browse files
committed
MINOR: Add IFC warnings
1 parent 8cbb45b commit f7f2988

6 files changed

Lines changed: 36 additions & 4 deletions

File tree

docs/Ifc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
2121
**xktFile** | **String** | | [optional]
2222
**projectId** | **String** | | [optional]
2323
**worldPosition** | **[Number]** | [x,y,z] array of the position of the local_placement in world coordinates | [optional]
24-
**errors** | **[String]** | List for warnings and errors that happened during IFC processing | [optional]
24+
**errors** | **[String]** | List of errors that happened during IFC processing | [optional]
25+
**warnings** | **[String]** | List of warnings that happened during IFC processing | [optional]
2526

2627

docs/IfcErrors.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**errors** | **[String]** | List for warnings and errors that happened during IFC processing | [optional]
7+
**errors** | **[String]** | List of errors that happened during IFC processing | [optional]
8+
**warnings** | **[String]** | List of warnings that happened during IFC processing | [optional]
89

910

src/model/Ifc.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ class Ifc {
103103
if (data.hasOwnProperty('errors')) {
104104
obj['errors'] = ApiClient.convertToType(data['errors'], ['String']);
105105
}
106+
if (data.hasOwnProperty('warnings')) {
107+
obj['warnings'] = ApiClient.convertToType(data['warnings'], ['String']);
108+
}
106109
}
107110
return obj;
108111
}
@@ -197,11 +200,17 @@ Ifc.prototype['project_id'] = undefined;
197200
Ifc.prototype['world_position'] = undefined;
198201

199202
/**
200-
* List for warnings and errors that happened during IFC processing
203+
* List of errors that happened during IFC processing
201204
* @member {Array.<String>} errors
202205
*/
203206
Ifc.prototype['errors'] = undefined;
204207

208+
/**
209+
* List of warnings that happened during IFC processing
210+
* @member {Array.<String>} warnings
211+
*/
212+
Ifc.prototype['warnings'] = undefined;
213+
205214

206215

207216

src/model/IfcErrors.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ class IfcErrors {
5050
if (data.hasOwnProperty('errors')) {
5151
obj['errors'] = ApiClient.convertToType(data['errors'], ['String']);
5252
}
53+
if (data.hasOwnProperty('warnings')) {
54+
obj['warnings'] = ApiClient.convertToType(data['warnings'], ['String']);
55+
}
5356
}
5457
return obj;
5558
}
@@ -58,11 +61,17 @@ class IfcErrors {
5861
}
5962

6063
/**
61-
* List for warnings and errors that happened during IFC processing
64+
* List of errors that happened during IFC processing
6265
* @member {Array.<String>} errors
6366
*/
6467
IfcErrors.prototype['errors'] = undefined;
6568

69+
/**
70+
* List of warnings that happened during IFC processing
71+
* @member {Array.<String>} warnings
72+
*/
73+
IfcErrors.prototype['warnings'] = undefined;
74+
6675

6776

6877

test/model/Ifc.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@
162162
//expect(instance).to.be();
163163
});
164164

165+
it('should have the property warnings (base name: "warnings")', function() {
166+
// uncomment below and update the code to test the property warnings
167+
//var instane = new bimdata.Ifc();
168+
//expect(instance).to.be();
169+
});
170+
165171
});
166172

167173
}));

test/model/IfcErrors.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
//expect(instance).to.be();
6161
});
6262

63+
it('should have the property warnings (base name: "warnings")', function() {
64+
// uncomment below and update the code to test the property warnings
65+
//var instane = new bimdata.IfcErrors();
66+
//expect(instance).to.be();
67+
});
68+
6369
});
6470

6571
}));

0 commit comments

Comments
 (0)