Skip to content

Commit 8c15e14

Browse files
committed
External resources: JSON Schema
Signed-off-by: Fabio José <[email protected]>
1 parent ba2d47f commit 8c15e14

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

ext/spec_0_2.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$ref": "#/definitions/event",
3+
"definitions": {
4+
"specversion": {
5+
"type": "string",
6+
"minLength": 1,
7+
"const": "0.2"
8+
},
9+
"contenttype": {
10+
"type": "string"
11+
},
12+
"data": {
13+
"type": [
14+
"object",
15+
"string"
16+
]
17+
},
18+
"event": {
19+
"properties": {
20+
"specversion": {
21+
"$ref": "#/definitions/specversion"
22+
},
23+
"contenttype": {
24+
"$ref": "#/definitions/contenttype"
25+
},
26+
"data": {
27+
"$ref": "#/definitions/data"
28+
},
29+
"id": {
30+
"$ref": "#/definitions/id"
31+
},
32+
"time": {
33+
"$ref": "#/definitions/time"
34+
},
35+
"type": {
36+
"$ref": "#/definitions/type"
37+
},
38+
"extensions": {
39+
"$ref": "#/definitions/extensions"
40+
},
41+
"source": {
42+
"$ref": "#/definitions/source"
43+
}
44+
},
45+
"required": [
46+
"specversion",
47+
"id",
48+
"type",
49+
"source"
50+
],
51+
"type": "object"
52+
},
53+
"id": {
54+
"type": "string",
55+
"minLength": 1
56+
},
57+
"time": {
58+
"format": "date-time",
59+
"type": "string"
60+
},
61+
"type": {
62+
"type": "string",
63+
"minLength": 1
64+
},
65+
"extensions": {
66+
"type": "object"
67+
},
68+
"source": {
69+
"format": "uri-reference",
70+
"type": "string"
71+
}
72+
},
73+
"type": "object"
74+
}

0 commit comments

Comments
 (0)