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