We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d782d8 commit 14361bcCopy full SHA for 14361bc
src/ExampleGenerator.js
@@ -1396,6 +1396,9 @@ export class ExampleGenerator extends AmfHelperMixin(Object) {
1396
*/
1397
_jsonExampleFromProperties(properties) {
1398
const result = {};
1399
+ if (!properties) {
1400
+ return result;
1401
+ }
1402
for (let i = 0, len = properties.length; i < len; i++) {
1403
const property = properties[i];
1404
const name = this._getValue(property, this.ns.w3.shacl.name);
0 commit comments