Skip to main content
Version: 7.0.0

NotionBlockRichText

This page supports schema for Notion Datatype NotionBlockRichText.

{
"oneOf": [
{
"required": [
"text"
]
},
{
"required": [
"mention"
]
},
{
"required": [
"equation"
]
}
],
"properties": {
"annotations": {
"bold": {
"type": "boolean",
"x-label": {
"en": "bold",
"ko": "bold1"
}
},
"code": {
"type": "boolean",
"x-label": {
"en": "code",
"ko": "code"
}
},
"color": {
"x-dataType": "NotionBlockColor",
"x-dataTypeVersion": "1.0.0",
"x-label": {
"en": "color",
"ko": "color"
}
},
"italic": {
"type": "boolean",
"x-label": {
"en": "italic",
"ko": "italic"
}
},
"strikethrough": {
"type": "boolean",
"x-label": {
"en": "strikethrough",
"ko": "strikethrough"
}
},
"underline": {
"type": "boolean",
"x-label": {
"en": "underline",
"ko": "underline"
}
}
},
"equation": {
"properties": {
"expression": {
"type": "string",
"x-label": {
"en": "expression",
"ko": "expression"
}
}
},
"required": [
"expression"
],
"type": "object",
"x-label": {
"en": "equation",
"ko": "equation"
}
},
"href": {
"type": [
"string",
"null"
],
"x-label": {
"en": "href",
"ko": "href"
}
},
"mention": {
"properties": {
"database": {
"properties": {
"id": {
"format": "uuid",
"type": "string",
"x-label": {
"en": "id",
"ko": "id"
}
}
},
"required": [
"id"
],
"type": "object",
"x-label": {
"en": "database",
"ko": "database"
}
},
"date": {
"properties": {
"end": {
"type": [
"string",
"null"
],
"x-label": {
"en": "end",
"ko": "end"
}
},
"start": {
"type": [
"string",
"null"
],
"x-label": {
"en": "start",
"ko": "start"
}
},
"time_zone": {
"type": [
"string",
"null"
],
"x-label": {
"en": "time_zone",
"ko": "time_zone"
}
}
},
"type": "object",
"x-label": {
"en": "date",
"ko": "date"
}
},
"link_preview": {
"properties": {
"url": {
"format": "uri",
"type": "string",
"x-label": {
"en": "url",
"ko": "url"
}
}
},
"required": [
"url"
],
"type": "object",
"x-label": {
"en": "link_preview",
"ko": "link_preview"
}
},
"page": {
"properties": {
"id": {
"format": "uuid",
"type": "string",
"x-label": {
"en": "id",
"ko": "id"
}
}
},
"required": [
"id"
],
"type": "object",
"x-label": {
"en": "page",
"ko": "page"
}
},
"template_mention": {
"properties": {
"template_mention_date": {
"enum": [
"today",
"now"
],
"type": "string",
"x-label": {
"en": "template_mention_date",
"ko": "template_mention_date"
}
},
"template_mention_user": {
"enum": [
"me"
],
"type": "string",
"x-label": {
"en": "template_mention_user",
"ko": "template_mention_user"
}
},
"type": {
"enum": [
"template_mention_date",
"template_mention_user"
],
"type": "string",
"x-label": {
"en": "type",
"ko": "type"
}
}
},
"required": [
"type"
],
"type": "object",
"x-label": {
"en": "template_mention",
"ko": "template_mention"
}
},
"type": {
"enum": [
"database",
"date",
"link_preview",
"page",
"template_mention",
"user"
],
"type": "string",
"x-label": {
"en": "type",
"ko": "type"
}
},
"user": {
"properties": {
"id": {
"x-dataType": "NotionUserId",
"x-dataTypeVersion": "1.0.0",
"x-label": {
"en": "id",
"ko": "id"
}
},
"object": {
"enum": [
"user"
],
"type": "string",
"x-label": {
"en": "object",
"ko": "object"
}
}
},
"required": [],
"type": "object",
"x-label": {
"en": "user",
"ko": "user"
}
}
},
"type": "object",
"x-label": {
"en": "mention",
"ko": "mention"
}
},
"plain_text": {
"type": "string",
"x-label": {
"en": "plain_text",
"ko": "plain_text"
}
},
"text": {
"properties": {
"content": {
"type": "string",
"x-label": {
"en": "content",
"ko": "content"
}
},
"link": {
"properties": {
"url": {
"format": "uri",
"type": "string",
"x-label": {
"en": "url",
"ko": "url"
}
}
},
"type": [
"object",
"null"
],
"x-label": {
"en": "link",
"ko": "link"
}
}
},
"required": [
"content"
],
"type": "object",
"x-label": {
"en": "text",
"ko": "text"
}
},
"type": {
"enum": [
"text",
"mention",
"equation"
],
"type": "string",
"x-label": {
"en": "type",
"ko": "type"
}
}
},
"required": [],
"type": "object"
}