##// END OF EJS Templates
Fix a few small spacing things
Jessica B. Hamrick -
Show More
@@ -1,157 +1,157 b''
1 1 {
2 2 "description": "custom json structure with references to generate notebook schema",
3 "notebook":{
3 "notebook": {
4 4 "type": "object",
5 5 "description": "notebook v4.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 "properties":{
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 "properties":{
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": "integer",
30 30 "minimum": 0,
31 31 "id": "nbformat_minor",
32 32 "required": true
33 33 },
34 34 "nbformat": {
35 35 "description": "Notebook format, major number. Incremented between backward incompatible change is introduced.",
36 36 "type": "integer",
37 37 "minimum": 4,
38 38 "id": "nbformat",
39 39 "required": true
40 40 },
41 41 "orig_nbformat": {
42 42 "description": "Original notebook format, major number.",
43 43 "type": "integer",
44 44 "minimum": 1,
45 45 "id": "orig_nbformat",
46 46 "required": false
47 47 },
48 48 "cells": {
49 49 "$schema": "http://json-schema.org/draft-03/schema",
50 50 "description": "array of cells of the current worksheet",
51 51 "type": "array",
52 52 "id": "#cells",
53 53 "required": true,
54 54 "items": {"$ref": "/any_cell"}
55 55 }
56 56 }
57 57 },
58 58
59 59 "text_cell": {
60 60 "type": "object",
61 61 "description": "scheme for text cel and childrenm (level only optionnal argument for HEader cell)",
62 62 "$schema": "http://json-schema.org/draft-03/schema",
63 63 "id": "#cell",
64 64 "required": true,
65 65 "additionalProperties": false,
66 "properties":{
66 "properties": {
67 67 "cell_type": {
68 68 "type": "string",
69 69 "id": "cell_type",
70 70 "required": true
71 71 },
72 72 "level": {
73 73 "type": "integer",
74 74 "minimum": 1,
75 75 "maximum": 6,
76 76 "id": "level",
77 77 "required": false
78 78 },
79 79 "metadata": {
80 80 "type": "object",
81 81 "id": "metadata",
82 82 "required": false
83 83 },
84 84 "source": {
85 85 "description": "for code cell, the source code",
86 86 "type": ["array", "string"],
87 87 "id": "source",
88 88 "required": true,
89 89 "items":
90 90 {
91 91 "type": "string",
92 92 "description": "each item represent one line of the source code written, terminated by \n",
93 93 "id": "0",
94 94 "required": true
95 95 }
96 96 }
97 97 }
98 98
99 99 },
100 100
101 101 "any_cell": {
102 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 104 "$schema": "http://json-schema.org/draft-03/schema"
105 105 },
106 106
107 "code_cell":{
107 "code_cell": {
108 108 "type": "object",
109 109 "$schema": "http://json-schema.org/draft-03/schema",
110 110 "description": "Cell used to execute code",
111 111 "id": "#cell",
112 112 "required": true,
113 113 "additionalProperties": false,
114 "properties":{
114 "properties": {
115 115 "cell_type": {
116 116 "type": "string",
117 117 "id": "cell_type",
118 118 "required": true
119 119 },
120 120 "metadata": {
121 121 "type": "object",
122 122 "id": "metadata",
123 123 "required": false
124 124 },
125 125 "collapsed": {
126 126 "type": "boolean",
127 127 "required": true
128 128 },
129 129 "input": {
130 130 "description": "user input for text cells",
131 131 "type": ["array", "string"],
132 132 "id": "input",
133 133 "required": true,
134 134 "items":
135 135 {
136 136 "type": "string",
137 137 "id": "input",
138 138 "required": true
139 139 }
140 140 },
141 141 "outputs": {
142 142 "description": "output for code cell, to be definied",
143 143 "required": true,
144 144 "type": "array"
145 145 },
146 146 "prompt_number": {
147 "type": ["integer","null"],
147 "type": ["integer", "null"],
148 148 "required": false,
149 149 "minimum": 0
150 150 },
151 151 "language": {
152 152 "type": "string",
153 153 "required": true
154 154 }
155 155 }
156 156 }
157 157 }
General Comments 0
You need to be logged in to leave comments. Login now