File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 24382438 "@id": "ex:entity1"
24392439 }) ,
24402440 processingMode : "json-ld-1.1"
2441- }
2441+ } ,
2442+ "don't embed list elements" : {
2443+ frame : %({
2444+ "@context": {"ex": "http://example.org/"},
2445+ "ex:embed": {
2446+ "@list": [{"@embed": "@never"}]
2447+ }
2448+ }) ,
2449+ input : %({
2450+ "@context": {"ex": "http://example.org/"},
2451+ "@id": "ex:Sub1",
2452+ "ex:embed": {
2453+ "@list": [{
2454+ "@id": "ex:Sub2",
2455+ "ex:prop": "property"
2456+ }]
2457+ }
2458+ }) ,
2459+ output : %({
2460+ "@context": {"ex": "http://example.org/"},
2461+ "@id": "ex:Sub1",
2462+ "ex:embed": {"@list": [{"@id": "ex:Sub2"}]}
2463+ }) ,
2464+ processingMode : "json-ld-1.1"
2465+ } ,
24422466 } . each do |title , params |
24432467 it title do
24442468 do_frame ( params )
You can’t perform that action at this time.
0 commit comments