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) {
16351635 _computeJsonObjectValue ( range ) {
16361636 const pKey = this . _getAmfKey ( this . ns . w3 . shacl . property ) ;
16371637 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+
16381642 if ( properties && properties . length ) {
16391643 return this . _jsonExampleFromProperties ( properties ) ;
16401644 }
1645+ if ( additionalProperties && additionalProperties . length ) {
1646+ return this . _jsonExampleFromProperties ( this . _ensureArray ( additionalProperties [ 0 ] [ pKey ] ) ) ;
1647+ }
1648+
16411649 return { } ;
16421650 }
16431651
You can’t perform that action at this time.
0 commit comments