From bc5120d7b2bbec0a68cf63a27aa6f0fda86f8071 2014-06-09 18:52:06 From: Jessica B. Hamrick Date: 2014-06-09 18:52:06 Subject: [PATCH] Update mimetype properties in cell outputs --- diff --git a/IPython/nbformat/v4/v4.withref.json b/IPython/nbformat/v4/v4.withref.json index 9c67afe..180044e 100644 --- a/IPython/nbformat/v4/v4.withref.json +++ b/IPython/nbformat/v4/v4.withref.json @@ -229,28 +229,12 @@ "type": ["integer", "null"], "required": false, "minimum": 0 - }, - "text": { - "description": "The cell's text output, represented as an array of strings.", - "type": "array", - "required": false, - "items": {"type": "string"} - }, - "html": { - "description": "The cell's html output, represented as an array of strings.", - "type": "array", - "required": false, - "items": {"type": "string"} - }, - "javascript": { - "description": "The cell's javascript output, represented as an array of strings.", - "type": "array", - "required": false, - "items": {"type": "string"} - }, - "png": { - "description": "The cell's png output.", - "type": "string", + } + }, + "patternProperties": { + "^[a-zA-Z0-9+-].*/[a-zA-Z0-9+-].*$": { + "description": "The cell's mimetype output (e.g. text/plain), represented as either an array of strings or a string.", + "type": ["string", "array"], "required": false } } @@ -277,7 +261,7 @@ "type": "string", "required": true }, - "text": { + "text/plain": { "description": "The stream's text output, represented as an array of strings.", "type": "array", "required": false,