@@ -431,7 +431,7 @@ async function _expandObject({
431
431
const isJsonType = element [ typeKey ] &&
432
432
_expandIri ( activeCtx ,
433
433
( _isArray ( element [ typeKey ] ) ? element [ typeKey ] [ 0 ] : element [ typeKey ] ) ,
434
- { vocab : true } , { ...options , typeExpansion : true } ) === '@json' ;
434
+ { vocab : true } , { ...options , typeExpansion : true } ) === '@json' ;
435
435
436
436
for ( const key of keys ) {
437
437
let value = element [ key ] ;
@@ -527,7 +527,8 @@ async function _expandObject({
527
527
value = Object . fromEntries ( Object . entries ( value ) . map ( ( [ k , v ] ) => [
528
528
_expandIri ( typeScopedContext , k , { vocab : true } ) ,
529
529
_asArray ( v ) . map ( vv =>
530
- _expandIri ( typeScopedContext , vv , { base : true , vocab : true } , { ...options , typeExpansion : true } )
530
+ _expandIri ( typeScopedContext , vv , { base : true , vocab : true } ,
531
+ { ...options , typeExpansion : true } )
531
532
)
532
533
] ) ) ;
533
534
}
@@ -537,7 +538,8 @@ async function _expandObject({
537
538
_asArray ( value ) . map ( v =>
538
539
_isString ( v ) ?
539
540
_expandIri ( typeScopedContext , v ,
540
- { base : true , vocab : true } , { ...options , typeExpansion : true } ) : v ) ,
541
+ { base : true , vocab : true } ,
542
+ { ...options , typeExpansion : true } ) : v ) ,
541
543
{ propertyIsArray : options . isFrame } ) ;
542
544
continue ;
543
545
}
@@ -937,7 +939,8 @@ function _expandValue({activeCtx, activeProperty, value, options}) {
937
939
if ( expandedProperty === '@id' ) {
938
940
return _expandIri ( activeCtx , value , { base : true } , options ) ;
939
941
} else if ( expandedProperty === '@type' ) {
940
- return _expandIri ( activeCtx , value , { vocab : true , base : true } , { ...options , typeExpansion : true } ) ;
942
+ return _expandIri ( activeCtx , value , { vocab : true , base : true } ,
943
+ { ...options , typeExpansion : true } ) ;
941
944
}
942
945
943
946
// get type definition from context
0 commit comments