##// END OF EJS Templates
Define multiline_string type
Jessica B. Hamrick -
Show More
@@ -244,7 +244,7 b''
244 },
244 },
245 "text/plain": {
245 "text/plain": {
246 "description": "The stream's text output, represented as an array of strings.",
246 "description": "The stream's text output, represented as an array of strings.",
247 "type": ["string", "array"]
247 "oneOf": {"$ref": "/definitions/misc/multiline_string"}
248 }
248 }
249 }
249 }
250 },
250 },
@@ -293,7 +293,7 b''
293 },
293 },
294 "source": {
294 "source": {
295 "description": "Contents of the cell, represented as an array of lines.",
295 "description": "Contents of the cell, represented as an array of lines.",
296 "type": ["string", "array"]
296 "oneOf": {"$ref": "/definitions/misc/multiline_string"}
297 },
297 },
298 "prompt_number": {
298 "prompt_number": {
299 "description": "The code cell's prompt number. Will be null if the cell has not been run.",
299 "description": "The code cell's prompt number. Will be null if the cell has not been run.",
@@ -303,14 +303,21 b''
303 "mimetype": {
303 "mimetype": {
304 "^[a-zA-Z0-9+-]+/[a-zA-Z0-9+-]+$": {
304 "^[a-zA-Z0-9+-]+/[a-zA-Z0-9+-]+$": {
305 "description": "The cell's mimetype output (e.g. text/plain), represented as either an array of strings or a string.",
305 "description": "The cell's mimetype output (e.g. text/plain), represented as either an array of strings or a string.",
306 "type": ["string", "array"]
306 "oneOf": {"$ref": "/definitions/misc/multiline_string"}
307 }
307 }
308 },
308 },
309 "output_metadata": {
309 "output_metadata": {
310 "description": "Cell output metadata.",
310 "description": "Cell output metadata.",
311 "type": "object",
311 "type": "object",
312 "additionalProperties": true
312 "additionalProperties": true
313 }
313 },
314 "multiline_string": [
315 {"type": "string"},
316 {
317 "type": "array",
318 "items": {"type": "string"}
319 }
320 ]
314 }
321 }
315 }
322 }
316 }
323 }
General Comments 0
You need to be logged in to leave comments. Login now