{"name":"OPF dynamic composition","description":"Slide.composition overrides layout composition defaults. Groups compose their blocks independently. Gap and padding are fractions of the container short edge. Text metrics are deterministic estimates; inspect final output with your fonts.","schema":{"type":"object","additionalProperties":false,"description":"Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only minFontSizePx, maxFontSizePx and overflow. Blocks placed in cells (ContentPayload.region on a slide without a layout) retain their positions. A layout defines its grid as one ordered list of regions; its composition supports gap, padding, minFontSizePx, maxFontSizePx and overflow rather than mode, columns or weights.","properties":{"mode":{"type":"string","enum":["auto","grid","row","column"],"description":"auto chooses a grid from available space and content; grid uses columns; row and column use one horizontal or vertical track."},"columns":{"type":"integer","minimum":1,"maximum":12,"description":"Column count for grid. In auto mode this caps the number of columns."},"gap":{"type":"number","minimum":0,"maximum":0.1,"description":"Space between cells as a fraction of the container short edge (canvas at slide root). Default 0.03333333333333333."},"padding":{"type":"number","minimum":0,"maximum":0.2,"description":"Inset as a fraction of the container short edge. Default 0.08 on a slide, 0 inside a group."},"weights":{"type":"array","minItems":1,"maxItems":12,"items":{"type":"number","exclusiveMinimum":0,"maximum":100},"description":"Relative track sizes: columns for row/grid/auto, rows for column. Omitted tracks have weight 1; extra weights are ignored."},"minFontSizePx":{"type":"number","minimum":8,"maximum":32,"description":"Minimum readable text size in reference pixels at a 720-pixel canvas short edge. Default 16. Overflow is diagnosed when text cannot fit at this size."},"maxFontSizePx":{"type":"number","minimum":8,"maximum":200,"description":"Largest body text size in reference pixels at a 720-pixel canvas short edge: paragraphs, lists, quotes, metrics and timelines are never set larger, their growth included (headings, tables, code and charts keep their sizes). Never lowers text under minFontSizePx. paginate writes it on the pages after the first, so the pages of one slide share its type sizes."},"overflow":{"type":"string","enum":["warn","error"],"description":"warn returns diagnostics for content that does not fit; error rejects layout. Content is never silently removed. Default warn."}}},"contentSchema":{"type":"object","description":"A content leaf or recursively composed group. A group contains blocks and optional composition; it cannot mix blocks with leaf payload fields. Groups may nest up to 32 levels.","additionalProperties":false,"$comment":"dependentSchemas states in the schema what the format check also reports with a located message: which options belong to which kind of block. packages/javascript/test/payload-option-parity.test.mjs keeps the two in step.","dependentSchemas":{"fit":{"$ref":"#/$defs/ImageBlockOption"},"focus":{"$ref":"#/$defs/ImageBlockOption"},"recolor":{"$ref":"#/$defs/ImageBlockOption"},"overlay":{"$ref":"#/$defs/ImageBlockOption"},"placement":{"$ref":"#/$defs/ImageBlockOption"},"portrait":{"$ref":"#/$defs/ImageBlockOption"},"aspectRatio":{"$ref":"#/$defs/ImageOrShapeBlockOption"},"adjust":{"$ref":"#/$defs/ImageOrShapeBlockOption"},"stroke":{"$ref":"#/$defs/ImageOrShapeBlockOption"},"opacity":{"$ref":"#/$defs/ImageOrShapeBlockOption"},"fill":{"$ref":"#/$defs/ShapeBlockOption"},"style":{"$ref":"#/$defs/ShapeBlockOption"},"rotate":{"$ref":"#/$defs/ShapeBlockOption"},"flip":{"$ref":"#/$defs/ShapeBlockOption"},"anchor":{"$ref":"#/$defs/ShapeBlockOption"},"padding":{"$ref":"#/$defs/ShapeBlockOption"},"textDirection":{"$ref":"#/$defs/ShapeBlockOption"},"alt":{"$ref":"#/$defs/ShapeBlockOption"},"decorative":{"$ref":"#/$defs/ShapeBlockOption"},"hidden":{"$ref":"#/$defs/ShapeBlockOption"},"link":{"$ref":"#/$defs/ShapeBlockOption"},"shadow":{"$ref":"#/$defs/ShapeBlockOption"},"innerShadow":{"$ref":"#/$defs/ShapeBlockOption"},"glow":{"$ref":"#/$defs/ShapeBlockOption"},"softEdge":{"$ref":"#/$defs/ShapeBlockOption"},"reflection":{"$ref":"#/$defs/ShapeBlockOption"},"blur":{"$ref":"#/$defs/ShapeBlockOption"},"path":{"not":{"required":["image"]},"description":"A custom outline makes a shape block; a picture's mask is a preset 'shape'."},"caption":{"anyOf":[{"required":["image"]},{"required":["chart"]},{"required":["table"]},{"required":["video"]},{"required":["embed"]},{"required":["diagram"]}],"description":"A caption belongs to an image, chart, table, video, embed or diagram."}},"properties":{"id":{"type":"string","description":"Optional stable identifier for this payload, unique among slide and payload ids in the document. Use when another system needs to address the payload across edits — patch-style agent edits, comments, review state, or generation provenance. Identity survives reordering where array indexes do not.","examples":["kpi-adoption","churn-quote"]},"extensions":{"type":"object","description":"Custom data passthrough for agent workflows at payload scope; ignored by the engine but preserved across read/write round-trips."},"region":{"type":"string","pattern":"^([a-z][a-z0-9-]*|(top|middle|bottom|top\\+middle|middle\\+bottom|top\\+middle\\+bottom)(:(start|center|end|start\\+center|center\\+end|start\\+center\\+end))?|start|center|end|start\\+center|center\\+end|start\\+center\\+end)$","description":"Where a root block (slides.N.blocks.I) goes. On a slide with a layout: a region of that layout, by name. The block goes to that region when the region exists, accepts the block's kind and has room; otherwise the pin is ignored with a warning (opf/region-unknown, opf/region-kind or opf/region-full) and the block is placed by its kind. Blocks without a pin are bound by reading order, role and kind. On a slide without a layout: a cell of the slide's 3 x 3 grid below the headings, a column band ('start', 'center', 'end', 'start+center', 'center+end', 'start+center+end'), a row band ('top', 'middle', 'bottom', 'top+middle', 'middle+bottom', 'top+middle+bottom') or rows, a colon, then columns ('top:start', 'middle+bottom:center+end'); each half lists adjacent names in reading order. The columns are logical ('start' is the right column in a right-to-left deck). A slide places every block in a cell or none: when one block names a cell, every block of the slide's blocks names one (opf/schema otherwise). Blocks that name the same cell stack in it in source order, as a group's blocks would; two different cells may not overlap. A cell word on a slide with a layout names no region of it (opf/region-unknown), and a layout region's name is never a cell word. A pin on a nested block has no effect.","examples":["aside","media","start","top:center+end"]},"type":{"type":"string","enum":["text","list","image","chart","table","video","embed","code","metric","quote","timeline","diagram","shape","group"],"description":"Optional content kind. When omitted, engines infer the kind from the fields present: a block with 'shape' and no 'image', or with 'path', is a shape block."},"text":{"oneOf":[{"type":"string"},{"type":"array","items":{"$ref":"#/$defs/TextRun"}}],"description":"Text payload. Use a string for plain text or TextRun[] for inline rich text. TextRun items may be plain strings or formatted run objects.","examples":["Hello, world",["Revenue grew ",{"text":"42%","bold":true,"color":"#16A34A"}," year over year."]]},"items":{"type":"array","items":{"$ref":"#/$defs/ListItem"},"description":"Structured list payload (type 'list'). Each item is either a plain string, a TextRun[] rich text sequence, or a ListItem object with optional `description`. List nesting uses item.level rather than nested content payloads. Use `items` when entries share a shape or any entry needs a `description`; use `bullets` for plain talking points. Both draw the same marker, nesting and numbering. A block or region holds `items` or `bullets`, never both, and `items` cannot sit beside `text`.","examples":[["Sub-second agent latency",["Drop-in compatible with ",{"text":"OpenAI tool-calling","bold":true}],{"text":"SOC 2 Type II","description":"Security review ready for enterprise procurement."}]]},"bullets":{"type":"array","items":{"$ref":"#/$defs/BulletItem"},"description":"Prose bullet payload: short talking points, each standing alone. Presence of this field infers type 'text', so it may sit beside `text` in one payload. Entries have no `description`; use `items` for entries with supporting detail.","examples":[["Sub-second agent latency","Drop-in compatible with OpenAI tool-calling","SOC 2 Type II"]]},"numbering":{"$ref":"#/$defs/NumberingSpec","description":"Number the payload's `items` or `bullets` instead of bulleting them. A style name (arabic, roman-upper, roman-lower, alpha-upper, alpha-lower) or a Numbering object applies to every list level; an array gives one entry per level (index = level, the last entry repeats for deeper levels). Counting follows PowerPoint: consecutive entries of one level count up from its start, and an entry of a shallower level restarts the deeper levels. Absent = bullets. Valid only with `items` or `bullets`. Native PowerPoint export writes a:buAutoNum with the matching scheme and startAt; the preview draws the same numbers at the same marker geometry.","examples":["arabic","roman-lower",{"style":"alpha-upper","start":3,"suffix":"paren"},["arabic","alpha-lower",{"style":"roman-lower","suffix":"paren-both"}]]},"columns":{"oneOf":[{"const":"auto"},{"type":"integer","minimum":1,"maximum":3}],"description":"Lay the payload's `items` or `bullets` out in columns. 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. Without it, a list of more than 6 entries in a layout region without an arrangement (or with the numbered one) flows into columns as 'auto' does, kept only when they set it at least as large as one column.","examples":["auto",2]},"image":{"$ref":"#/$defs/ImagePayload","description":"Source for an image item.","examples":["https://cdn.acme.com/images/diagram.png","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAusB9V3iWggAAAAASUVORK5CYII=","./images/diagram.png","asset:img-diagram"]},"fit":{"type":"string","enum":["cover","contain","stretch","auto"],"description":"Image payloads only. How the picture fills its frame: 'cover' fills it and crops what overflows around focus; 'contain' shows the whole picture, in a frame of its own proportions placed at the region's anchor (top by default); 'stretch' scales it to the frame exactly; 'auto' covers when the crop keeps at least 85% of the picture's width or height and contains otherwise (an SVG, or a picture whose size cannot be read from the document, is contained), so a photo close to its frame's shape fills it and any other is shown whole. Default: the effective design.imageFit, else 'cover' in a layout and 'contain' on a slide with no layout."},"focus":{"$ref":"#/$defs/ImageFocus","description":"Image payloads only. Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits. Without a focus a portrait picture (taller than wide) cropped into a wider frame keeps y 0.3 so heads stay in frame; every other crop is centered."},"aspectRatio":{"type":"number","exclusiveMinimum":0,"maximum":10,"description":"Image payloads only. Width-to-height ratio of the frame: the frame becomes the largest centered box with this ratio inside the block's region, for example 2.39 for a cinematic letterbox or 0.5 for a phone-shaped frame. shape 'circle' always uses 1."},"shape":{"$ref":"#/$defs/ShapePreset","description":"The preset geometry. Without 'image' it makes the block a shape block: the preset drawn at the block's own fitted size with 'fill', 'stroke' and 'style', and 'text' inside its text rectangle. On an image block it is the frame's mask, exported as the picture's native preset geometry (a:prstGeom); 0.33 renamed rectangle, rounded and circle to rect, roundRect and ellipse, and every other preset is a mask too. 'ellipse' makes an image frame square. Default rect.","examples":["roundRect","chevron","ellipse","wedgeRectCallout"]},"stroke":{"$ref":"#/$defs/Stroke","description":"Shape and image blocks. The line along the outline: a shape's outline or the picture frame's shape (renamed from the picture key 'border' in 0.33, no alias). Without it a shape takes its style's line; a picture has none."},"path":{"$ref":"#/$defs/ShapePath","description":"Shape blocks only. Custom geometry instead of a preset (a:custGeom): SVG path data in a 0 to 1 box, or { d, viewBox }. A block with 'path' is a shape block."},"fill":{"$ref":"#/$defs/ShapeFill","description":"Shape blocks only. 'none', a ColorRef, { gradient } or { pattern }. Default the style's fill."},"style":{"type":"string","enum":["none","subtle","moderate","intense"],"description":"Shape blocks only. The theme shape style, as PowerPoint's shape styles (p:style with a:lnRef, a:fillRef, a:effectRef and a:fontRef): subtle is a light tint of accent1 with an accent1 line and dark text, moderate (the default) a solid accent1 fill with a darker line and light text, intense accent1 25% darker with no line, light bold text and the soft shadow. none draws nothing the author did not set. An explicit fill, stroke or effect wins over the style's."},"rotate":{"type":"number","minimum":-360,"maximum":360,"description":"Shape blocks only. Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Composition keeps the unrotated box; the rotated outline may reach past it."},"flip":{"type":"string","enum":["horizontal","vertical","both"],"description":"Shape blocks only. Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored."},"anchor":{"type":"string","enum":["top","middle","bottom"],"description":"Shape blocks only. Vertical placement of the text in the text rectangle (a:bodyPr anchor t, ctr, b). Default middle."},"padding":{"$ref":"#/$defs/ShapePadding","description":"Shape blocks only. Text insets inside the text rectangle."},"textDirection":{"type":"string","enum":["horizontal","vertical","vertical270","stacked"],"description":"Shape blocks only. Text direction (a:bodyPr vert horz, vert, vert270, wordArtVert): vertical turns the text 90 degrees clockwise, vertical270 270, stacked stacks the letters top to bottom. Default horizontal."},"alt":{"type":"string","description":"Shape blocks only. Alternative text for screen readers (p:cNvPr descr). Without it a shape's text is what is read."},"decorative":{"type":"boolean","description":"Shape blocks only. Mark the shape decorative (a16:decorative): screen readers skip it and the accessibility checker does not ask for alt text."},"hidden":{"type":"boolean","description":"Shape blocks only. Keep the shape in the file but do not draw it (p:cNvPr hidden). Composition still gives it its room. A link on a hidden shape cannot be clicked and is a validation finding (opf/shape-link-hidden)."},"link":{"type":"string","pattern":"^(https?://|mailto:|tel:|slide:)\\S+$","description":"Shape blocks only. Link followed when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address, a 'tel:' number or 'slide:<id>', a jump to the slide of this deck with that id (ppaction://hlinksldjump). An unknown slide id is a validation error (opf/slide-link-unknown).","examples":["https://acme.com/pricing","slide:pricing"]},"shadow":{"$ref":"#/$defs/Shadow","description":"Shape blocks only. Outer shadow."},"innerShadow":{"$ref":"#/$defs/InnerShadow","description":"Shape blocks only. Inner shadow."},"glow":{"$ref":"#/$defs/Glow","description":"Shape blocks only. Glow."},"softEdge":{"type":"number","minimum":0,"maximum":200,"description":"Shape blocks only. Soft edges (a:softEdge): the radius over which the outline fades, in reference pixels at a 720-pixel short edge."},"reflection":{"$ref":"#/$defs/Reflection","description":"Shape blocks only. Reflection."},"blur":{"type":"number","minimum":0,"maximum":200,"description":"Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge."},"adjust":{"type":"object","propertyNames":{"pattern":"^[a-z][A-Za-z0-9]*$"},"additionalProperties":{"type":"number"},"description":"Shape and image blocks. The preset's adjust handles (a:avLst), named as DrawingML's guides (adj, adj1, adj2 ... and hexagon's vf): fractions of the shape's shorter side or of its size as the preset defines them, degrees for an angle, never DrawingML's 100000ths or 60000ths. roundRect's adj is the corner radius as a fraction of the shorter side (0.16667 by default, 0 to 0.5). An unknown name or a value out of the preset's range is a validation finding (opf/shape-adjust-unknown, opf/shape-adjust-range) and the preset's default is drawn.","examples":[{"adj":0.25},{"adj1":0.5,"adj2":0.35}]},"opacity":{"type":"number","minimum":0,"maximum":1,"description":"Image and shape blocks. On an image: the picture's opacity, exported as a native alphaModFix; the stroke and overlay keep their own. On a shape: the fill's opacity (a:alpha on the fill color, multiplied with an eight-digit hex alpha); the stroke and text keep theirs. Default 1."},"recolor":{"$ref":"#/$defs/ImageRecolor","description":"Image payloads only. Grayscale or duotone treatment of the picture's pixels."},"overlay":{"$ref":"#/$defs/Overlay","description":"Image payloads only. Scrim over the picture in the frame's shape, or a band along one edge of a rectangle frame."},"placement":{"$ref":"#/$defs/ImagePlacement","description":"Image payloads only, and only on a top-level block (slides.N.blocks.I), at most one per edge. Bleeds the image to one slide edge; the headings and the other blocks compose in the rest of the slide."},"portrait":{"type":"string","enum":["avatar","side","top"],"description":"Image payloads only: how a person's picture is drawn in a team. A person is a group of a picture followed by a name (a list of one entry, whose description holds the role and a line, or a short text); a slide whose body is only people is a team. 'top' draws each picture across the top of its card at the card's width, 'side' beside the text at 40% of the card's width (on the logical start side), 'avatar' as the small picture over the name. Without it the engine chooses: 'top' for 2 to 4 people, 'side' for 5 or 6, the avatar for more or when a card is too narrow. The first person's value applies to the whole team, so the cards stay equal. A 'top' or 'side' picture covers its frame around `focus` (the upper third when none is given) in a rounded frame unless `shape` says otherwise; names, roles and lines keep their size, and a frame flatter than 4:3 falls back to the avatar. Ignored on a picture that is not a person's.","examples":["top","side","avatar"]},"video":{"$ref":"#/$defs/Asset","description":"Source for a video item. Engines do not play video: the preview draws a placeholder (a play badge with the asset's title or source as its caption), and PPTX export draws the same placeholder as native shapes linked to an http(s) source, with no embedded media. Native playback is out of scope (docs/programs/release-readiness).","examples":["asset:demo-video","./media/demo.mp4"]},"embed":{"$ref":"#/$defs/EmbedPayload","description":"Embed payload: a live web page. Presence of this field infers type 'embed'. Takes a caption and none of the image options (fit, focus, aspectRatio, recolor, ...): the frame's proportions are EmbedPayload.aspectRatio. See EmbedPayload."},"chart":{"$ref":"#/$defs/Chart","description":"Chart payload. Presence of this field infers type 'chart'."},"table":{"$ref":"#/$defs/Table","description":"Table payload. Presence of this field infers type 'table'."},"code":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/Code"}],"description":"Code payload. A string is shorthand for { \"source\": value }; object form carries optional syntax language and filename metadata.","examples":["def greet(name: str) -> str:\n    return f\"Hello, {name}!\"",{"source":"export function greet(name: string) {\n  return `Hello, ${name}`;\n}","language":"ts","filename":"greet.ts"}]},"metric":{"oneOf":[{"type":"string"},{"type":"number"},{"$ref":"#/$defs/Metric"}],"description":"Metric payload. A string or number is shorthand for { \"value\": value }; object form carries optional label, description, unit, delta, trend, and sentiment metadata. Numeric values remain numbers; renderers format them for display.","examples":["98%",42,{"value":"$12.4M","label":"Revenue","description":"Recognized revenue for the quarter.","delta":"+12%","trend":"up"}]},"quote":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/Quote"}],"description":"Quote payload. A string is shorthand for { \"text\": value }; object form carries optional attribution, role, photo and source metadata.","examples":["This changed how our team handles reviews.",{"text":"This changed how our team handles reviews.","attribution":"VP Operations, Acme Corp","source":"Customer interview, March 2026"}]},"timeline":{"$ref":"#/$defs/Timeline","description":"Timeline payload ordered by narrative or chronology.","examples":[[{"when":"2026-01","what":"Pilot","description":"Launch with the first operations team."},{"when":"2026-04","what":"Rollout","description":"Expand to all regions."}],{"name":"Rollout Plan","description":"Major milestones for the regional rollout.","events":[{"when":"Q1","what":"Pilot"},{"when":"Q2","what":"Rollout"}]}]},"diagram":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/Diagram"}],"description":"Diagram payload: Mermaid source (flowchart, sequence, state, class, ER, mindmap, timeline, journey, C4, architecture and the other built-in Mermaid families), or Graphviz DOT or PlantUML source with 'syntax', drawn in the deck's fonts and colors. A string is shorthand for { \"source\": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'.","examples":["flowchart LR\n  A[Brief] --> B{Approved?}\n  B -->|yes| C[Build]\n  B -->|no| A",{"source":"sequenceDiagram\n  Client->>API: POST /decks\n  API-->>Client: 201 Created","alt":"The client creates a deck and the API answers 201 Created."}]},"caption":{"$ref":"#/$defs/Caption","description":"Caption for an image, chart, table, video, embed or diagram payload, composed inside the block's region (below the media by default). Invalid on other payload kinds and on groups."},"blocks":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/ContentPayload"},"description":"Ordered children of a group. Each child is a leaf or another group."},"composition":{"$ref":"#/$defs/Composition","description":"Arrangement within this group. Only minFontSizePx, maxFontSizePx and overflow inherit from the parent; strict overflow cannot be weakened."},"emphasis":{"type":"boolean","description":"true draws this block or group on the slide's emphasis surface: a contrasting card in its cell (a dark card on a light slide, an accent card on a dark one), from the deck's own scheme slots, with every text color on it at 4.5:1 or more against its fill. A slide has one emphasis surface: the first block or group with emphasis: true in reading order takes it, and any other is drawn without it (composition diagnostic emphasis-ignored). Without any, a slide's short last text block (60 characters or fewer) after longer blocks is drawn as a band at the foot of the body, and one of 30 or fewer after a lone long text as a pill right under that text; neither is drawn where it would cost another block its fitted size. Without any either, the second card of a before-and-after or problem-and-solution pair, or the one tier of a set marked recommended or most popular, takes the surface and the other cards of the pair or set are drawn on plain cards (read from the blocks' labels and short texts, never from ids). false keeps a block out of those automatic rules.","examples":[true,false]},"icon":{"$ref":"#/$defs/IconReference","description":"Groups only: an icon drawn on a chip at the top of the group, before its heading, as a card of features or topics draws one: \"<set>:<name>\" (\"lucide:shield-check\"), a name from the deck's icons, or an SVG source. A list entry and a metric take their own `icon`. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md."}},"allOf":[{"if":{"required":["type"],"properties":{"type":{"const":"list"}}},"then":{"required":["items"]}},{"if":{"required":["type"],"properties":{"type":{"const":"image"}}},"then":{"required":["image"]}},{"if":{"required":["type"],"properties":{"type":{"const":"chart"}}},"then":{"required":["chart"]}},{"if":{"required":["type"],"properties":{"type":{"const":"table"}}},"then":{"required":["table"]}},{"if":{"required":["type"],"properties":{"type":{"const":"video"}}},"then":{"required":["video"]}},{"if":{"required":["type"],"properties":{"type":{"const":"embed"}}},"then":{"required":["embed"]}},{"if":{"required":["type"],"properties":{"type":{"const":"code"}}},"then":{"required":["code"]}},{"if":{"required":["type"],"properties":{"type":{"const":"metric"}}},"then":{"required":["metric"]}},{"if":{"required":["type"],"properties":{"type":{"const":"quote"}}},"then":{"required":["quote"]}},{"if":{"required":["type"],"properties":{"type":{"const":"timeline"}}},"then":{"required":["timeline"]}},{"if":{"required":["type"],"properties":{"type":{"const":"diagram"}}},"then":{"required":["diagram"]}},{"if":{"required":["type"],"properties":{"type":{"const":"shape"}}},"then":{"anyOf":[{"required":["shape"]},{"required":["path"]}]}},{"if":{"required":["type"],"properties":{"type":{"const":"group"}}},"then":{"required":["blocks"]}},{"if":{"required":["composition"]},"then":{"required":["blocks"]}},{"if":{"required":["blocks"]},"then":{"properties":{"type":{"const":"group"}},"not":{"anyOf":[{"required":["text"]},{"required":["items"]},{"required":["bullets"]},{"required":["image"]},{"required":["video"]},{"required":["embed"]},{"required":["chart"]},{"required":["table"]},{"required":["code"]},{"required":["metric"]},{"required":["quote"]},{"required":["timeline"]},{"required":["diagram"]}]}}},{"if":{"required":["columns"]},"then":{"anyOf":[{"required":["items"]},{"required":["bullets"]}]}}]},"nesting":{"maxDepth":32,"inherited":["minFontSizePx","overflow"],"groupPaddingDefault":0},"examples":[{"$schema":"https://openpresentation.org/schema/opf/v1","name":"auto composition","slides":[{"title":"Content with room to breathe","composition":{"mode":"auto"},"blocks":[{"text":"State the decision."},{"text":"Show the evidence."},{"text":"Name the next step."}]}]},{"$schema":"https://openpresentation.org/schema/opf/v1","name":"row composition","slides":[{"title":"Content with room to breathe","composition":{"mode":"row"},"blocks":[{"text":"State the decision."},{"text":"Show the evidence."},{"text":"Name the next step."}]}]},{"$schema":"https://openpresentation.org/schema/opf/v1","name":"column composition","slides":[{"title":"Content with room to breathe","composition":{"mode":"column"},"blocks":[{"text":"State the decision."},{"text":"Show the evidence."},{"text":"Name the next step."}]}]},{"$schema":"https://openpresentation.org/schema/opf/v1","name":"grid composition","slides":[{"title":"Content with room to breathe","composition":{"mode":"grid"},"blocks":[{"text":"State the decision."},{"text":"Show the evidence."},{"text":"Name the next step."}]}]}]}