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