{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agents.fabric.pro/a2ui/v0.9/fabric_catalog.json",
  "catalogId": "https://agents.fabric.pro/a2ui/v0.9/fabric_catalog.json",
  "title": "Fabric A2UI Catalog",
  "description": "The A2UI v0.9.1 basic catalog plus Fabric's components for explaining and learning (Chart, Stat, Callout, Steps, Quiz, Flashcards, Timeline, Compare, Diagram, Code, Table) and two functions (calc, formatValue). Rendered by Fabric Agents (https://agents.fabric.pro); a surface opts in with this catalogId. Validate components through $defs/anyComponent (it adds ComponentCalls: no call to a function outside this catalog, at any depth). A component this schema accepts is one Fabric draws; the schema follows the spec's types, so it is stricter than Fabric in places (Fabric also draws some documents it refuses). Templates (formatString value, openUrl url) may call only this catalog's functions. Fabric also refuses what a schema cannot express: regexes it cannot run safely.",
  "components": {
    "Text": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Text"
            },
            "text": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The text content to display. While simple Markdown formatting is supported (i.e. without HTML, images, or links), utilizing dedicated UI components is generally preferred for a richer and more structured presentation."
            },
            "variant": {
              "type": "string",
              "description": "A hint for the base text style.",
              "enum": [
                "h1",
                "h2",
                "h3",
                "h4",
                "h5",
                "caption",
                "body"
              ],
              "default": "body"
            }
          },
          "required": [
            "component",
            "text"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Image": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Image"
            },
            "url": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The URL of the image to display."
            },
            "description": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "Accessibility text for the image."
            },
            "fit": {
              "type": "string",
              "description": "Specifies how the image should be resized to fit its container. This corresponds to the CSS 'object-fit' property.",
              "enum": [
                "contain",
                "cover",
                "fill",
                "none",
                "scaleDown"
              ],
              "default": "fill"
            },
            "variant": {
              "type": "string",
              "description": "A hint for the image size and style.",
              "enum": [
                "icon",
                "avatar",
                "smallFeature",
                "mediumFeature",
                "largeFeature",
                "header"
              ],
              "default": "mediumFeature"
            }
          },
          "required": [
            "component",
            "url"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Icon": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Icon"
            },
            "name": {
              "description": "The name of the icon to display.",
              "oneOf": [
                {
                  "type": "string",
                  "enum": [
                    "accountCircle",
                    "add",
                    "arrowBack",
                    "arrowForward",
                    "attachFile",
                    "calendarToday",
                    "call",
                    "camera",
                    "check",
                    "close",
                    "delete",
                    "download",
                    "edit",
                    "event",
                    "error",
                    "fastForward",
                    "favorite",
                    "favoriteOff",
                    "folder",
                    "help",
                    "home",
                    "info",
                    "locationOn",
                    "lock",
                    "lockOpen",
                    "mail",
                    "menu",
                    "moreVert",
                    "moreHoriz",
                    "notificationsOff",
                    "notifications",
                    "pause",
                    "payment",
                    "person",
                    "phone",
                    "photo",
                    "play",
                    "print",
                    "refresh",
                    "rewind",
                    "search",
                    "send",
                    "settings",
                    "share",
                    "shoppingCart",
                    "skipNext",
                    "skipPrevious",
                    "star",
                    "starHalf",
                    "starOff",
                    "stop",
                    "upload",
                    "visibility",
                    "visibilityOff",
                    "volumeDown",
                    "volumeMute",
                    "volumeOff",
                    "volumeUp",
                    "warning"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "svgPath": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "svgPath"
                  ],
                  "additionalProperties": false
                },
                {
                  "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DataBinding"
                }
              ]
            }
          },
          "required": [
            "component",
            "name"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Video": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Video"
            },
            "url": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The URL of the video to display."
            }
          },
          "required": [
            "component",
            "url"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "AudioPlayer": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "AudioPlayer"
            },
            "url": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The URL of the audio to be played."
            },
            "description": {
              "description": "A description of the audio, such as a title or summary.",
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
            }
          },
          "required": [
            "component",
            "url"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Row": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "description": "A layout component that arranges its children horizontally. To create a grid layout, nest Columns within this Row.",
          "properties": {
            "component": {
              "const": "Row"
            },
            "children": {
              "description": "Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list. Children cannot be defined inline, they must be referred to by ID.",
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ChildList"
            },
            "justify": {
              "type": "string",
              "description": "Defines the arrangement of children along the main axis (horizontally). Use 'spaceBetween' to push items to the edges, or 'start'/'end'/'center' to pack them together.",
              "enum": [
                "center",
                "end",
                "spaceAround",
                "spaceBetween",
                "spaceEvenly",
                "start",
                "stretch"
              ],
              "default": "start"
            },
            "align": {
              "type": "string",
              "description": "Defines the alignment of children along the cross axis (vertically). This is similar to the CSS 'align-items' property, but uses camelCase values (e.g., 'start').",
              "enum": [
                "start",
                "center",
                "end",
                "stretch"
              ],
              "default": "stretch"
            }
          },
          "required": [
            "component",
            "children"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Column": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "description": "A layout component that arranges its children vertically. To create a grid layout, nest Rows within this Column.",
          "properties": {
            "component": {
              "const": "Column"
            },
            "children": {
              "description": "Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list. Children cannot be defined inline, they must be referred to by ID.",
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ChildList"
            },
            "justify": {
              "type": "string",
              "description": "Defines the arrangement of children along the main axis (vertically). Use 'spaceBetween' to push items to the edges (e.g. header at top, footer at bottom), or 'start'/'end'/'center' to pack them together.",
              "enum": [
                "start",
                "center",
                "end",
                "spaceBetween",
                "spaceAround",
                "spaceEvenly",
                "stretch"
              ],
              "default": "start"
            },
            "align": {
              "type": "string",
              "description": "Defines the alignment of children along the cross axis (horizontally). This is similar to the CSS 'align-items' property.",
              "enum": [
                "center",
                "end",
                "start",
                "stretch"
              ],
              "default": "stretch"
            }
          },
          "required": [
            "component",
            "children"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "List": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "List"
            },
            "children": {
              "description": "Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list.",
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ChildList"
            },
            "direction": {
              "type": "string",
              "description": "The direction in which the list items are laid out.",
              "enum": [
                "vertical",
                "horizontal"
              ],
              "default": "vertical"
            },
            "align": {
              "type": "string",
              "description": "Defines the alignment of children along the cross axis.",
              "enum": [
                "start",
                "center",
                "end",
                "stretch"
              ],
              "default": "stretch"
            }
          },
          "required": [
            "component",
            "children"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Card": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Card"
            },
            "child": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentId",
              "description": "The ID of the single child component to be rendered inside the card. To display multiple elements, you MUST wrap them in a layout component (like Column or Row) and pass that container's ID here. Do NOT pass multiple IDs or a non-existent ID."
            }
          },
          "required": [
            "component",
            "child"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Tabs": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Tabs"
            },
            "tabs": {
              "type": "array",
              "description": "An array of objects, where each object defines a tab with a title and a child component.",
              "minItems": 1,
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "description": "The tab title.",
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
                  },
                  "child": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentId",
                    "description": "The ID of the child component."
                  }
                },
                "required": [
                  "title",
                  "child"
                ],
                "additionalProperties": false
              },
              "maxItems": 12
            }
          },
          "required": [
            "component",
            "tabs"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Modal": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Modal"
            },
            "trigger": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentId",
              "description": "The ID of the component that opens the modal when interacted with (e.g., a button)."
            },
            "content": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentId",
              "description": "The ID of the component to be displayed inside the modal."
            }
          },
          "required": [
            "component",
            "trigger",
            "content"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Divider": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Divider"
            },
            "axis": {
              "type": "string",
              "description": "The orientation of the divider.",
              "enum": [
                "horizontal",
                "vertical"
              ],
              "default": "horizontal"
            }
          },
          "required": [
            "component"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Button": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/Checkable"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Button"
            },
            "child": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentId",
              "description": "The ID of the child component. Use a 'Text' component for a labeled button. Only use an 'Icon' if the requirements explicitly ask for an icon-only button."
            },
            "variant": {
              "type": "string",
              "description": "A hint for the button style. If omitted, a default button style is used. 'primary' indicates this is the main call-to-action button. 'borderless' means the button has no visual border or background, making its child content appear like a clickable link.",
              "enum": [
                "default",
                "primary",
                "borderless"
              ],
              "default": "default"
            },
            "action": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/Action"
            }
          },
          "required": [
            "component",
            "child",
            "action"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "TextField": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/Checkable"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "TextField"
            },
            "label": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The text label for the input field."
            },
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The value of the text field."
            },
            "variant": {
              "type": "string",
              "description": "The type of input field to display.",
              "enum": [
                "longText",
                "number",
                "shortText",
                "obscured"
              ],
              "default": "shortText"
            },
            "validationRegexp": {
              "type": "string",
              "description": "A regular expression used for client-side validation of the input."
            }
          },
          "required": [
            "component",
            "label"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "CheckBox": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/Checkable"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "CheckBox"
            },
            "label": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The text to display next to the checkbox."
            },
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicBoolean",
              "description": "The current state of the checkbox (true for checked, false for unchecked)."
            }
          },
          "required": [
            "component",
            "label",
            "value"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "ChoicePicker": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/Checkable"
        },
        {
          "type": "object",
          "description": "A component that allows selecting one or more options from a list.",
          "properties": {
            "component": {
              "const": "ChoicePicker"
            },
            "label": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The label for the group of options."
            },
            "variant": {
              "type": "string",
              "description": "A hint for how the choice picker should be displayed and behave.",
              "enum": [
                "multipleSelection",
                "mutuallyExclusive"
              ],
              "default": "mutuallyExclusive"
            },
            "options": {
              "type": "array",
              "description": "The list of available options to choose from.",
              "items": {
                "type": "object",
                "properties": {
                  "label": {
                    "description": "The text to display for this option.",
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
                  },
                  "value": {
                    "type": "string",
                    "description": "The stable value associated with this option."
                  }
                },
                "required": [
                  "label",
                  "value"
                ],
                "additionalProperties": false
              },
              "minItems": 1,
              "maxItems": 100
            },
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicStringList",
              "description": "The list of currently selected values. This should be bound to a string array in the data model."
            },
            "displayStyle": {
              "type": "string",
              "description": "The display style of the component.",
              "enum": [
                "checkbox",
                "chips"
              ],
              "default": "checkbox"
            },
            "filterable": {
              "type": "boolean",
              "description": "If true, displays a search input to filter the options.",
              "default": false
            }
          },
          "required": [
            "component",
            "options",
            "value"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Slider": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/Checkable"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Slider"
            },
            "label": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The label for the slider."
            },
            "min": {
              "type": "number",
              "description": "The minimum value of the slider.",
              "default": 0
            },
            "max": {
              "type": "number",
              "description": "The maximum value of the slider."
            },
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
              "description": "The current value of the slider."
            }
          },
          "required": [
            "component",
            "value",
            "max"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "DateTimeInput": {
      "type": "object",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/Checkable"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "DateTimeInput"
            },
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The selected date and/or time value in ISO 8601 format. If not yet set, initialize with an empty string."
            },
            "enableDate": {
              "type": "boolean",
              "description": "If true, allows the user to select a date.",
              "default": false
            },
            "enableTime": {
              "type": "boolean",
              "description": "If true, allows the user to select a time.",
              "default": false
            },
            "min": {
              "allOf": [
                {
                  "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
                },
                {
                  "if": {
                    "type": "string"
                  },
                  "then": {
                    "oneOf": [
                      {
                        "format": "date"
                      },
                      {
                        "format": "time"
                      },
                      {
                        "format": "date-time"
                      }
                    ]
                  }
                }
              ],
              "description": "The minimum allowed date/time in ISO 8601 format."
            },
            "max": {
              "allOf": [
                {
                  "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
                },
                {
                  "if": {
                    "type": "string"
                  },
                  "then": {
                    "oneOf": [
                      {
                        "format": "date"
                      },
                      {
                        "format": "time"
                      },
                      {
                        "format": "date-time"
                      }
                    ]
                  }
                }
              ],
              "description": "The maximum allowed date/time in ISO 8601 format."
            },
            "label": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The text label for the input field."
            }
          },
          "required": [
            "component",
            "value"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Chart": {
      "type": "object",
      "description": "A bar, line, area or pie chart. Give `series` with values, or `x` (a range) with each series' `expr` formula over `x`, so the chart follows the data model live.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Chart"
            },
            "kind": {
              "type": "string",
              "enum": [
                "bar",
                "line",
                "area",
                "pie"
              ],
              "description": "The chart type."
            },
            "title": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "A title above the chart."
            },
            "labels": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicStringList",
              "description": "Category labels, one per value."
            },
            "series": {
              "type": "array",
              "description": "The series to draw (1-8): each with `values`, or with `expr` when `x` is given.",
              "minItems": 1,
              "maxItems": 8,
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "The series name, shown in the legend."
                  },
                  "values": {
                    "description": "The values: numbers, or bindings/calls that yield numbers.",
                    "oneOf": [
                      {
                        "type": "array",
                        "items": {}
                      },
                      {
                        "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DataBinding"
                      },
                      {
                        "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/FunctionCall"
                      }
                    ]
                  },
                  "expr": {
                    "type": "string",
                    "description": "A calc formula over `x` (and the data model), evaluated at each x."
                  }
                },
                "required": [],
                "additionalProperties": false,
                "anyOf": [
                  {
                    "required": [
                      "values"
                    ]
                  },
                  {
                    "required": [
                      "expr"
                    ]
                  }
                ]
              }
            },
            "x": {
              "type": "object",
              "properties": {
                "from": {
                  "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
                  "description": "The first x."
                },
                "to": {
                  "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
                  "description": "The last x."
                },
                "steps": {
                  "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
                  "description": "How many points between them."
                }
              },
              "required": [
                "from",
                "to"
              ],
              "additionalProperties": false,
              "description": "An x range: each series' `expr` is evaluated at each x."
            },
            "format": {
              "type": "string",
              "description": "A value format: number, number:2 (decimals), integer, percent (0.12 shows as 12%), currency, currency:EUR, compact, bytes or duration (seconds)."
            },
            "xLabel": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The x axis label."
            },
            "yLabel": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The y axis label."
            }
          },
          "required": [
            "component",
            "series"
          ]
        },
        {
          "anyOf": [
            {
              "required": [
                "labels"
              ],
              "properties": {
                "labels": {
                  "not": {
                    "type": "array",
                    "maxItems": 0
                  }
                }
              }
            },
            {
              "required": [
                "x"
              ]
            }
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Stat": {
      "type": "object",
      "description": "One headline number with its label.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Stat"
            },
            "label": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "What the number is."
            },
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicValue",
              "description": "The number (or text)."
            },
            "format": {
              "type": "string",
              "description": "A value format: number, number:2 (decimals), integer, percent (0.12 shows as 12%), currency, currency:EUR, compact, bytes or duration (seconds)."
            },
            "hint": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "A short line under the number."
            }
          },
          "required": [
            "component",
            "label",
            "value"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Callout": {
      "type": "object",
      "description": "A highlighted note.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Callout"
            },
            "tone": {
              "type": "string",
              "enum": [
                "info",
                "tip",
                "warning",
                "success"
              ],
              "description": "The note's tone."
            },
            "title": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "A short title."
            },
            "text": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The note (simple Markdown, no images or links)."
            }
          },
          "required": [
            "component",
            "text"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Steps": {
      "type": "object",
      "description": "A process the person steps through, one step at a time.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Steps"
            },
            "steps": {
              "type": "array",
              "description": "The steps (1-40).",
              "minItems": 1,
              "maxItems": 40,
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "The step's title."
                  },
                  "text": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "What happens in this step (simple Markdown)."
                  },
                  "child": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentId",
                    "description": "A component shown with this step."
                  }
                },
                "required": [
                  "title"
                ],
                "additionalProperties": false
              }
            },
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
              "description": "The current step (0-based); bind it to keep it in the data model."
            }
          },
          "required": [
            "component",
            "steps"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Quiz": {
      "type": "object",
      "description": "Questions with choices, checked as the person answers, with a score at the end.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Quiz"
            },
            "questions": {
              "type": "array",
              "description": "The questions (1-40). A literal `answer` must be less than the number of choices.",
              "minItems": 1,
              "maxItems": 40,
              "items": {
                "type": "object",
                "properties": {
                  "question": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "The question."
                  },
                  "choices": {
                    "type": "array",
                    "minItems": 2,
                    "maxItems": 8,
                    "items": {
                      "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
                    },
                    "description": "The choices (2-8)."
                  },
                  "answer": {
                    "description": "The index of the right choice (0-based), or a binding/call that yields it.",
                    "oneOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 7
                      },
                      {
                        "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DataBinding"
                      },
                      {
                        "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/FunctionCall"
                      }
                    ]
                  },
                  "explain": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "Shown once the question is answered."
                  }
                },
                "required": [
                  "question",
                  "choices",
                  "answer"
                ],
                "additionalProperties": false,
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "choices": {
                          "minItems": 2,
                          "maxItems": 2
                        }
                      },
                      "required": [
                        "choices"
                      ]
                    },
                    "then": {
                      "properties": {
                        "answer": {
                          "anyOf": [
                            {
                              "not": {
                                "type": "integer"
                              }
                            },
                            {
                              "maximum": 1
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "choices": {
                          "minItems": 3,
                          "maxItems": 3
                        }
                      },
                      "required": [
                        "choices"
                      ]
                    },
                    "then": {
                      "properties": {
                        "answer": {
                          "anyOf": [
                            {
                              "not": {
                                "type": "integer"
                              }
                            },
                            {
                              "maximum": 2
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "choices": {
                          "minItems": 4,
                          "maxItems": 4
                        }
                      },
                      "required": [
                        "choices"
                      ]
                    },
                    "then": {
                      "properties": {
                        "answer": {
                          "anyOf": [
                            {
                              "not": {
                                "type": "integer"
                              }
                            },
                            {
                              "maximum": 3
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "choices": {
                          "minItems": 5,
                          "maxItems": 5
                        }
                      },
                      "required": [
                        "choices"
                      ]
                    },
                    "then": {
                      "properties": {
                        "answer": {
                          "anyOf": [
                            {
                              "not": {
                                "type": "integer"
                              }
                            },
                            {
                              "maximum": 4
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "choices": {
                          "minItems": 6,
                          "maxItems": 6
                        }
                      },
                      "required": [
                        "choices"
                      ]
                    },
                    "then": {
                      "properties": {
                        "answer": {
                          "anyOf": [
                            {
                              "not": {
                                "type": "integer"
                              }
                            },
                            {
                              "maximum": 5
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "choices": {
                          "minItems": 7,
                          "maxItems": 7
                        }
                      },
                      "required": [
                        "choices"
                      ]
                    },
                    "then": {
                      "properties": {
                        "answer": {
                          "anyOf": [
                            {
                              "not": {
                                "type": "integer"
                              }
                            },
                            {
                              "maximum": 6
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "choices": {
                          "minItems": 8,
                          "maxItems": 8
                        }
                      },
                      "required": [
                        "choices"
                      ]
                    },
                    "then": {
                      "properties": {
                        "answer": {
                          "anyOf": [
                            {
                              "not": {
                                "type": "integer"
                              }
                            },
                            {
                              "maximum": 7
                            }
                          ]
                        }
                      }
                    }
                  }
                ]
              }
            },
            "results": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DataBinding",
              "description": "A data model path where the results are written: { score, total, answered, done, missed, missedQuestions }."
            }
          },
          "required": [
            "component",
            "questions"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Flashcards": {
      "type": "object",
      "description": "Cards the person flips: a prompt on the front, the answer on the back.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Flashcards"
            },
            "cards": {
              "type": "array",
              "description": "The cards (1-60).",
              "minItems": 1,
              "maxItems": 60,
              "items": {
                "type": "object",
                "properties": {
                  "front": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "The front."
                  },
                  "back": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "The back."
                  }
                },
                "required": [
                  "front",
                  "back"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "component",
            "cards"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Timeline": {
      "type": "object",
      "description": "Events in order.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Timeline"
            },
            "events": {
              "type": "array",
              "description": "The events (1-40).",
              "minItems": 1,
              "maxItems": 40,
              "items": {
                "type": "object",
                "properties": {
                  "label": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "When (a date, a version, a phase)."
                  },
                  "title": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "What happened."
                  },
                  "text": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "More about it."
                  }
                },
                "required": [
                  "title"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "component",
            "events"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Compare": {
      "type": "object",
      "description": "Options side by side.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Compare"
            },
            "items": {
              "type": "array",
              "description": "The options (1-4).",
              "minItems": 1,
              "maxItems": 4,
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "The option."
                  },
                  "badge": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "A short tag (e.g. \"Recommended\")."
                  },
                  "points": {
                    "description": "Its points.",
                    "oneOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
                        }
                      },
                      {
                        "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DataBinding"
                      },
                      {
                        "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/FunctionCall"
                      }
                    ]
                  },
                  "verdict": {
                    "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                    "description": "A one-line verdict."
                  },
                  "pick": {
                    "type": "boolean",
                    "description": "true for the recommended option: drawn highlighted (outlined), and first when the options stack."
                  }
                },
                "required": [
                  "title"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "component",
            "items"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Diagram": {
      "type": "object",
      "description": "A Mermaid diagram.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Diagram"
            },
            "mermaid": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The diagram in Mermaid syntax."
            },
            "caption": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "A caption under it."
            }
          },
          "required": [
            "component",
            "mermaid"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Code": {
      "type": "object",
      "description": "A code block.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Code"
            },
            "code": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The code."
            },
            "language": {
              "type": "string",
              "description": "Its language, for highlighting."
            },
            "title": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "A title (e.g. the file name)."
            }
          },
          "required": [
            "component",
            "code"
          ]
        }
      ],
      "unevaluatedProperties": false
    },
    "Table": {
      "type": "object",
      "description": "A table of rows.",
      "allOf": [
        {
          "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
        },
        {
          "$ref": "#/$defs/CatalogComponentCommon"
        },
        {
          "type": "object",
          "properties": {
            "component": {
              "const": "Table"
            },
            "columns": {
              "type": "array",
              "description": "The columns (1-12): labels, or { label, key, format, align }.",
              "minItems": 1,
              "maxItems": 12,
              "items": {
                "oneOf": [
                  {
                    "type": "string",
                    "description": "A column label."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "label": {
                        "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
                        "description": "The column label."
                      },
                      "key": {
                        "type": "string",
                        "description": "The key of this column in object rows."
                      },
                      "format": {
                        "type": "string",
                        "description": "A value format: number, number:2 (decimals), integer, percent (0.12 shows as 12%), currency, currency:EUR, compact, bytes or duration (seconds)."
                      },
                      "align": {
                        "type": "string",
                        "enum": [
                          "left",
                          "center",
                          "right"
                        ],
                        "description": "Cell alignment (numbers default to right)."
                      }
                    },
                    "required": [
                      "label"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "rows": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicValue",
              "description": "The rows: a list of lists (by column order) or of objects (by column `key`), or a binding to one."
            }
          },
          "required": [
            "component",
            "columns",
            "rows"
          ]
        }
      ],
      "unevaluatedProperties": false
    }
  },
  "functions": {
    "required": {
      "type": "object",
      "description": "Checks that the value is not null, undefined, or empty.",
      "properties": {
        "call": {
          "const": "required"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "description": "The value to check."
            }
          },
          "required": [
            "value"
          ],
          "additionalProperties": false
        },
        "returnType": {
          "const": "boolean"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "regex": {
      "type": "object",
      "description": "Checks that the value matches a regular expression string.",
      "properties": {
        "call": {
          "const": "regex"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
            },
            "pattern": {
              "type": "string",
              "description": "The regex pattern to match against."
            }
          },
          "required": [
            "value",
            "pattern"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "boolean"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "length": {
      "type": "object",
      "description": "Checks string length constraints.",
      "properties": {
        "call": {
          "const": "length"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
            },
            "min": {
              "type": "integer",
              "minimum": 0,
              "description": "The minimum allowed length."
            },
            "max": {
              "type": "integer",
              "minimum": 0,
              "description": "The maximum allowed length."
            }
          },
          "required": [
            "value"
          ],
          "anyOf": [
            {
              "required": [
                "min"
              ]
            },
            {
              "required": [
                "max"
              ]
            }
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "boolean"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "numeric": {
      "type": "object",
      "description": "Checks numeric range constraints.",
      "properties": {
        "call": {
          "const": "numeric"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber"
            },
            "min": {
              "type": "number",
              "description": "The minimum allowed value."
            },
            "max": {
              "type": "number",
              "description": "The maximum allowed value."
            }
          },
          "required": [
            "value"
          ],
          "anyOf": [
            {
              "required": [
                "min"
              ]
            },
            {
              "required": [
                "max"
              ]
            }
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "boolean"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "email": {
      "type": "object",
      "description": "Checks that the value is a valid email address.",
      "properties": {
        "call": {
          "const": "email"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
            }
          },
          "required": [
            "value"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "boolean"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "formatString": {
      "type": "object",
      "description": "Performs string interpolation of data model values and other functions in the catalog functions list and returns the resulting string. The value string can contain interpolated expressions in the `${expression}` format. Supported expression types include: JSON Pointer paths to the data model (e.g., `${/absolute/path}` or `${relative/path}`), and client-side function calls (e.g., `${now()}`). Function arguments must be named (e.g., `${formatDate(value:${/currentDate}, format:'MM-dd')}`). To include a literal `${` sequence, escape it as `\\${`.",
      "properties": {
        "call": {
          "const": "formatString"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
            }
          },
          "required": [
            "value"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "string"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "formatNumber": {
      "type": "object",
      "description": "Formats a number with the specified grouping and decimal precision.",
      "properties": {
        "call": {
          "const": "formatNumber"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
              "description": "The number to format."
            },
            "decimals": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
              "description": "Optional. The number of decimal places to show. Defaults to 0 or 2 depending on locale."
            },
            "grouping": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicBoolean",
              "description": "Optional. If true, uses locale-specific grouping separators (e.g. '1,000'). If false, returns raw digits (e.g. '1000'). Defaults to true."
            }
          },
          "required": [
            "value"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "string"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "formatCurrency": {
      "type": "object",
      "description": "Formats a number as a currency string.",
      "properties": {
        "call": {
          "const": "formatCurrency"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
              "description": "The monetary amount."
            },
            "currency": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The ISO 4217 currency code (e.g., 'USD', 'EUR')."
            },
            "decimals": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
              "description": "Optional. The number of decimal places to show. Defaults to 0 or 2 depending on locale."
            },
            "grouping": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicBoolean",
              "description": "Optional. If true, uses locale-specific grouping separators (e.g. '1,000'). If false, returns raw digits (e.g. '1000'). Defaults to true."
            }
          },
          "required": [
            "currency",
            "value"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "string"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "formatDate": {
      "type": "object",
      "description": "Formats a timestamp into a string using a pattern.",
      "properties": {
        "call": {
          "const": "formatDate"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicValue",
              "description": "The date to format."
            },
            "format": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "A Unicode TR35 date pattern string.\n\nToken Reference:\n- Year: 'yy' (26), 'yyyy' (2026)\n- Month: 'M' (1), 'MM' (01), 'MMM' (Jan), 'MMMM' (January)\n- Day: 'd' (1), 'dd' (01), 'E' (Tue), 'EEEE' (Tuesday)\n- Hour (12h): 'h' (1-12), 'hh' (01-12) - requires 'a' for AM/PM\n- Hour (24h): 'H' (0-23), 'HH' (00-23) - Military Time\n- Minute: 'mm' (00-59)\n- Second: 'ss' (00-59)\n- Period: 'a' (AM/PM)\n\nExamples:\n- 'MMM dd, yyyy' -> 'Jan 16, 2026'\n- 'HH:mm' -> '14:30' (Military)\n- 'h:mm a' -> '2:30 PM'\n- 'EEEE, d MMMM' -> 'Friday, 16 January'"
            }
          },
          "required": [
            "format",
            "value"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "string"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "pluralize": {
      "type": "object",
      "description": "Returns a localized string based on the Common Locale Data Repository (CLDR) plural category of the count (zero, one, two, few, many, other). Requires an 'other' fallback. For English, just use 'one' and 'other'.",
      "properties": {
        "call": {
          "const": "pluralize"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicNumber",
              "description": "The numeric value used to determine the plural category."
            },
            "zero": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "String for the 'zero' category (e.g., 0 items)."
            },
            "one": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "String for the 'one' category (e.g., 1 item)."
            },
            "two": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "String for the 'two' category (used in Arabic, Welsh, etc.)."
            },
            "few": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "String for the 'few' category (e.g., small groups in Slavic languages)."
            },
            "many": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "String for the 'many' category (e.g., large groups in various languages)."
            },
            "other": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "The default/fallback string (used for general plural cases)."
            }
          },
          "required": [
            "value",
            "other"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "string"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "openUrl": {
      "type": "object",
      "description": "Opens the specified URL in a browser or handler. This function has no return value.",
      "properties": {
        "call": {
          "const": "openUrl"
        },
        "args": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "format": "uri",
              "description": "The URL to open."
            }
          },
          "required": [
            "url"
          ],
          "additionalProperties": false
        },
        "returnType": {
          "const": "void"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "and": {
      "type": "object",
      "description": "Performs a logical AND operation on a list of boolean values.",
      "properties": {
        "call": {
          "const": "and"
        },
        "args": {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "The list of boolean values to evaluate.",
              "items": {
                "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicBoolean"
              },
              "minItems": 2
            }
          },
          "required": [
            "values"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "boolean"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "or": {
      "type": "object",
      "description": "Performs a logical OR operation on a list of boolean values.",
      "properties": {
        "call": {
          "const": "or"
        },
        "args": {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "The list of boolean values to evaluate.",
              "items": {
                "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicBoolean"
              },
              "minItems": 2
            }
          },
          "required": [
            "values"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "boolean"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "not": {
      "type": "object",
      "description": "Performs a logical NOT operation on a boolean value.",
      "properties": {
        "call": {
          "const": "not"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicBoolean",
              "description": "The boolean value to negate."
            }
          },
          "required": [
            "value"
          ],
          "unevaluatedProperties": false
        },
        "returnType": {
          "const": "boolean"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "calc": {
      "type": "object",
      "description": "Evaluates a formula (never code): + - * / % ^, comparisons, and/or/not, c ? a : b, a.b, a[i], and min max sum avg abs round(x, d) floor ceil sqrt pow log log2 log10 exp clamp(x, lo, hi) if(c, a, b) len range(from, to, step). Names are the data model's top-level keys and `vars`. At most 1000 characters.",
      "properties": {
        "call": {
          "const": "calc"
        },
        "args": {
          "type": "object",
          "properties": {
            "expr": {
              "type": "string",
              "maxLength": 1000,
              "description": "The formula."
            },
            "vars": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/$defs/FabricValue"
              },
              "description": "Extra names for the formula: each a value (any JSON, objects and lists included), a binding or a call."
            }
          },
          "required": [
            "expr"
          ],
          "additionalProperties": false
        },
        "returnType": {
          "enum": [
            "number",
            "string",
            "boolean",
            "array",
            "object",
            "any"
          ]
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    },
    "formatValue": {
      "type": "object",
      "description": "Formats a value with one of Fabric's value formats.",
      "properties": {
        "call": {
          "const": "formatValue"
        },
        "args": {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicValue",
              "description": "The value."
            },
            "format": {
              "$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
              "description": "A value format: number, number:2 (decimals), integer, percent (0.12 shows as 12%), currency, currency:EUR, compact, bytes or duration (seconds)."
            }
          },
          "required": [
            "value"
          ],
          "additionalProperties": false
        },
        "returnType": {
          "const": "string"
        }
      },
      "required": [
        "call",
        "args"
      ],
      "unevaluatedProperties": false
    }
  },
  "$defs": {
    "CatalogComponentCommon": {
      "type": "object",
      "properties": {
        "weight": {
          "type": "number",
          "description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
        }
      }
    },
    "theme": {
      "type": "object",
      "properties": {
        "primaryColor": {
          "type": "string",
          "description": "The primary brand color used for highlights (e.g., primary buttons, active borders). Renderers may generate variants of this color for different contexts. Format: Hexadecimal code (e.g., '#00BFFF').",
          "pattern": "^#[0-9a-fA-F]{6}$"
        },
        "iconUrl": {
          "type": "string",
          "format": "uri",
          "description": "A URL for an image that identifies the agent or tool associated with the surface."
        },
        "agentDisplayName": {
          "type": "string",
          "description": "Text to be displayed next to the surface to identify the agent or tool that created it."
        }
      },
      "additionalProperties": true
    },
    "anyComponent": {
      "allOf": [
        {
          "oneOf": [
            {
              "$ref": "#/components/Text"
            },
            {
              "$ref": "#/components/Image"
            },
            {
              "$ref": "#/components/Icon"
            },
            {
              "$ref": "#/components/Video"
            },
            {
              "$ref": "#/components/AudioPlayer"
            },
            {
              "$ref": "#/components/Row"
            },
            {
              "$ref": "#/components/Column"
            },
            {
              "$ref": "#/components/List"
            },
            {
              "$ref": "#/components/Card"
            },
            {
              "$ref": "#/components/Tabs"
            },
            {
              "$ref": "#/components/Modal"
            },
            {
              "$ref": "#/components/Divider"
            },
            {
              "$ref": "#/components/Button"
            },
            {
              "$ref": "#/components/TextField"
            },
            {
              "$ref": "#/components/CheckBox"
            },
            {
              "$ref": "#/components/ChoicePicker"
            },
            {
              "$ref": "#/components/Slider"
            },
            {
              "$ref": "#/components/DateTimeInput"
            },
            {
              "$ref": "#/components/Chart"
            },
            {
              "$ref": "#/components/Stat"
            },
            {
              "$ref": "#/components/Callout"
            },
            {
              "$ref": "#/components/Steps"
            },
            {
              "$ref": "#/components/Quiz"
            },
            {
              "$ref": "#/components/Flashcards"
            },
            {
              "$ref": "#/components/Timeline"
            },
            {
              "$ref": "#/components/Compare"
            },
            {
              "$ref": "#/components/Diagram"
            },
            {
              "$ref": "#/components/Code"
            },
            {
              "$ref": "#/components/Table"
            }
          ],
          "discriminator": {
            "propertyName": "component"
          }
        },
        {
          "$ref": "#/$defs/ComponentCalls"
        }
      ]
    },
    "anyFunction": {
      "oneOf": [
        {
          "$ref": "#/functions/required"
        },
        {
          "$ref": "#/functions/regex"
        },
        {
          "$ref": "#/functions/length"
        },
        {
          "$ref": "#/functions/numeric"
        },
        {
          "$ref": "#/functions/email"
        },
        {
          "$ref": "#/functions/formatString"
        },
        {
          "$ref": "#/functions/formatNumber"
        },
        {
          "$ref": "#/functions/formatCurrency"
        },
        {
          "$ref": "#/functions/formatDate"
        },
        {
          "$ref": "#/functions/pluralize"
        },
        {
          "$ref": "#/functions/openUrl"
        },
        {
          "$ref": "#/functions/and"
        },
        {
          "$ref": "#/functions/or"
        },
        {
          "$ref": "#/functions/not"
        },
        {
          "$ref": "#/functions/calc"
        },
        {
          "$ref": "#/functions/formatValue"
        }
      ]
    },
    "FabricValue": {
      "description": "Any JSON value in which every function call (at any depth, arguments included) calls a function in this catalog.",
      "anyOf": [
        {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FabricValue"
          }
        },
        {
          "type": "object",
          "required": [
            "call"
          ],
          "properties": {
            "call": {
              "enum": [
                "required",
                "regex",
                "length",
                "numeric",
                "email",
                "formatString",
                "formatNumber",
                "formatCurrency",
                "formatDate",
                "pluralize",
                "openUrl",
                "and",
                "or",
                "not",
                "calc",
                "formatValue"
              ]
            },
            "args": {
              "type": "object",
              "properties": {
                "vars": true
              },
              "additionalProperties": {
                "$ref": "#/$defs/FabricValue"
              }
            }
          },
          "propertyNames": {
            "enum": [
              "call",
              "args",
              "returnType"
            ]
          },
          "allOf": [
            {
              "if": {
                "properties": {
                  "call": {
                    "const": "calc"
                  }
                }
              },
              "then": {
                "properties": {
                  "args": {
                    "properties": {
                      "vars": {
                        "$ref": "#/$defs/FabricMap"
                      }
                    }
                  }
                }
              },
              "else": {
                "properties": {
                  "args": {
                    "properties": {
                      "vars": {
                        "$ref": "#/$defs/FabricValue"
                      }
                    }
                  }
                }
              }
            },
            {
              "if": {
                "properties": {
                  "call": {
                    "const": "formatString"
                  }
                }
              },
              "then": {
                "properties": {
                  "args": {
                    "properties": {
                      "value": {
                        "if": {
                          "type": "string",
                          "pattern": "\\$\\{"
                        },
                        "then": {
                          "not": {
                            "pattern": "(?:\\$\\{|[:,(])\\s*(?!(?:required|regex|length|numeric|email|formatString|formatNumber|formatCurrency|formatDate|pluralize|openUrl|and|or|not|calc|formatValue)\\s*\\()[A-Za-z_][A-Za-z0-9_]*\\s*\\("
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            {
              "if": {
                "properties": {
                  "call": {
                    "const": "openUrl"
                  }
                }
              },
              "then": {
                "properties": {
                  "args": {
                    "properties": {
                      "url": {
                        "if": {
                          "type": "string",
                          "pattern": "\\$\\{"
                        },
                        "then": {
                          "not": {
                            "pattern": "(?:\\$\\{|[:,(])\\s*(?!(?:required|regex|length|numeric|email|formatString|formatNumber|formatCurrency|formatDate|pluralize|openUrl|and|or|not|calc|formatValue)\\s*\\()[A-Za-z_][A-Za-z0-9_]*\\s*\\("
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          ]
        },
        {
          "type": "object",
          "not": {
            "type": "object",
            "required": [
              "call"
            ],
            "properties": {
              "call": {
                "type": "string"
              },
              "args": {
                "type": "object"
              }
            },
            "propertyNames": {
              "enum": [
                "call",
                "args",
                "returnType"
              ]
            }
          },
          "properties": {
            "event": {
              "if": {
                "type": "object"
              },
              "then": {
                "$ref": "#/$defs/FabricEvent"
              },
              "else": {
                "$ref": "#/$defs/FabricValue"
              }
            }
          },
          "additionalProperties": {
            "$ref": "#/$defs/FabricValue"
          }
        }
      ]
    },
    "FabricEvent": {
      "type": "object",
      "properties": {
        "context": {
          "$ref": "#/$defs/FabricMap"
        }
      },
      "anyOf": [
        {
          "type": "object",
          "required": [
            "call"
          ],
          "properties": {
            "call": {
              "enum": [
                "required",
                "regex",
                "length",
                "numeric",
                "email",
                "formatString",
                "formatNumber",
                "formatCurrency",
                "formatDate",
                "pluralize",
                "openUrl",
                "and",
                "or",
                "not",
                "calc",
                "formatValue"
              ]
            },
            "args": {
              "type": "object",
              "properties": {
                "vars": true
              },
              "additionalProperties": {
                "$ref": "#/$defs/FabricValue"
              }
            },
            "context": true
          },
          "propertyNames": {
            "enum": [
              "call",
              "args",
              "returnType",
              "context"
            ]
          },
          "allOf": [
            {
              "if": {
                "properties": {
                  "call": {
                    "const": "calc"
                  }
                }
              },
              "then": {
                "properties": {
                  "args": {
                    "properties": {
                      "vars": {
                        "$ref": "#/$defs/FabricMap"
                      }
                    }
                  }
                }
              },
              "else": {
                "properties": {
                  "args": {
                    "properties": {
                      "vars": {
                        "$ref": "#/$defs/FabricValue"
                      }
                    }
                  }
                }
              }
            },
            {
              "if": {
                "properties": {
                  "call": {
                    "const": "formatString"
                  }
                }
              },
              "then": {
                "properties": {
                  "args": {
                    "properties": {
                      "value": {
                        "if": {
                          "type": "string",
                          "pattern": "\\$\\{"
                        },
                        "then": {
                          "not": {
                            "pattern": "(?:\\$\\{|[:,(])\\s*(?!(?:required|regex|length|numeric|email|formatString|formatNumber|formatCurrency|formatDate|pluralize|openUrl|and|or|not|calc|formatValue)\\s*\\()[A-Za-z_][A-Za-z0-9_]*\\s*\\("
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            {
              "if": {
                "properties": {
                  "call": {
                    "const": "openUrl"
                  }
                }
              },
              "then": {
                "properties": {
                  "args": {
                    "properties": {
                      "url": {
                        "if": {
                          "type": "string",
                          "pattern": "\\$\\{"
                        },
                        "then": {
                          "not": {
                            "pattern": "(?:\\$\\{|[:,(])\\s*(?!(?:required|regex|length|numeric|email|formatString|formatNumber|formatCurrency|formatDate|pluralize|openUrl|and|or|not|calc|formatValue)\\s*\\()[A-Za-z_][A-Za-z0-9_]*\\s*\\("
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          ]
        },
        {
          "not": {
            "type": "object",
            "required": [
              "call"
            ],
            "properties": {
              "call": {
                "type": "string"
              },
              "args": {
                "type": "object"
              }
            },
            "propertyNames": {
              "enum": [
                "call",
                "args",
                "returnType",
                "context"
              ]
            }
          },
          "additionalProperties": {
            "$ref": "#/$defs/FabricValue"
          },
          "properties": {
            "context": true,
            "event": {
              "if": {
                "type": "object"
              },
              "then": {
                "$ref": "#/$defs/FabricEvent"
              },
              "else": {
                "$ref": "#/$defs/FabricValue"
              }
            }
          }
        }
      ]
    },
    "FabricMap": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/FabricValue"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FabricValue"
          }
        },
        {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        }
      ]
    },
    "ComponentCalls": {
      "type": "object",
      "required": [
        "id",
        "component"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "component": {
          "type": "string"
        },
        "rows": true
      },
      "additionalProperties": {
        "$ref": "#/$defs/FabricValue"
      },
      "if": {
        "properties": {
          "component": {
            "const": "Table"
          },
          "rows": {
            "type": "array"
          }
        },
        "required": [
          "component",
          "rows"
        ]
      },
      "then": {
        "properties": {
          "rows": {
            "items": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "call",
                          "args"
                        ],
                        "properties": {
                          "call": {
                            "enum": [
                              "required",
                              "regex",
                              "length",
                              "numeric",
                              "email",
                              "formatString",
                              "formatNumber",
                              "formatCurrency",
                              "formatDate",
                              "pluralize",
                              "openUrl",
                              "and",
                              "or",
                              "not",
                              "calc",
                              "formatValue"
                            ]
                          },
                          "args": {
                            "type": "object",
                            "properties": {
                              "vars": true
                            },
                            "additionalProperties": {
                              "$ref": "#/$defs/FabricValue"
                            }
                          }
                        },
                        "propertyNames": {
                          "enum": [
                            "call",
                            "args",
                            "returnType"
                          ]
                        },
                        "allOf": [
                          {
                            "if": {
                              "properties": {
                                "call": {
                                  "const": "calc"
                                }
                              }
                            },
                            "then": {
                              "properties": {
                                "args": {
                                  "properties": {
                                    "vars": {
                                      "$ref": "#/$defs/FabricMap"
                                    }
                                  }
                                }
                              }
                            },
                            "else": {
                              "properties": {
                                "args": {
                                  "properties": {
                                    "vars": {
                                      "$ref": "#/$defs/FabricValue"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "call": {
                                  "const": "formatString"
                                }
                              }
                            },
                            "then": {
                              "properties": {
                                "args": {
                                  "properties": {
                                    "value": {
                                      "if": {
                                        "type": "string",
                                        "pattern": "\\$\\{"
                                      },
                                      "then": {
                                        "not": {
                                          "pattern": "(?:\\$\\{|[:,(])\\s*(?!(?:required|regex|length|numeric|email|formatString|formatNumber|formatCurrency|formatDate|pluralize|openUrl|and|or|not|calc|formatValue)\\s*\\()[A-Za-z_][A-Za-z0-9_]*\\s*\\("
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "call": {
                                  "const": "openUrl"
                                }
                              }
                            },
                            "then": {
                              "properties": {
                                "args": {
                                  "properties": {
                                    "url": {
                                      "if": {
                                        "type": "string",
                                        "pattern": "\\$\\{"
                                      },
                                      "then": {
                                        "not": {
                                          "pattern": "(?:\\$\\{|[:,(])\\s*(?!(?:required|regex|length|numeric|email|formatString|formatNumber|formatCurrency|formatDate|pluralize|openUrl|and|or|not|calc|formatValue)\\s*\\()[A-Za-z_][A-Za-z0-9_]*\\s*\\("
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      },
                      {
                        "not": {
                          "type": "object",
                          "required": [
                            "call",
                            "args"
                          ],
                          "properties": {
                            "call": {
                              "type": "string"
                            },
                            "args": {
                              "type": "object"
                            }
                          },
                          "propertyNames": {
                            "enum": [
                              "call",
                              "args",
                              "returnType"
                            ]
                          }
                        }
                      }
                    ]
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "call",
                          "args"
                        ],
                        "properties": {
                          "call": {
                            "enum": [
                              "required",
                              "regex",
                              "length",
                              "numeric",
                              "email",
                              "formatString",
                              "formatNumber",
                              "formatCurrency",
                              "formatDate",
                              "pluralize",
                              "openUrl",
                              "and",
                              "or",
                              "not",
                              "calc",
                              "formatValue"
                            ]
                          },
                          "args": {
                            "type": "object",
                            "properties": {
                              "vars": true
                            },
                            "additionalProperties": {
                              "$ref": "#/$defs/FabricValue"
                            }
                          }
                        },
                        "propertyNames": {
                          "enum": [
                            "call",
                            "args",
                            "returnType"
                          ]
                        },
                        "allOf": [
                          {
                            "if": {
                              "properties": {
                                "call": {
                                  "const": "calc"
                                }
                              }
                            },
                            "then": {
                              "properties": {
                                "args": {
                                  "properties": {
                                    "vars": {
                                      "$ref": "#/$defs/FabricMap"
                                    }
                                  }
                                }
                              }
                            },
                            "else": {
                              "properties": {
                                "args": {
                                  "properties": {
                                    "vars": {
                                      "$ref": "#/$defs/FabricValue"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "call": {
                                  "const": "formatString"
                                }
                              }
                            },
                            "then": {
                              "properties": {
                                "args": {
                                  "properties": {
                                    "value": {
                                      "if": {
                                        "type": "string",
                                        "pattern": "\\$\\{"
                                      },
                                      "then": {
                                        "not": {
                                          "pattern": "(?:\\$\\{|[:,(])\\s*(?!(?:required|regex|length|numeric|email|formatString|formatNumber|formatCurrency|formatDate|pluralize|openUrl|and|or|not|calc|formatValue)\\s*\\()[A-Za-z_][A-Za-z0-9_]*\\s*\\("
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "call": {
                                  "const": "openUrl"
                                }
                              }
                            },
                            "then": {
                              "properties": {
                                "args": {
                                  "properties": {
                                    "url": {
                                      "if": {
                                        "type": "string",
                                        "pattern": "\\$\\{"
                                      },
                                      "then": {
                                        "not": {
                                          "pattern": "(?:\\$\\{|[:,(])\\s*(?!(?:required|regex|length|numeric|email|formatString|formatNumber|formatCurrency|formatDate|pluralize|openUrl|and|or|not|calc|formatValue)\\s*\\()[A-Za-z_][A-Za-z0-9_]*\\s*\\("
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      },
                      {
                        "not": {
                          "type": "object",
                          "required": [
                            "call",
                            "args"
                          ],
                          "properties": {
                            "call": {
                              "type": "string"
                            },
                            "args": {
                              "type": "object"
                            }
                          },
                          "propertyNames": {
                            "enum": [
                              "call",
                              "args",
                              "returnType"
                            ]
                          }
                        }
                      }
                    ]
                  }
                },
                {
                  "not": {
                    "type": [
                      "array",
                      "object"
                    ]
                  }
                }
              ]
            }
          }
        }
      },
      "else": {
        "properties": {
          "rows": {
            "$ref": "#/$defs/FabricValue"
          }
        }
      }
    }
  }
}
