From 713b175e55dcf1fce3a8a73c3a1564ac626849f1 2014-11-24 20:01:49 From: Min RK Date: 2014-11-24 20:01:49 Subject: [PATCH] validate codemirror_mode --- diff --git a/IPython/nbformat/v4/nbformat.v4.schema.json b/IPython/nbformat/v4/nbformat.v4.schema.json index 5627d15..d1b48c7 100644 --- a/IPython/nbformat/v4/nbformat.v4.schema.json +++ b/IPython/nbformat/v4/nbformat.v4.schema.json @@ -36,7 +36,10 @@ }, "codemirror_mode": { "description": "The codemirror mode to use for code in this language.", - "type": "string" + "oneOf": [ + {"type": "string"}, + {"type": "object"} + ] }, "file_extension": { "description": "The file extension for files in this language.",