##// END OF EJS Templates
Add separate raw cell type, fix "source" property of cells
Jessica B. Hamrick -
Show More
@@ -63,31 +63,60 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 74 "required": true
75 75 },
76 76 "metadata": {
77 77 "description": "Cell-level metadata.",
78 78 "type": "object",
79 79 "required": true,
80 "additionalProperties": true
80 "additionalProperties": true,
81 "properties": {
82 "format": {
83 "description": "Raw cell format, to be determined.",
84 "type": "string",
85 "required": false
86 }
87 }
81 88 },
82 89 "source": {
83 "description": "Contents of the cell, represented as an array of lines (each terminated by \n).",
90 "description": "Contents of the cell, represented as an array of lines.",
84 91 "type": "array",
85 92 "required": true,
86 "items": {
87 "type": "string",
88 "pattern": "^.*\n$"
93 "items": {"type": "string"}
89 94 }
90 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"],
106 "required": true
107 },
108 "metadata": {
109 "description": "Cell-level metadata.",
110 "type": "object",
111 "required": true,
112 "additionalProperties": true
113 },
114 "source": {
115 "description": "Contents of the cell, represented as an array of lines.",
116 "type": "array",
117 "required": true,
118 "items": {"type": "string"}
119 }
91 120 }
92 121 },
93 122
@@ -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