Skip to content

Commit dcc0fb3

Browse files
Merge pull request #715 from w3c/patch-20220829095941639
Add patch for ed/idl/json-ld-framing.idl
2 parents 68a1f67 + c0233f1 commit dcc0fb3

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
From e6dbbbb8be51eda460a4d9e362c57bc1749d3fef Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Mon, 29 Aug 2022 11:57:28 +0200
4+
Subject: [PATCH] Add IDL patch for JSON-LD Framing API
5+
6+
See https://github.com/w3c/json-ld-framing/pull/135
7+
---
8+
ed/idl/json-ld-framing.idl | 16 ++--------------
9+
1 file changed, 2 insertions(+), 14 deletions(-)
10+
11+
diff --git a/ed/idl/json-ld-framing.idl b/ed/idl/json-ld-framing.idl
12+
index 597e5fe13..71459de9e 100644
13+
--- a/ed/idl/json-ld-framing.idl
14+
+++ b/ed/idl/json-ld-framing.idl
15+
@@ -3,25 +3,14 @@
16+
// (https://github.com/w3c/webref)
17+
// Source: JSON-LD 1.1 Framing (https://w3c.github.io/json-ld-framing/)
18+
19+
-/*
20+
- * The JsonLd interface is created to expose the JsonLdProcessor interface.
21+
- */
22+
-[Global=JsonLd, Exposed=JsonLd]
23+
-interface JsonLd {};
24+
-
25+
[Exposed=JsonLd]
26+
-interface JsonLdProcessor {
27+
- constructor();
28+
+partial interface JsonLdProcessor {
29+
static Promise<JsonLdRecord> frame(
30+
JsonLdInput input,
31+
JsonLdInput frame,
32+
optional JsonLdOptions options = {});
33+
};
34+
35+
-typedef record<USVString, any> JsonLdRecord;
36+
-
37+
-typedef (JsonLdRecord or sequence<JsonLdRecord> or USVString or RemoteDocument) JsonLdInput;
38+
-
39+
dictionary JsonLdFramingError {
40+
JsonLdFramingErrorCode code;
41+
USVString? message = null;
42+
@@ -31,14 +20,13 @@ enum JsonLdFramingErrorCode {
43+
"invalid @embed value"
44+
};
45+
46+
-dictionary JsonLdOptions {
47+
+partial dictionary JsonLdOptions {
48+
(JsonLdEmbed or boolean) embed = "@once";
49+
boolean explicit = false;
50+
boolean omitDefault = false;
51+
boolean omitGraph;
52+
boolean requireAll = false;
53+
boolean frameDefault = false;
54+
- boolean ordered = false;
55+
};
56+
57+
enum JsonLdEmbed {
58+
--
59+
2.36.0.windows.1
60+

0 commit comments

Comments
 (0)