##// END OF EJS Templates
update v4 schema mime-type expression...
MinRK -
Show More
@@ -178,15 +178,7 b''
178 "outputs": {
178 "outputs": {
179 "description": "Execution, display, or stream outputs.",
179 "description": "Execution, display, or stream outputs.",
180 "type": "array",
180 "type": "array",
181 "items": {
181 "items": {"$ref": "#/definitions/output"}
182 "type": "object",
183 "oneOf": [
184 {"$ref": "#/definitions/execute_result"},
185 {"$ref": "#/definitions/display_data_output"},
186 {"$ref": "#/definitions/stream_output"},
187 {"$ref": "#/definitions/error_output"}
188 ]
189 }
190 },
182 },
191 "prompt_number": {
183 "prompt_number": {
192 "description": "The code cell's prompt number. Will be null if the cell has not been run.",
184 "description": "The code cell's prompt number. Will be null if the cell has not been run.",
@@ -195,7 +187,15 b''
195 }
187 }
196 }
188 }
197 },
189 },
198
190 "output": {
191 "type": "object",
192 "oneOf": [
193 {"$ref": "#/definitions/execute_result"},
194 {"$ref": "#/definitions/display_data"},
195 {"$ref": "#/definitions/stream"},
196 {"$ref": "#/definitions/error"}
197 ]
198 },
199 "execute_result": {
199 "execute_result": {
200 "description": "Result of executing a code cell.",
200 "description": "Result of executing a code cell.",
201 "type": "object",
201 "type": "object",
@@ -211,20 +211,20 b''
211 "type": ["integer"],
211 "type": ["integer"],
212 "minimum": 0
212 "minimum": 0
213 },
213 },
214 "metadata": {"$ref": "#/definitions/misc/output_metadata"},
215 "application/json": {
214 "application/json": {
216 "type": "object"
215 "type": "object"
217 }
216 },
217 "metadata": {"$ref": "#/definitions/misc/output_metadata"}
218 },
218 },
219 "patternProperties": {
219 "patternProperties": {
220 "^[a-zA-Z0-9\\-\\+]+/[a-zA-Z0-9\\-\\+]+": {
220 "^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\-\\+\\.]+$": {
221 "description": "mimetype output (e.g. text/plain), represented as either an array of strings or a string.",
221 "description": "mimetype output (e.g. text/plain), represented as either an array of strings or a string.",
222 "$ref": "#/definitions/misc/multiline_string"
222 "$ref": "#/definitions/misc/multiline_string"
223 }
223 }
224 }
224 }
225 },
225 },
226
226
227 "display_data_output": {
227 "display_data": {
228 "description": "Data displayed as a result of code cell execution.",
228 "description": "Data displayed as a result of code cell execution.",
229 "type": "object",
229 "type": "object",
230 "additionalProperties": false,
230 "additionalProperties": false,
@@ -234,17 +234,20 b''
234 "description": "Type of cell output.",
234 "description": "Type of cell output.",
235 "enum": ["display_data"]
235 "enum": ["display_data"]
236 },
236 },
237 "application/json": {
238 "type": "object"
239 },
237 "metadata": {"$ref": "#/definitions/misc/output_metadata"}
240 "metadata": {"$ref": "#/definitions/misc/output_metadata"}
238 },
241 },
239 "patternProperties": {
242 "patternProperties": {
240 "^[a-zA-Z0-9\\-\\+]+/[a-zA-Z0-9\\-\\+]+": {
243 "^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\-\\+\\.]+$": {
241 "description": "mimetype output (e.g. text/plain), represented as either an array of strings or a string.",
244 "description": "mimetype output (e.g. text/plain), represented as either an array of strings or a string.",
242 "$ref": "#/definitions/misc/multiline_string"
245 "$ref": "#/definitions/misc/multiline_string"
243 }
246 }
244 }
247 }
245 },
248 },
246
249
247 "stream_output": {
250 "stream": {
248 "description": "Stream output from a code cell.",
251 "description": "Stream output from a code cell.",
249 "type": "object",
252 "type": "object",
250 "additionalProperties": false,
253 "additionalProperties": false,
@@ -266,7 +269,7 b''
266 }
269 }
267 },
270 },
268
271
269 "error_output": {
272 "error": {
270 "description": "Output of an error that occurred during code cell execution.",
273 "description": "Output of an error that occurred during code cell execution.",
271 "type": "object",
274 "type": "object",
272 "additionalProperties": false,
275 "additionalProperties": false,
General Comments 0
You need to be logged in to leave comments. Login now