File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2020
2121### Fixed
2222- Improve safe mode for ` @graph ` use cases.
23+ - Fix ` @json ` frame test 0069.
2324
2425## 8.1.1 - 2023-02-25
2526
Original file line number Diff line number Diff line change @@ -464,8 +464,9 @@ function _validateFrame(frame) {
464464
465465 if ( '@type' in frame [ 0 ] ) {
466466 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' ) ) ||
469470 ( types . isString ( type ) && type . indexOf ( '_:' ) === 0 ) ) {
470471 throw new JsonLdError (
471472 '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 = {
247247 // NOTE: idRegex format:
248248 //MMM-manifest#tNNN$/,
249249 idRegex : [
250- / f r a m e - m a n i f e s t # t 0 0 6 9 $ / ,
251250 ]
252251 } ,
253252 fn : 'frame' ,
You can’t perform that action at this time.
0 commit comments