File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 20
20
21
21
### Fixed
22
22
- Improve safe mode for ` @graph ` use cases.
23
+ - Fix ` @json ` frame test 0069.
23
24
24
25
## 8.1.1 - 2023-02-25
25
26
Original file line number Diff line number Diff line change @@ -464,8 +464,9 @@ function _validateFrame(frame) {
464
464
465
465
if ( '@type' in frame [ 0 ] ) {
466
466
for ( const type of util . asArray ( frame [ 0 ] [ '@type' ] ) ) {
467
- // @id must be wildcard or an IRI
468
- if ( ! ( types . isObject ( type ) || url . isAbsolute ( type ) ) ||
467
+ // @type must be wildcard, IRI, or @json
468
+ if ( ! ( types . isObject ( type ) || url . isAbsolute ( type ) ||
469
+ ( type === '@json' ) ) ||
469
470
( types . isString ( type ) && type . indexOf ( '_:' ) === 0 ) ) {
470
471
throw new JsonLdError (
471
472
'Invalid JSON-LD syntax; invalid @type in frame.' ,
Original file line number Diff line number Diff line change @@ -247,7 +247,6 @@ const TEST_TYPES = {
247
247
// NOTE: idRegex format:
248
248
//MMM-manifest#tNNN$/,
249
249
idRegex : [
250
- / f r a m e - m a n i f e s t # t 0 0 6 9 $ / ,
251
250
]
252
251
} ,
253
252
fn : 'frame' ,
You can’t perform that action at this time.
0 commit comments