##// END OF EJS Templates
Fix a few small spacing things
Fix a few small spacing things

File last commit:

r16875:7d10ee7c
r16875:7d10ee7c
Show More
v4.withref.json
157 lines | 5.1 KiB | application/json | JsonLexer
Jessica B. Hamrick
Copy v3 --> v4
r16871 {
"description": "custom json structure with references to generate notebook schema",
Jessica B. Hamrick
Fix a few small spacing things
r16875 "notebook": {
Jessica B. Hamrick
Make indent level be consistent
r16874 "type": "object",
"description": "notebook v4.0 root schema",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "#notebook",
"required": true,
"additionalProperties": false,
Jessica B. Hamrick
Fix a few small spacing things
r16875 "properties": {
Jessica B. Hamrick
Make indent level be consistent
r16874 "metadata": {
"type": "object",
"id": "metadata",
"required": true,
"description": "the metadata atribute can contain any additionnal information",
"additionalProperties": true,
Jessica B. Hamrick
Fix a few small spacing things
r16875 "properties": {
Jessica B. Hamrick
Make indent level be consistent
r16874 "name": {
"id": "name",
"description": "the title of the notebook",
"type": "string",
"id": "name",
"required": true
}
}
},
"nbformat_minor": {
"description": "Notebook format, minor number. Incremented for slight variation of notebook format.",
"type": "integer",
"minimum": 0,
"id": "nbformat_minor",
"required": true
},
"nbformat": {
"description": "Notebook format, major number. Incremented between backward incompatible change is introduced.",
"type": "integer",
"minimum": 4,
"id": "nbformat",
"required": true
},
"orig_nbformat": {
"description": "Original notebook format, major number.",
"type": "integer",
"minimum": 1,
"id": "orig_nbformat",
"required": false
},
"cells": {
"$schema": "http://json-schema.org/draft-03/schema",
"description": "array of cells of the current worksheet",
"type": "array",
"id": "#cells",
"required": true,
"items": {"$ref": "/any_cell"}
Jessica B. Hamrick
Copy v3 --> v4
r16871 }
}
},
"text_cell": {
Jessica B. Hamrick
Make indent level be consistent
r16874 "type": "object",
"description": "scheme for text cel and childrenm (level only optionnal argument for HEader cell)",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "#cell",
"required": true,
"additionalProperties": false,
Jessica B. Hamrick
Fix a few small spacing things
r16875 "properties": {
Jessica B. Hamrick
Make indent level be consistent
r16874 "cell_type": {
"type": "string",
"id": "cell_type",
"required": true
},
"level": {
"type": "integer",
"minimum": 1,
"maximum": 6,
"id": "level",
"required": false
},
"metadata": {
"type": "object",
"id": "metadata",
"required": false
},
"source": {
"description": "for code cell, the source code",
"type": ["array", "string"],
"id": "source",
"required": true,
"items":
{
"type": "string",
"description": "each item represent one line of the source code written, terminated by \n",
"id": "0",
"required": true
}
Jessica B. Hamrick
Copy v3 --> v4
r16871 }
}
},
"any_cell": {
"description": "Meta cell type that match any cell type",
Jessica B. Hamrick
Fix a few small spacing things
r16875 "type": [{"$ref": "/text_cell"}, {"$ref":"/code_cell"}],
Jessica B. Hamrick
Copy v3 --> v4
r16871 "$schema": "http://json-schema.org/draft-03/schema"
},
Jessica B. Hamrick
Fix a few small spacing things
r16875 "code_cell": {
Jessica B. Hamrick
Make indent level be consistent
r16874 "type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"description": "Cell used to execute code",
"id": "#cell",
"required": true,
"additionalProperties": false,
Jessica B. Hamrick
Fix a few small spacing things
r16875 "properties": {
Jessica B. Hamrick
Make indent level be consistent
r16874 "cell_type": {
"type": "string",
"id": "cell_type",
"required": true
},
"metadata": {
"type": "object",
"id": "metadata",
"required": false
},
"collapsed": {
"type": "boolean",
"required": true
},
"input": {
"description": "user input for text cells",
"type": ["array", "string"],
"id": "input",
"required": true,
"items":
{
"type": "string",
"id": "input",
"required": true
}
},
"outputs": {
"description": "output for code cell, to be definied",
"required": true,
"type": "array"
},
"prompt_number": {
Jessica B. Hamrick
Fix a few small spacing things
r16875 "type": ["integer", "null"],
Jessica B. Hamrick
Make indent level be consistent
r16874 "required": false,
"minimum": 0
},
"language": {
"type": "string",
"required": true
Jessica B. Hamrick
Copy v3 --> v4
r16871 }
}
}
}