Show More
@@ -1,20 +1,20 b'' | |||||
1 | { |
|
1 | { | |
2 | "description": "custom json structure with references to generate notebook schema", |
|
2 | "description": "custom json structure with references to generate notebook schema", | |
3 | "notebook":{ |
|
3 | "notebook": { | |
4 | "type": "object", |
|
4 | "type": "object", | |
5 | "description": "notebook v4.0 root schema", |
|
5 | "description": "notebook v4.0 root schema", | |
6 | "$schema": "http://json-schema.org/draft-03/schema", |
|
6 | "$schema": "http://json-schema.org/draft-03/schema", | |
7 | "id": "#notebook", |
|
7 | "id": "#notebook", | |
8 | "required": true, |
|
8 | "required": true, | |
9 | "additionalProperties": false, |
|
9 | "additionalProperties": false, | |
10 | "properties":{ |
|
10 | "properties": { | |
11 | "metadata": { |
|
11 | "metadata": { | |
12 | "type": "object", |
|
12 | "type": "object", | |
13 | "id": "metadata", |
|
13 | "id": "metadata", | |
14 | "required": true, |
|
14 | "required": true, | |
15 | "description": "the metadata atribute can contain any additionnal information", |
|
15 | "description": "the metadata atribute can contain any additionnal information", | |
16 | "additionalProperties": true, |
|
16 | "additionalProperties": true, | |
17 | "properties":{ |
|
17 | "properties": { | |
18 | "name": { |
|
18 | "name": { | |
19 | "id": "name", |
|
19 | "id": "name", | |
20 | "description": "the title of the notebook", |
|
20 | "description": "the title of the notebook", | |
@@ -63,7 +63,7 b'' | |||||
63 | "id": "#cell", |
|
63 | "id": "#cell", | |
64 | "required": true, |
|
64 | "required": true, | |
65 | "additionalProperties": false, |
|
65 | "additionalProperties": false, | |
66 | "properties":{ |
|
66 | "properties": { | |
67 | "cell_type": { |
|
67 | "cell_type": { | |
68 | "type": "string", |
|
68 | "type": "string", | |
69 | "id": "cell_type", |
|
69 | "id": "cell_type", | |
@@ -100,18 +100,18 b'' | |||||
100 |
|
100 | |||
101 | "any_cell": { |
|
101 | "any_cell": { | |
102 | "description": "Meta cell type that match any cell type", |
|
102 | "description": "Meta cell type that match any cell type", | |
103 | "type": [{"$ref": "/text_cell"},{"$ref":"/code_cell"}], |
|
103 | "type": [{"$ref": "/text_cell"}, {"$ref":"/code_cell"}], | |
104 | "$schema": "http://json-schema.org/draft-03/schema" |
|
104 | "$schema": "http://json-schema.org/draft-03/schema" | |
105 | }, |
|
105 | }, | |
106 |
|
106 | |||
107 | "code_cell":{ |
|
107 | "code_cell": { | |
108 | "type": "object", |
|
108 | "type": "object", | |
109 | "$schema": "http://json-schema.org/draft-03/schema", |
|
109 | "$schema": "http://json-schema.org/draft-03/schema", | |
110 | "description": "Cell used to execute code", |
|
110 | "description": "Cell used to execute code", | |
111 | "id": "#cell", |
|
111 | "id": "#cell", | |
112 | "required": true, |
|
112 | "required": true, | |
113 | "additionalProperties": false, |
|
113 | "additionalProperties": false, | |
114 | "properties":{ |
|
114 | "properties": { | |
115 | "cell_type": { |
|
115 | "cell_type": { | |
116 | "type": "string", |
|
116 | "type": "string", | |
117 | "id": "cell_type", |
|
117 | "id": "cell_type", | |
@@ -144,7 +144,7 b'' | |||||
144 | "type": "array" |
|
144 | "type": "array" | |
145 | }, |
|
145 | }, | |
146 | "prompt_number": { |
|
146 | "prompt_number": { | |
147 | "type": ["integer","null"], |
|
147 | "type": ["integer", "null"], | |
148 | "required": false, |
|
148 | "required": false, | |
149 | "minimum": 0 |
|
149 | "minimum": 0 | |
150 | }, |
|
150 | }, |
General Comments 0
You need to be logged in to leave comments.
Login now