0350ac56281223b5…
Created Sep 15, 20260 fields1 collection using this schema
Labels
No labels yet.
Fields
| Name | Type | Info |
|---|
JSON Schema
{
"$id": "https://oxa.dev/v0.3.0-rfc-aggregate/schema.json",
"$ref": "#/definitions/Document",
"title": "OXA Schema",
"$schema": "http://json-schema.org/draft-07/schema#",
"version": "0.3.0-rfc-aggregate",
"definitions": {
"Cite": {
"type": "object",
"title": "Cite",
"required": [
"type",
"xref"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"url": {
"type": "string",
"format": "uri",
"description": "A deep link to a specific location in the referenced work."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Cite"
],
"description": "The type discriminator for Cite nodes."
},
"xref": {
"type": "string",
"description": "Reference to the id of a Reference node in the containing document."
},
"intent": {
"type": "string",
"description": "The citation intent, typically using a CiTO vocabulary value."
},
"prefix": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "Inline content preceding the citation within its group."
},
"suffix": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "Inline content following the citation within its group."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"display": {
"enum": [
"author",
"date",
"full"
],
"description": "Controls which part of the referenced bibliographic record is rendered."
},
"locator": {
"type": "string",
"description": "A human-readable locator within the referenced work."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "Optional inline content that overrides generated citation display text."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "An inline citation to a bibliographic reference. (RFC0005)"
},
"Code": {
"type": "object",
"title": "Code",
"required": [
"type",
"value"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Code"
],
"description": "The type discriminator for Code nodes."
},
"value": {
"type": "string",
"description": "The code content."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"language": {
"type": "string",
"description": "The programming language of the code content."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "A block of preformatted text, typically source code."
},
"Text": {
"type": "object",
"title": "Text",
"required": [
"type",
"value"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Text"
],
"description": "The type discriminator for Text nodes."
},
"value": {
"type": "string",
"description": "The text content."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "A text node containing a string value."
},
"Block": {
"anyOf": [
{
"$ref": "#/definitions/Code"
},
{
"$ref": "#/definitions/Heading"
},
{
"$ref": "#/definitions/Paragraph"
},
{
"$ref": "#/definitions/Reference"
},
{
"$ref": "#/definitions/ThematicBreak"
},
{
"$ref": "#/definitions/CodeCell"
},
{
"$ref": "#/definitions/Image"
},
{
"$ref": "#/definitions/Video"
},
{
"$ref": "#/definitions/OtherBlock"
}
],
"title": "Block",
"description": "Union of all block content types."
},
"Image": {
"type": "object",
"title": "Image",
"required": [
"type",
"url"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"alt": {
"type": "string",
"description": "Alternative text describing the media for accessibility."
},
"url": {
"type": "string",
"description": "The URL or path to the media file."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Image"
],
"description": "The type discriminator for Image nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
},
"encodingFormat": {
"type": "string",
"description": "The MIME type of the media file."
}
},
"description": "RFC0006: Block-level still image, referenced by URL."
},
"Video": {
"type": "object",
"title": "Video",
"required": [
"type",
"url"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"alt": {
"type": "string",
"description": "Alternative text describing the media for accessibility."
},
"url": {
"type": "string",
"description": "The URL or path to the media file."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Video"
],
"description": "The type discriminator for Video nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
},
"encodingFormat": {
"type": "string",
"description": "The MIME type of the media file."
}
},
"description": "RFC0006: Block-level video or animation, referenced by URL."
},
"Inline": {
"anyOf": [
{
"$ref": "#/definitions/Cite"
},
{
"$ref": "#/definitions/CiteGroup"
},
{
"$ref": "#/definitions/Text"
},
{
"$ref": "#/definitions/Emphasis"
},
{
"$ref": "#/definitions/InlineCode"
},
{
"$ref": "#/definitions/Strong"
},
{
"$ref": "#/definitions/Subscript"
},
{
"$ref": "#/definitions/Superscript"
},
{
"$ref": "#/definitions/CodeExpr"
},
{
"$ref": "#/definitions/InlineImage"
},
{
"$ref": "#/definitions/InlineVideo"
},
{
"$ref": "#/definitions/OtherInline"
}
],
"title": "Inline",
"description": "Union of all inline content types."
},
"Strong": {
"type": "object",
"title": "Strong",
"required": [
"type",
"children"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Strong"
],
"description": "The type discriminator for Strong nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "The inline content to emphasize."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "Strongly emphasized content (typically bold)."
},
"Heading": {
"type": "object",
"title": "Heading",
"required": [
"type",
"level",
"children"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Heading"
],
"description": "The type discriminator for Heading nodes."
},
"level": {
"type": "integer",
"maximum": 6,
"minimum": 1,
"description": "The heading level (1-6)."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "The inline content of the heading."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "A heading with a level and inline content."
},
"CodeCell": {
"type": "object",
"title": "CodeCell",
"required": [
"type",
"code"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"code": {
"type": "string",
"description": "The source code to execute."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"CodeCell"
],
"description": "The type discriminator for CodeCell nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"isEchoed": {
"type": "boolean",
"default": false,
"description": "Whether the source code is displayed to readers."
},
"isHidden": {
"type": "boolean",
"default": false,
"description": "Whether outputs are hidden from readers."
},
"language": {
"type": "string",
"description": "Programming language identifier (e.g., python, r, javascript)."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "RFC0004: An executable block of code that can produce outputs."
},
"CodeExpr": {
"type": "object",
"title": "CodeExpr",
"required": [
"type",
"code"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"code": {
"type": "string",
"description": "The expression to evaluate."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"CodeExpr"
],
"description": "The type discriminator for CodeExpr nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"language": {
"type": "string",
"description": "Programming language identifier (e.g., python, r, javascript)."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "RFC0004: An executable expression embedded within prose, evaluating to a single inline value."
},
"Document": {
"type": "object",
"title": "Document",
"required": [
"type",
"children"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Document"
],
"description": "The type discriminator for Document nodes."
},
"title": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "The document title as inline content."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Block"
},
"description": "The block content of the document."
},
"metadata": {
"type": "object",
"description": "Arbitrary document metadata.",
"additionalProperties": true
}
},
"description": "A document with metadata, title, and block content."
},
"Emphasis": {
"type": "object",
"title": "Emphasis",
"required": [
"type",
"children"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Emphasis"
],
"description": "The type discriminator for Emphasis nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "The inline content to emphasize."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "Emphasized content (typically italicized)."
},
"CiteGroup": {
"type": "object",
"title": "CiteGroup",
"required": [
"type",
"kind",
"children"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"kind": {
"enum": [
"narrative",
"parenthetical"
],
"description": "The citation display style shared by the group."
},
"type": {
"enum": [
"CiteGroup"
],
"description": "The type discriminator for CiteGroup nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Cite"
},
"minItems": 1,
"description": "The citations in the group."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "An inline container that groups citations with shared display semantics. (RFC0005)"
},
"Paragraph": {
"type": "object",
"title": "Paragraph",
"required": [
"type",
"children"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Paragraph"
],
"description": "The type discriminator for Paragraph nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "The inline content of the paragraph."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "A paragraph of inline content."
},
"Reference": {
"type": "object",
"title": "Reference",
"required": [
"type",
"id",
"csl"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node, used by Cite xref values."
},
"csl": {
"type": "object",
"description": "A CSL-JSON item object for the bibliographic record.",
"additionalProperties": true
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Reference"
],
"description": "The type discriminator for Reference nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "Optional inline content for the rendered display of this reference."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "A block-level bibliographic record. (RFC0005)"
},
"Subscript": {
"type": "object",
"title": "Subscript",
"required": [
"type",
"children"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Subscript"
],
"description": "The type discriminator for Subscript nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "The inline content to render as subscript."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "Content rendered below the baseline (e.g. chemical formulae, variable indices)."
},
"InlineCode": {
"type": "object",
"title": "InlineCode",
"required": [
"type",
"value"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"InlineCode"
],
"description": "The type discriminator for InlineCode nodes."
},
"value": {
"type": "string",
"description": "The code content."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"language": {
"type": "string",
"description": "The programming language of the code content."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "Short fragments of code appearing within prose."
},
"OtherBlock": {
"type": "object",
"title": "OtherBlock",
"required": [
"type"
],
"properties": {
"type": {
"not": {
"enum": [
"Code",
"Heading",
"Paragraph",
"Reference",
"ThematicBreak",
"CodeCell",
"Image",
"Video"
]
},
"type": "string"
}
},
"description": "Forward-compatible fallback for block node types not yet defined by an accepted RFC (e.g. Section, Figure, Table, MathBlock -- pending future RFCs). Accepted structurally by type discriminator only; field-level shape is not validated."
},
"InlineImage": {
"type": "object",
"title": "InlineImage",
"required": [
"type",
"url"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"alt": {
"type": "string",
"description": "Alternative text describing the media for accessibility."
},
"url": {
"type": "string",
"description": "The URL or path to the media file."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"InlineImage"
],
"description": "The type discriminator for InlineImage nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
},
"encodingFormat": {
"type": "string",
"description": "The MIME type of the media file."
}
},
"description": "RFC0006: Inline still image, referenced by URL."
},
"InlineVideo": {
"type": "object",
"title": "InlineVideo",
"required": [
"type",
"url"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"alt": {
"type": "string",
"description": "Alternative text describing the media for accessibility."
},
"url": {
"type": "string",
"description": "The URL or path to the media file."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"InlineVideo"
],
"description": "The type discriminator for InlineVideo nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
},
"encodingFormat": {
"type": "string",
"description": "The MIME type of the media file."
}
},
"description": "RFC0006: Inline video or animation, referenced by URL."
},
"OtherInline": {
"type": "object",
"title": "OtherInline",
"required": [
"type"
],
"properties": {
"type": {
"not": {
"enum": [
"Cite",
"CiteGroup",
"Text",
"Emphasis",
"InlineCode",
"Strong",
"Subscript",
"Superscript",
"CodeExpr",
"InlineImage",
"InlineVideo"
]
},
"type": "string"
}
},
"description": "Forward-compatible fallback for inline node types not yet defined by an accepted RFC (e.g. Section, Figure, Table, MathBlock -- pending future RFCs). Accepted structurally by type discriminator only; field-level shape is not validated."
},
"Superscript": {
"type": "object",
"title": "Superscript",
"required": [
"type",
"children"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"Superscript"
],
"description": "The type discriminator for Superscript nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Inline"
},
"description": "The inline content to render as superscript."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "Content rendered above the baseline (e.g. exponents, ordinal suffixes)."
},
"ThematicBreak": {
"type": "object",
"title": "ThematicBreak",
"required": [
"type"
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier for the node."
},
"data": {
"type": "object",
"description": "Arbitrary key-value data attached to the node.",
"additionalProperties": true
},
"type": {
"enum": [
"ThematicBreak"
],
"description": "The type discriminator for ThematicBreak nodes."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of class names for styling or semantics."
},
"metadata": {
"type": "object",
"description": "RFC0006 (Modular Metadata): structured descriptive information (authorship, licensing, identifiers, etc.) that applies to this node and, unless overridden, its descendants. Field-level shape intentionally left open pending future RFCs.",
"additionalProperties": true
}
},
"description": "A thematic or structural division between sections of content."
}
},
"description": "JSON Schema for OXA document types, aggregated from the base schema plus open RFCs oxa-dev/rfc#4 (executable code), #5 (citations/references), #6 (images/media), and #7 (modular metadata), as if all four were accepted as-is. Block/Inline unions include an open fallback branch for node types not yet defined by an accepted RFC."
}Used by 1 collection
elifepathways/oxa-experimentalas
Document · 1 versionFull hash:0350ac56281223b51159434b6d4c34d8778ff2410f9196c553176f43b80cf04d
ID:c16d8020-ffa0-4825-8ef2-b9d72f2626cf