File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1635,9 +1635,17 @@ export class ExampleGenerator extends AmfHelperMixin(Object) {
1635
1635
_computeJsonObjectValue ( range ) {
1636
1636
const pKey = this . _getAmfKey ( this . ns . w3 . shacl . property ) ;
1637
1637
const properties = this . _ensureArray ( range [ pKey ] ) ;
1638
+
1639
+ const additionalPropertiesKey = this . _getAmfKey ( this . ns . w3 . shacl . additionalPropertiesSchema ) ;
1640
+ const additionalProperties = this . _ensureArray ( range [ additionalPropertiesKey ] ) ;
1641
+
1638
1642
if ( properties && properties . length ) {
1639
1643
return this . _jsonExampleFromProperties ( properties ) ;
1640
1644
}
1645
+ if ( additionalProperties && additionalProperties . length ) {
1646
+ return this . _jsonExampleFromProperties ( this . _ensureArray ( additionalProperties [ 0 ] [ pKey ] ) ) ;
1647
+ }
1648
+
1641
1649
return { } ;
1642
1650
}
1643
1651
You can’t perform that action at this time.
0 commit comments