##// END OF EJS Templates
Add separate raw cell type, fix "source" property of cells
Jessica B. Hamrick -
Show More
@@ -63,14 +63,46 b''
63 63
64 64 "definitions": {
65 65
66 "text_cell": {
67 "description": "Notebook text cell.",
66 "raw_cell": {
67 "description": "Notebook raw nbconvert cell.",
68 68 "type": "object",
69 69 "additionalProperties": false,
70 70 "properties": {
71 71 "cell_type": {
72 72 "description": "String identifying the type of cell.",
73 "enum": ["markdown", "raw"],
73 "enum": ["raw"],
74 "required": true
75 },
76 "metadata": {
77 "description": "Cell-level metadata.",
78 "type": "object",
79 "required": true,
80 "additionalProperties": true,
81 "properties": {
82 "format": {
83 "description": "Raw cell format, to be determined.",
84 "type": "string",
85 "required": false
86 }
87 }
88 },
89 "source": {
90 "description": "Contents of the cell, represented as an array of lines.",
91 "type": "array",
92 "required": true,
93 "items": {"type": "string"}
94 }
95 }
96 },
97
98 "markdown_cell": {
99 "description": "Notebook markdown cell.",
100 "type": "object",
101 "additionalProperties": false,
102 "properties": {
103 "cell_type": {
104 "description": "String identifying the type of cell.",
105 "enum": ["markdown"],
74 106 "required": true
75 107 },
76 108 "metadata": {
@@ -80,13 +112,10 b''
80 112 "additionalProperties": true
81 113 },
82 114 "source": {
83 "description": "Contents of the cell, represented as an array of lines (each terminated by \n).",
115 "description": "Contents of the cell, represented as an array of lines.",
84 116 "type": "array",
85 117 "required": true,
86 "items": {
87 "type": "string",
88 "pattern": "^.*\n$"
89 }
118 "items": {"type": "string"}
90 119 }
91 120 }
92 121 },
@@ -108,13 +137,10 b''
108 137 "additionalProperties": true
109 138 },
110 139 "source": {
111 "description": "Contents of the cell, represented as an array of lines (each terminated by \n).",
140 "description": "Contents of the cell, represented as an array of lines.",
112 141 "type": "array",
113 142 "required": true,
114 "items": {
115 "type": "string",
116 "pattern": "^.*\n$"
117 }
143 "items": {"type": "string"}
118 144 },
119 145 "level": {
120 146 "description": "Level of heading cells.",
@@ -143,13 +169,10 b''
143 169 "additionalProperties": true
144 170 },
145 171 "source": {
146 "description": "Contents of the cell, represented as an array of lines (each terminated by \n).",
172 "description": "Contents of the cell, represented as an array of lines.",
147 173 "type": "array",
148 174 "required": true,
149 "items": {
150 "type": "string",
151 "pattern": "^.*\n$"
152 }
175 "items": {"type": "string"}
153 176 },
154 177 "outputs": {
155 178 "description": "Outputs of cell, to be defined.",
General Comments 0
You need to be logged in to leave comments. Login now