2985 lines
72 KiB
JSON
2985 lines
72 KiB
JSON
{
|
|
"$ref": "#/definitions/doc_node",
|
|
"description": "Schema for Atlassian Document Format.",
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"definitions": {
|
|
"alignment_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["alignment"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"align": {
|
|
"enum": ["center", "end"]
|
|
}
|
|
},
|
|
"required": ["align"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"annotation_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["annotation"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"annotationType": {
|
|
"enum": ["inlineComment"]
|
|
}
|
|
},
|
|
"required": ["id", "annotationType"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"backgroundColor_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["backgroundColor"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"pattern": "^#[0-9a-fA-F]{6}$",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["color"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"block_content": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/blockCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_alignment_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/taskList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bulletList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/orderedList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_alignment_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_indentation_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaGroup_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/decisionList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/rule_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/panel_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockquote_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/embedCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/table_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/expand_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
|
}
|
|
]
|
|
},
|
|
"blockCard_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["blockCard"]
|
|
},
|
|
"attrs": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"datasource": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"parameters": {},
|
|
"views": {
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"properties": {},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["type"],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 1,
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": ["id", "parameters", "views"]
|
|
},
|
|
"width": {
|
|
"type": "number"
|
|
},
|
|
"layout": {
|
|
"enum": [
|
|
"wide",
|
|
"full-width",
|
|
"center",
|
|
"wrap-right",
|
|
"wrap-left",
|
|
"align-end",
|
|
"align-start"
|
|
]
|
|
}
|
|
},
|
|
"required": ["datasource"],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["url"],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["data"],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"blockquote_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["blockquote"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/orderedList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bulletList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaGroup_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"blockTaskItem_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["blockTaskItem"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"enum": ["TODO", "DONE"]
|
|
}
|
|
},
|
|
"required": ["localId", "state"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs", "content"]
|
|
},
|
|
"bodiedExtension_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["bodiedExtension"]
|
|
},
|
|
"marks": {
|
|
"type": "array"
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"extensionKey": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"extensionType": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"parameters": {},
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"layout": {
|
|
"enum": ["wide", "full-width", "default"]
|
|
},
|
|
"localId": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["extensionKey", "extensionType"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/non_nestable_block_content"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs", "content"]
|
|
},
|
|
"bodiedExtension_with_marks_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/bodiedExtension_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/dataConsumer_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/fragment_mark"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"bodiedSyncBlock_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["bodiedSyncBlock"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/breakout_mark"
|
|
}
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"resourceId": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["resourceId", "localId"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_alignment_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockquote_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bulletList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/decisionList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/embedCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/expand_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_alignment_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_indentation_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/layoutSection_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/layoutSection_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaGroup_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/orderedList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/panel_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/rule_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/table_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/taskList_node"
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs", "content"]
|
|
},
|
|
"border_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["border"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"size": {
|
|
"type": "number",
|
|
"minimum": 1,
|
|
"maximum": 3
|
|
},
|
|
"color": {
|
|
"pattern": "^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["size", "color"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"breakout_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["breakout"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mode": {
|
|
"enum": ["wide", "full-width"]
|
|
},
|
|
"width": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": ["mode"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"bulletList_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["bulletList"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/listItem_node"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"caption_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["caption"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/hardBreak_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mention_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/emoji_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/date_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/placeholder_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/inlineCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/status_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/formatted_text_inline_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/code_inline_node"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type"]
|
|
},
|
|
"code_inline_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/text_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/code_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/link_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/annotation_mark"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"code_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["code"]
|
|
}
|
|
},
|
|
"required": ["type"],
|
|
"additionalProperties": false
|
|
},
|
|
"codeBlock_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["codeBlock"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"maxItems": 0
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"language": {
|
|
"type": "string"
|
|
},
|
|
"uniqueId": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"wrap": {
|
|
"type": "boolean"
|
|
},
|
|
"hideLineNumbers": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/text_with_no_marks_node"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type"]
|
|
},
|
|
"codeBlock_root_only_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["codeBlock"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/breakout_mark"
|
|
}
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"language": {
|
|
"type": "string"
|
|
},
|
|
"uniqueId": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"wrap": {
|
|
"type": "boolean"
|
|
},
|
|
"hideLineNumbers": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/text_with_no_marks_node"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type"]
|
|
},
|
|
"dataConsumer_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["dataConsumer"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sources": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": ["sources"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"date_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["date"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"timestamp": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["timestamp"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"decisionItem_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["decisionItem"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["localId", "state"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/inline_node"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"decisionList_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["decisionList"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["localId"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/decisionItem_node"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs", "content"]
|
|
},
|
|
"doc_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["doc"]
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/blockCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_alignment_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/taskList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/orderedList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bulletList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockquote_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/decisionList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/embedCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_indentation_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_alignment_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaGroup_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/rule_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/panel_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/table_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/expand_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_root_only_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/layoutSection_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/expand_root_only_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/syncBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bodiedSyncBlock_node"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": {
|
|
"enum": [1]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["version", "type", "content"]
|
|
},
|
|
"em_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["em"]
|
|
}
|
|
},
|
|
"required": ["type"],
|
|
"additionalProperties": false
|
|
},
|
|
"embedCard_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["embedCard"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"layout": {
|
|
"enum": [
|
|
"wide",
|
|
"full-width",
|
|
"center",
|
|
"wrap-right",
|
|
"wrap-left",
|
|
"align-end",
|
|
"align-start"
|
|
]
|
|
},
|
|
"width": {
|
|
"type": "number",
|
|
"maximum": 100,
|
|
"minimum": 0
|
|
},
|
|
"originalHeight": {
|
|
"type": "number"
|
|
},
|
|
"originalWidth": {
|
|
"type": "number"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["url", "layout"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"emoji_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["emoji"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"shortName": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["shortName"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"expand_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["expand"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"maxItems": 0
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/non_nestable_block_content"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"expand_root_only_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["expand"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/breakout_mark"
|
|
}
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/non_nestable_block_content"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"extension_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["extension"]
|
|
},
|
|
"marks": {
|
|
"type": "array"
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"extensionKey": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"extensionType": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"parameters": {},
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"layout": {
|
|
"enum": ["wide", "full-width", "default"]
|
|
},
|
|
"localId": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["extensionKey", "extensionType"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"extension_with_marks_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/extension_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/dataConsumer_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/fragment_mark"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"fontSize_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["fontSize"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fontSize": {
|
|
"enum": ["small"]
|
|
}
|
|
},
|
|
"required": ["fontSize"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"formatted_text_inline_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/text_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/link_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/em_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/strong_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/strike_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/subsup_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/underline_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/textColor_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/annotation_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/backgroundColor_mark"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"fragment_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["fragment"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["localId"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"hardBreak_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["hardBreak"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"enum": ["\n"]
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type"]
|
|
},
|
|
"heading_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["heading"]
|
|
},
|
|
"marks": {
|
|
"type": "array"
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"level": {
|
|
"type": "number",
|
|
"minimum": 1,
|
|
"maximum": 6
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["level"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/inline_node"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"heading_with_alignment_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/heading_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/alignment_mark"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"heading_with_indentation_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/heading_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/indentation_mark"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"heading_with_no_marks_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/heading_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"maxItems": 0
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"indentation_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["indentation"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"level": {
|
|
"type": "number",
|
|
"minimum": 1,
|
|
"maximum": 6
|
|
}
|
|
},
|
|
"required": ["level"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"inline_node": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/formatted_text_inline_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/code_inline_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/date_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/emoji_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/hardBreak_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/inlineCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mention_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/placeholder_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/status_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/inlineExtension_with_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaInline_node"
|
|
}
|
|
]
|
|
},
|
|
"inlineCard_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["inlineCard"]
|
|
},
|
|
"attrs": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["url"],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["data"],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"inlineExtension_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["inlineExtension"]
|
|
},
|
|
"marks": {
|
|
"type": "array"
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"extensionKey": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"extensionType": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"parameters": {},
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["extensionKey", "extensionType"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"inlineExtension_with_marks_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/inlineExtension_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/dataConsumer_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/fragment_mark"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"layoutColumn_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["layoutColumn"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"width": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 100
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"valign": {
|
|
"enum": ["top", "middle", "bottom"]
|
|
}
|
|
},
|
|
"required": ["width"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/block_content"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs", "content"]
|
|
},
|
|
"layoutSection_full_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/layoutSection_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/breakout_mark"
|
|
}
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/layoutColumn_node"
|
|
},
|
|
"minItems": 2,
|
|
"maxItems": 3
|
|
}
|
|
},
|
|
"required": ["content"],
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"layoutSection_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["layoutSection"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/breakout_mark"
|
|
}
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/layoutColumn_node"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"link_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["link"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"href": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"collection": {
|
|
"type": "string"
|
|
},
|
|
"occurrenceKey": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["href"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"listItem_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["listItem"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bulletList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/orderedList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/taskList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"media_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["media"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/dataConsumer_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/link_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/annotation_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/border_mark"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"attrs": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["link", "file"]
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"alt": {
|
|
"type": "string"
|
|
},
|
|
"collection": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "number"
|
|
},
|
|
"occurrenceKey": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"width": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": ["type", "id", "collection"],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["external"]
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"alt": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "number"
|
|
},
|
|
"width": {
|
|
"type": "number"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["type", "url"],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"mediaGroup_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["mediaGroup"]
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/media_node"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"mediaInline_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["mediaInline"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/dataConsumer_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/link_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/annotation_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/border_mark"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["link", "file", "image"]
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"alt": {
|
|
"type": "string"
|
|
},
|
|
"collection": {
|
|
"type": "string"
|
|
},
|
|
"occurrenceKey": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"width": {
|
|
"type": "number"
|
|
},
|
|
"height": {
|
|
"type": "number"
|
|
},
|
|
"data": {}
|
|
},
|
|
"required": ["id", "collection"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"mediaSingle_caption_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"$ref": "#/definitions/media_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/caption_node"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 2
|
|
}
|
|
},
|
|
"required": ["content"],
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"mediaSingle_full_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/media_node"
|
|
},
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"required": ["content"],
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"mediaSingle_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["mediaSingle"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/link_mark"
|
|
}
|
|
},
|
|
"attrs": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"width": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 100
|
|
},
|
|
"layout": {
|
|
"enum": [
|
|
"wide",
|
|
"full-width",
|
|
"center",
|
|
"wrap-right",
|
|
"wrap-left",
|
|
"align-end",
|
|
"align-start"
|
|
]
|
|
},
|
|
"widthType": {
|
|
"enum": ["percentage"]
|
|
}
|
|
},
|
|
"required": ["layout"],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"width": {
|
|
"type": "number",
|
|
"minimum": 0
|
|
},
|
|
"widthType": {
|
|
"enum": ["pixel"]
|
|
},
|
|
"layout": {
|
|
"enum": [
|
|
"wide",
|
|
"full-width",
|
|
"center",
|
|
"wrap-right",
|
|
"wrap-left",
|
|
"align-end",
|
|
"align-start"
|
|
]
|
|
}
|
|
},
|
|
"required": ["width", "widthType", "layout"],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": true,
|
|
"required": ["type"]
|
|
},
|
|
"mention_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["mention"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"accessLevel": {
|
|
"type": "string"
|
|
},
|
|
"userType": {
|
|
"enum": ["DEFAULT", "SPECIAL", "APP"]
|
|
}
|
|
},
|
|
"required": ["id"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"nestedExpand_content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaGroup_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bulletList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/orderedList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/taskList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/decisionList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/rule_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/panel_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockquote_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"nestedExpand_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["nestedExpand"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"$ref": "#/definitions/nestedExpand_content"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content", "attrs"]
|
|
},
|
|
"nestedExpand_with_no_marks_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/nestedExpand_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"maxItems": 0
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"non_nestable_block_content": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/panel_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockquote_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/orderedList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bulletList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/rule_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaGroup_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/decisionList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/taskList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/table_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/embedCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
}
|
|
]
|
|
},
|
|
"orderedList_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["orderedList"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"order": {
|
|
"type": "number",
|
|
"minimum": 0
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/listItem_node"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"panel_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["panel"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"panelType": {
|
|
"enum": [
|
|
"info",
|
|
"note",
|
|
"tip",
|
|
"warning",
|
|
"error",
|
|
"success",
|
|
"custom"
|
|
]
|
|
},
|
|
"panelIcon": {
|
|
"type": "string"
|
|
},
|
|
"panelIconId": {
|
|
"type": "string"
|
|
},
|
|
"panelIconText": {
|
|
"type": "string"
|
|
},
|
|
"panelColor": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["panelType"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bulletList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/orderedList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaGroup_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/taskList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/rule_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/decisionList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs", "content"]
|
|
},
|
|
"paragraph_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["paragraph"]
|
|
},
|
|
"marks": {
|
|
"type": "array"
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/inline_node"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type"]
|
|
},
|
|
"paragraph_with_alignment_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/fontSize_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/alignment_mark"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"paragraph_with_font_size_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/fontSize_mark"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"paragraph_with_indentation_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/fontSize_mark"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/indentation_mark"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"paragraph_with_no_marks_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"maxItems": 0
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"placeholder_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["placeholder"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["text"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"rule_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["rule"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type"]
|
|
},
|
|
"status_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["status"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"color": {
|
|
"enum": ["neutral", "purple", "blue", "red", "yellow", "green"]
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["text", "color"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"strike_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["strike"]
|
|
}
|
|
},
|
|
"required": ["type"],
|
|
"additionalProperties": false
|
|
},
|
|
"strong_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["strong"]
|
|
}
|
|
},
|
|
"required": ["type"],
|
|
"additionalProperties": false
|
|
},
|
|
"subsup_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["subsup"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["sub", "sup"]
|
|
}
|
|
},
|
|
"required": ["type"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"syncBlock_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["syncBlock"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/breakout_mark"
|
|
}
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"resourceId": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["resourceId", "localId"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"table_cell_content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/paragraph_with_alignment_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/panel_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockquote_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/orderedList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/bulletList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/rule_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_alignment_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/heading_with_indentation_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/codeBlock_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaSingle_full_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/mediaGroup_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/decisionList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/taskList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/embedCard_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"table_cell_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["tableCell"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"colspan": {
|
|
"type": "number"
|
|
},
|
|
"rowspan": {
|
|
"type": "number"
|
|
},
|
|
"colwidth": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"background": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"valign": {
|
|
"enum": ["top", "middle", "bottom"]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"$ref": "#/definitions/table_cell_content"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"table_header_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["tableHeader"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"colspan": {
|
|
"type": "number"
|
|
},
|
|
"rowspan": {
|
|
"type": "number"
|
|
},
|
|
"colwidth": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"background": {
|
|
"type": "string"
|
|
},
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"valign": {
|
|
"enum": ["top", "middle", "bottom"]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"$ref": "#/definitions/table_cell_content"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"table_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["table"]
|
|
},
|
|
"marks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/fragment_mark"
|
|
}
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"displayMode": {
|
|
"enum": ["default", "fixed"]
|
|
},
|
|
"isNumberColumnEnabled": {
|
|
"type": "boolean"
|
|
},
|
|
"layout": {
|
|
"enum": [
|
|
"wide",
|
|
"full-width",
|
|
"center",
|
|
"align-end",
|
|
"align-start",
|
|
"default"
|
|
]
|
|
},
|
|
"localId": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"width": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/table_row_node"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"table_row_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["tableRow"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/table_cell_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/table_header_node"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "content"]
|
|
},
|
|
"taskItem_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["taskItem"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"enum": ["TODO", "DONE"]
|
|
}
|
|
},
|
|
"required": ["localId", "state"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/inline_node"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs"]
|
|
},
|
|
"taskList_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["taskList"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"localId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["localId"],
|
|
"additionalProperties": false
|
|
},
|
|
"content": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/taskItem_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/taskList_node"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/blockTaskItem_node"
|
|
}
|
|
]
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "attrs", "content"]
|
|
},
|
|
"text_node": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["text"]
|
|
},
|
|
"marks": {
|
|
"type": "array"
|
|
},
|
|
"text": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["type", "text"]
|
|
},
|
|
"text_with_no_marks_node": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/text_node"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"marks": {
|
|
"type": "array",
|
|
"maxItems": 0
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
},
|
|
"textColor_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["textColor"]
|
|
},
|
|
"attrs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "string",
|
|
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
}
|
|
},
|
|
"required": ["color"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["type", "attrs"],
|
|
"additionalProperties": false
|
|
},
|
|
"underline_mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": ["underline"]
|
|
}
|
|
},
|
|
"required": ["type"],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|