Show More
@@ -1,166 +1,166 | |||||
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 v3.0 root schema", |
|
5 | "description": "notebook v3.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", | |
21 | "type": "string", |
|
21 | "type": "string", | |
22 | "id": "name", |
|
22 | "id": "name", | |
23 | "required": true |
|
23 | "required": true | |
24 | } |
|
24 | } | |
25 | } |
|
25 | } | |
26 | }, |
|
26 | }, | |
27 | "nbformat_minor": { |
|
27 | "nbformat_minor": { | |
28 | "description": "Notebook format, minor number. Incremented for slight variation of notebook format.", |
|
28 | "description": "Notebook format, minor number. Incremented for slight variation of notebook format.", | |
29 |
"type": " |
|
29 | "type": "integer", | |
30 | "id": "nbformat_minor", |
|
30 | "id": "nbformat_minor", | |
31 | "required": true |
|
31 | "required": true | |
32 | }, |
|
32 | }, | |
33 | "nbformat": { |
|
33 | "nbformat": { | |
34 | "description": "Notebook format, major number. Incremented between backward incompatible change is introduced.", |
|
34 | "description": "Notebook format, major number. Incremented between backward incompatible change is introduced.", | |
35 |
"type": " |
|
35 | "type": "integer", | |
36 | "id": "nbformat", |
|
36 | "id": "nbformat", | |
37 | "required": true |
|
37 | "required": true | |
38 | }, |
|
38 | }, | |
39 | "worksheets": { |
|
39 | "worksheets": { | |
40 | "description": "Array of worksheet, not used by the current implementation of ipython yet", |
|
40 | "description": "Array of worksheet, not used by the current implementation of ipython yet", | |
41 | "type": "array", |
|
41 | "type": "array", | |
42 | "id": "worksheets", |
|
42 | "id": "worksheets", | |
43 | "required": true, |
|
43 | "required": true, | |
44 | "items": {"$ref": "/worksheet"} |
|
44 | "items": {"$ref": "/worksheet"} | |
45 | } |
|
45 | } | |
46 | } |
|
46 | } | |
47 | }, |
|
47 | }, | |
48 |
|
48 | |||
49 | "worksheet": { |
|
49 | "worksheet": { | |
50 | "additionalProperties": false, |
|
50 | "additionalProperties": false, | |
51 | "properties":{ |
|
51 | "properties":{ | |
52 | "cells": { |
|
52 | "cells": { | |
53 | "type": "array", |
|
53 | "type": "array", | |
54 | "$schema": "http://json-schema.org/draft-03/schema", |
|
54 | "$schema": "http://json-schema.org/draft-03/schema", | |
55 | "description": "array of cells of the current worksheet", |
|
55 | "description": "array of cells of the current worksheet", | |
56 | "id": "#cells", |
|
56 | "id": "#cells", | |
57 | "required": true, |
|
57 | "required": true, | |
58 | "items": {"$ref": "/any_cell"} |
|
58 | "items": {"$ref": "/any_cell"} | |
59 |
|
59 | |||
60 | }, |
|
60 | }, | |
61 | "metadata": { |
|
61 | "metadata": { | |
62 | "type": "object", |
|
62 | "type": "object", | |
63 | "description": "metadata of the current worksheet", |
|
63 | "description": "metadata of the current worksheet", | |
64 | "id": "metadata", |
|
64 | "id": "metadata", | |
65 | "required": true |
|
65 | "required": true | |
66 | } |
|
66 | } | |
67 | } |
|
67 | } | |
68 | }, |
|
68 | }, | |
69 |
|
69 | |||
70 | "text_cell": { |
|
70 | "text_cell": { | |
71 | "type": "object", |
|
71 | "type": "object", | |
72 | "description": "scheme for text cel and childrenm (level only optionnal argument for HEader cell)", |
|
72 | "description": "scheme for text cel and childrenm (level only optionnal argument for HEader cell)", | |
73 | "$schema": "http://json-schema.org/draft-03/schema", |
|
73 | "$schema": "http://json-schema.org/draft-03/schema", | |
74 | "id": "#cell", |
|
74 | "id": "#cell", | |
75 | "required": true, |
|
75 | "required": true, | |
76 | "additionalProperties": false, |
|
76 | "additionalProperties": false, | |
77 | "properties":{ |
|
77 | "properties":{ | |
78 | "cell_type": { |
|
78 | "cell_type": { | |
79 | "type": "string", |
|
79 | "type": "string", | |
80 | "id": "cell_type", |
|
80 | "id": "cell_type", | |
81 | "required": true |
|
81 | "required": true | |
82 | }, |
|
82 | }, | |
83 | "level": { |
|
83 | "level": { | |
84 | "type": "number", |
|
84 | "type": "number", | |
85 | "id": "level", |
|
85 | "id": "level", | |
86 | "required": false |
|
86 | "required": false | |
87 | }, |
|
87 | }, | |
88 | "metadata": { |
|
88 | "metadata": { | |
89 | "type": "object", |
|
89 | "type": "object", | |
90 | "id": "metadata", |
|
90 | "id": "metadata", | |
91 | "required": true |
|
91 | "required": true | |
92 | }, |
|
92 | }, | |
93 | "source": { |
|
93 | "source": { | |
94 | "description": "for code cell, the source code", |
|
94 | "description": "for code cell, the source code", | |
95 | "type": "array", |
|
95 | "type": "array", | |
96 | "id": "source", |
|
96 | "id": "source", | |
97 | "required": true, |
|
97 | "required": true, | |
98 | "items": |
|
98 | "items": | |
99 | { |
|
99 | { | |
100 | "type": "string", |
|
100 | "type": "string", | |
101 | "description": "each item represent one line of the source code written, terminated by \n", |
|
101 | "description": "each item represent one line of the source code written, terminated by \n", | |
102 | "id": "0", |
|
102 | "id": "0", | |
103 | "required": true |
|
103 | "required": true | |
104 | } |
|
104 | } | |
105 | } |
|
105 | } | |
106 | } |
|
106 | } | |
107 |
|
107 | |||
108 | }, |
|
108 | }, | |
109 |
|
109 | |||
110 | "any_cell": { |
|
110 | "any_cell": { | |
111 | "description": "Meta cell type that match any cell type", |
|
111 | "description": "Meta cell type that match any cell type", | |
112 | "type": [{"$ref": "/text_cell"},{"$ref":"/code_cell"}], |
|
112 | "type": [{"$ref": "/text_cell"},{"$ref":"/code_cell"}], | |
113 | "$schema": "http://json-schema.org/draft-03/schema" |
|
113 | "$schema": "http://json-schema.org/draft-03/schema" | |
114 | }, |
|
114 | }, | |
115 |
|
115 | |||
116 | "code_cell":{ |
|
116 | "code_cell":{ | |
117 | "type": "object", |
|
117 | "type": "object", | |
118 | "$schema": "http://json-schema.org/draft-03/schema", |
|
118 | "$schema": "http://json-schema.org/draft-03/schema", | |
119 | "description": "Cell used to execute code", |
|
119 | "description": "Cell used to execute code", | |
120 | "id": "#cell", |
|
120 | "id": "#cell", | |
121 | "required": true, |
|
121 | "required": true, | |
122 | "additionalProperties": false, |
|
122 | "additionalProperties": false, | |
123 | "properties":{ |
|
123 | "properties":{ | |
124 | "cell_type": { |
|
124 | "cell_type": { | |
125 | "type": "string", |
|
125 | "type": "string", | |
126 | "id": "cell_type", |
|
126 | "id": "cell_type", | |
127 | "required": true |
|
127 | "required": true | |
128 | }, |
|
128 | }, | |
129 | "metadata": { |
|
129 | "metadata": { | |
130 | "type": "object", |
|
130 | "type": "object", | |
131 | "id": "metadata", |
|
131 | "id": "metadata", | |
132 | "required": true |
|
132 | "required": true | |
133 | }, |
|
133 | }, | |
134 | "collapsed": { |
|
134 | "collapsed": { | |
135 | "type": "boolean", |
|
135 | "type": "boolean", | |
136 | "required": true |
|
136 | "required": true | |
137 | }, |
|
137 | }, | |
138 | "input": { |
|
138 | "input": { | |
139 | "description": "user input for text cells", |
|
139 | "description": "user input for text cells", | |
140 | "type": "array", |
|
140 | "type": "array", | |
141 | "id": "input", |
|
141 | "id": "input", | |
142 | "required": true, |
|
142 | "required": true, | |
143 | "items": |
|
143 | "items": | |
144 | { |
|
144 | { | |
145 | "type": "string", |
|
145 | "type": "string", | |
146 | "id": "input", |
|
146 | "id": "input", | |
147 | "required": true |
|
147 | "required": true | |
148 | } |
|
148 | } | |
149 | }, |
|
149 | }, | |
150 | "outputs": { |
|
150 | "outputs": { | |
151 | "description": "output for code cell, to be definied", |
|
151 | "description": "output for code cell, to be definied", | |
152 | "required": true, |
|
152 | "required": true, | |
153 | "type": "array" |
|
153 | "type": "array" | |
154 | }, |
|
154 | }, | |
155 | "prompt_number": { |
|
155 | "prompt_number": { | |
156 | "type": ["integer","null"], |
|
156 | "type": ["integer","null"], | |
157 | "minimum": 0 |
|
157 | "minimum": 0 | |
158 | }, |
|
158 | }, | |
159 | "language": { |
|
159 | "language": { | |
160 | "type": "string", |
|
160 | "type": "string", | |
161 | "required": true |
|
161 | "required": true | |
162 | } |
|
162 | } | |
163 | } |
|
163 | } | |
164 |
|
164 | |||
165 | } |
|
165 | } | |
166 | } |
|
166 | } |
General Comments 0
You need to be logged in to leave comments.
Login now