Skip to content

Commit c642c84

Browse files
committed
feat: add new schema
1 parent b4ade43 commit c642c84

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

schema/outputs.schema.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://spec.myst.tools/json-schema/outputs.schema.json",
4+
"description": "execution output container types",
5+
"$defs": {
6+
"Output": {
7+
"type": "object",
8+
"description": "Container for execution output from a Jupyer Kernel",
9+
"allOf": [
10+
{
11+
"properties": {
12+
"type": {
13+
"const": "output"
14+
},
15+
"meta": {
16+
"description": "Raw IOutput data",
17+
"$ref": "https://raw.githubusercontent.com/jupyter/nbformat/refs/heads/main/nbformat/v4/nbformat.v4.5.schema.json#/definitions/output"
18+
},
19+
"children": {
20+
"description": "Children from parsing the raw IOutput data",
21+
"type": "array",
22+
"items": {
23+
"$ref": "unist.schema.json#/$defs/node"
24+
}
25+
},
26+
"position": {},
27+
"data": {}
28+
},
29+
"additionalProperties": false
30+
},
31+
{ "$ref": "unist.schema.json#/$defs/Parent" }
32+
]
33+
},
34+
"Outputs": {:w
35+
36+
"type": "object",
37+
"description": "Container for a collection of execution outputs from a Jupyer Kernel",
38+
"allOf": [
39+
{
40+
"properties": {
41+
"type": {
42+
"const": "outputs"
43+
},
44+
"children": {
45+
"description": "Individual output nodes",
46+
"type": "array",
47+
"items": {
48+
"$ref": "#/$defs/Output"
49+
}
50+
},
51+
"position": {},
52+
"data": {}
53+
},
54+
"additionalProperties": false
55+
},
56+
{ "$ref": "unist.schema.json#/$defs/Parent" }
57+
]
58+
}
59+
60+
}
61+
}

0 commit comments

Comments
 (0)