{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "JSON Forms Extended UI schema",
  "description": "Published serialized UI vocabulary. Unknown extensions remain open; acceptance of an unknown key does not imply renderer support. Design proposals and provisional features are tracked in TODO.md.",
  "$ref": "#/$defs/element",
  "$defs": {
    "uiSchema": {
      "$ref": "#/$defs/element"
    },
    "element": {
      "type": "object",
      "required": [
        "type"
      ],
      "additionalProperties": true,
      "properties": {
        "type": {
          "type": "string",
          "description": "Element discriminator. The common profile admits its documented types; the extended profile preserves unknown types."
        },
        "rule": {
          "$ref": "jsonforms-rule.schema.json"
        },
        "options": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "showValidationIndicator": {
              "type": "boolean"
            },
            "showValidationIndicatorCount": {
              "type": "boolean",
              "default": false,
              "description": "Opt in to computing and presenting the container error count. Omitted or false uses an error-presence marker without computing a count."
            },
            "showDataIndicator": {
              "type": "boolean"
            },
            "interpolate": {
              "type": "boolean"
            },
            "markup": {
              "enum": [
                "plain",
                "markdown"
              ]
            },
            "textParams": {
              "type": "object",
              "additionalProperties": true
            },
            "readonly": {
              "type": "boolean"
            },
            "part": {
              "type": "string",
              "pattern": "^\\s*([A-Za-z][A-Za-z0-9_-]*(\\s+|$))*$",
              "description": "Optional host styling names separated by whitespace. HTML implementations expose normalized names as data-part on the layout slot; non-HTML renderers may use a documented no-op. No built-in styling or behavior."
            },
            "conditionalFields": {
              "type": "boolean",
              "description": "Opt in to conditional object presentation on an object Control or owning VerticalLayout, HorizontalLayout, Group, Categorization, TemplateLayout, Template or Slot entry. Entry-local false overrides config. Descendant layout and Category options are ignored in both directions; this option is also ignored on other element kinds. Nested object/item and independent host form boundaries resolve independently. Filter inactive branch-only field bindings in bodies and Group regions without adding controls, pruning empty containers or deleting data. Whole-value editors retain the authored schema. Template child addresses remain reserved when inactive; known inactive slots render nothing without fallback or unknown-slot warnings."
            }
          }
        },
        "i18n": {
          "type": "string",
          "description": "Translation key for this element's own text."
        },
        "name": {
          "type": "string",
          "description": "Stable local element name for category selection, composition and action fallback."
        },
        "textParams": {
          "type": "object",
          "additionalProperties": true
        },
        "slot": {
          "type": "string",
          "minLength": 1,
          "description": "Placement in the immediate parent’s named destination, independent of name. Group assigns the first authored child for each of cover, header and footer; later matches and unrecognized names use ordinary body placement. Omission uses ordinary placement."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/byType"
        },
        {
          "$ref": "jsonforms-uischema.schema.json#/$defs/layoutItemOptions"
        }
      ]
    },
    "byType": {
      "description": "Per-type shape. Written as if/then so an unknown `type` still validates - a renderer set downstream may contribute its own.",
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "Control"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/control"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "VerticalLayout"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/layout"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "HorizontalLayout"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/horizontalLayout"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Group"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/group"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Categorization"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/categorization"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Category"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/category"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "ListWithDetail"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/listWithDetail"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Label"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/label"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Button"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/button"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Link"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/link"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "ImageView"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/imageView"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Spacer"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/spacer"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Separator"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/separator"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "TemplateLayout"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/templateLayout"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Slot"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/slot"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "Template"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/$defs/template"
          }
        }
      ]
    },
    "layout": {
      "required": [
        "elements"
      ],
      "properties": {
        "elements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/element"
          }
        },
        "options": {
          "$ref": "jsonforms-uischema.schema.json#/$defs/layoutContainerOptions"
        }
      }
    },
    "horizontalLayout": {
      "required": [
        "elements"
      ],
      "properties": {
        "elements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/element"
          }
        },
        "options": {
          "allOf": [
            {
              "$ref": "jsonforms-uischema.schema.json#/$defs/layoutContainerOptions"
            }
          ],
          "properties": {
            "gridColumns": {
              "type": "integer",
              "minimum": 1,
              "default": 16,
              "description": "Horizontal layouts only. A child's `span` is read against this."
            }
          }
        }
      }
    },
    "group": {
      "required": [
        "elements"
      ],
      "properties": {
        "label": {
          "type": "string"
        },
        "elements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/element"
          }
        },
        "options": {
          "allOf": [
            {
              "$ref": "jsonforms-uischema.schema.json#/$defs/layoutContainerOptions"
            }
          ],
          "properties": {
            "collapsible": {
              "type": "boolean"
            },
            "collapsed": {
              "type": "boolean",
              "description": "Initial state, synchronized only when the effective collapsed option changes."
            },
            "showBorder": {
              "type": "boolean",
              "default": true
            }
          }
        }
      }
    },
    "categorization": {
      "required": [
        "elements"
      ],
      "properties": {
        "elements": {
          "type": "array",
          "items": {
            "allOf": [
              {
                "$ref": "#/$defs/element"
              },
              {
                "properties": {
                  "type": {
                    "enum": [
                      "Category",
                      "Categorization"
                    ]
                  }
                }
              }
            ]
          }
        },
        "options": {
          "type": "object",
          "properties": {
            "variant": {
              "type": "string",
              "description": "Omit for tabs; canonical alternatives are stepper and accordion. Unknown variants require a runtime fallback."
            },
            "initial": {
              "type": "string",
              "description": "Name of a direct Category child; not an index. Runtime diagnoses an absent or hidden match."
            },
            "vertical": {
              "type": "boolean"
            },
            "showNavButtons": {
              "type": "boolean"
            }
          }
        },
        "label": {
          "type": "string"
        }
      }
    },
    "category": {
      "required": [
        "elements"
      ],
      "properties": {
        "label": {
          "type": "string"
        },
        "elements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/element"
          }
        }
      }
    },
    "control": {
      "required": [
        "scope"
      ],
      "properties": {
        "scope": {
          "type": "string",
          "description": "JSON Pointer into the schema, e.g. `#/properties/name`.",
          "pattern": "^#(?:/.*)?$"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "boolean"
            },
            {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string"
                },
                "show": {
                  "type": "boolean"
                }
              },
              "additionalProperties": true
            }
          ]
        },
        "options": {
          "$ref": "#/$defs/controlOptions"
        }
      }
    },
    "controlOptions": {
      "type": "object",
      "additionalProperties": true,
      "description": "Options a Control may carry. Which apply depends on the schema the scope resolves to; this schema does not try to correlate the two, because the renderer chosen depends on the data schema, not on the UI schema alone.",
      "properties": {
        "format": {
          "type": "string",
          "description": "Presentation hint; never rewrites the data schema format. Unknown or unavailable formats remain valid authoring values; renderer capability determines their presentation."
        },
        "variant": {
          "type": "string",
          "description": "Canonical presentation selector. OTP applies to password strings with minLength and positive maxLength; tuple/chips/multi-select/ag-grid apply to appropriate arrays. This schema cannot resolve applicability against the external data schema. Unsupported values remain open for extensions and are diagnosed at runtime.",
          "examples": [
            "otp",
            "tuple",
            "chips",
            "multi-select",
            "ag-grid"
          ]
        },
        "focus": {
          "type": "boolean"
        },
        "clearable": {
          "type": "boolean"
        },
        "placeholder": {
          "type": "string"
        },
        "readonly": {
          "type": "boolean"
        },
        "restrict": {
          "type": "boolean",
          "description": "Prevention rather than only validation, for this control."
        },
        "multi": {
          "type": "boolean",
          "description": "Multi-line text."
        },
        "autocomplete": {
          "type": "boolean",
          "description": "Searchable choice entry."
        },
        "detail": {
          "$ref": "#/$defs/detail"
        },
        "summary": {
          "$ref": "#/$defs/summary"
        },
        "elementLabelProp": {
          "type": "string",
          "description": "Item-relative dotted DATA path for an item's header label - not a JSON pointer."
        },
        "showSortButtons": {
          "type": "boolean",
          "default": false,
          "description": "Table and expandable: Move up/down. AG Grid: a drag-handle column."
        },
        "disableAdd": {
          "type": "boolean",
          "default": false
        },
        "disableRemove": {
          "type": "boolean",
          "default": false
        },
        "collapsed": {
          "type": "boolean"
        },
        "collapseNewItems": {
          "type": "boolean",
          "default": false
        },
        "hideAvatar": {
          "type": "boolean",
          "default": false
        },
        "hideArraySummaryValidation": {
          "type": "boolean",
          "default": false,
          "description": "Hides the child-error summary only. Validation is unaffected, and the array's own error explanation remains."
        },
        "table": {
          "type": "boolean",
          "description": "Forces the table renderer for an array whose items nest, which the detail renderer would otherwise outrank."
        },
        "cells": {
          "type": "object",
          "description": "Per-column options handed to the composite cell, keyed by property name.",
          "additionalProperties": {
            "$ref": "#/$defs/cellOptions"
          }
        },
        "showTypeIndicator": {
          "type": "boolean",
          "default": false,
          "description": "Show an object or array type marker in a composite cell, independently of its summary."
        },
        "showEmptyButton": {
          "type": "boolean",
          "description": "Adds Clear to a composite detail dialog."
        },
        "emptyLabel": {
          "type": "string"
        },
        "okLabel": {
          "type": "string",
          "description": "Used as an i18n key first, literally if it does not resolve."
        },
        "cancelLabel": {
          "type": "string"
        },
        "confirmation": {
          "$ref": "jsonforms-uischema.schema.json#/$defs/confirmationOperations"
        },
        "showBorder": {
          "type": "boolean",
          "default": true,
          "description": "Tuple control: encloses the heading and positions."
        },
        "layout": {
          "$ref": "jsonforms-uischema.schema.json#/$defs/childLayout"
        },
        "formatMinimum": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "object",
              "required": [
                "$data"
              ],
              "properties": {
                "$data": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          ],
          "description": "Comparable temporal/duration string, original file byte count, or a supported data reference; applicability is checked at runtime."
        },
        "formatMaximum": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "object",
              "required": [
                "$data"
              ],
              "properties": {
                "$data": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          ],
          "description": "Comparable temporal/duration string, original file byte count, or a supported data reference; applicability is checked at runtime."
        },
        "formatExclusiveMinimum": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "object",
              "required": [
                "$data"
              ],
              "properties": {
                "$data": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          ],
          "description": "Comparable temporal/duration string, original file byte count, or a supported data reference; applicability is checked at runtime."
        },
        "formatExclusiveMaximum": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "object",
              "required": [
                "$data"
              ],
              "properties": {
                "$data": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          ],
          "description": "Comparable temporal/duration string, original file byte count, or a supported data reference; applicability is checked at runtime."
        },
        "views": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "year",
              "month",
              "day",
              "hours",
              "minutes",
              "seconds"
            ]
          },
          "description": "Which panels the picker offers. Date views select the calendar's granularity; time views select which time columns are drawn. The finest date view named is where the calendar lands. It does not change the save format - a year/month picker storing a full date is a legitimate request, and asking for hours and minutes does not stop seconds being stored. An array naming no view of a kind the control uses leaves that half to the display format, rather than blanking it. Views the control cannot use are accepted and ignored.",
          "examples": [
            [
              "year",
              "month",
              "day"
            ],
            [
              "hours",
              "minutes",
              "seconds"
            ],
            [
              "year",
              "month",
              "day",
              "hours",
              "minutes",
              "seconds"
            ]
          ]
        },
        "showActions": {
          "type": "boolean"
        },
        "mask": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "boolean"
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1
            }
          ]
        },
        "monaco": {
          "$ref": "#/$defs/monacoOptions"
        },
        "language": {
          "type": "string",
          "description": "Code editor language."
        },
        ":language": {
          "type": "string",
          "description": "Dotted data path whose value chooses the language at runtime."
        },
        "convertJson": {
          "type": "boolean",
          "description": "Edit the parsed JSON value rather than the source text."
        },
        "propagateErrors": {
          "type": "boolean",
          "description": "Publish owned renderer errors to host additional errors; opt-in, default false.",
          "default": false
        },
        "height": {
          "$ref": "jsonforms-uischema.schema.json#/$defs/dimension"
        },
        "width": {
          "$ref": "jsonforms-uischema.schema.json#/$defs/dimension"
        },
        "theme": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "agGridOptions": {
          "type": "object",
          "additionalProperties": true,
          "description": "AG Grid-specific configuration. A control's object replaces config.agGridOptions. Explicit pagination settings override their portable equivalents; columnDefs replaces the portable column list and supports richer native definitions."
        },
        "components": {
          "type": "object",
          "description": "Components a template may reference by name."
        },
        "toggle": {
          "type": "boolean"
        },
        "slider": {
          "type": "boolean"
        },
        "vertical": {
          "type": "boolean"
        },
        "showNavButtons": {
          "type": "boolean"
        },
        "allowAdditionalPropertiesIfMissing": {
          "type": "boolean"
        },
        "allowEmptyPropertyNames": {
          "type": "boolean"
        },
        "returnMaskedValue": {
          "type": "boolean"
        },
        "tokensReplace": {
          "type": "boolean"
        },
        "eager": {
          "type": "boolean"
        },
        "reversed": {
          "type": "boolean"
        },
        "showUnfocusedDescription": {
          "type": "boolean"
        },
        "hideRequiredAsterisk": {
          "type": "boolean"
        },
        "enableFilterErrorsBeforeTouch": {
          "type": "boolean"
        },
        "showValidationIndicator": {
          "type": "boolean"
        },
        "showValidationIndicatorCount": {
          "type": "boolean",
          "default": false,
          "description": "Opt in to computing and presenting the container error count. Omitted or false uses an error-presence marker without computing a count."
        },
        "showDataIndicator": {
          "type": "boolean"
        },
        "colorTextEntry": {
          "type": "boolean"
        },
        "interpolate": {
          "type": "boolean"
        },
        "dateFormat": {
          "type": "string"
        },
        "dateSaveFormat": {
          "type": "string"
        },
        "timeFormat": {
          "type": "string"
        },
        "timeSaveFormat": {
          "type": "string"
        },
        "dateTimeFormat": {
          "type": "string"
        },
        "dateTimeSaveFormat": {
          "type": "string"
        },
        "ampm": {
          "type": "boolean"
        },
        "step": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "filterErrorKeywordsBeforeTouch": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "suggestion": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "tokens": {
          "type": "object",
          "additionalProperties": true
        },
        "colorSaveFormat": {
          "enum": [
            "hex",
            "hex3",
            "rgb",
            "hsb"
          ]
        },
        "collapsible": {
          "type": "boolean"
        },
        "pagination": {
          "$ref": "#/$defs/pagination"
        },
        "rowDetail": {
          "$ref": "#/$defs/rowDetail"
        },
        "additionalProperties": {
          "$ref": "#/$defs/additionalPropertiesPresentation"
        },
        "columnDefs": {
          "description": "Selects and orders table or AG Grid columns with optional width constraints. Explicit agGridOptions.columnDefs replaces this list for AG Grid.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/tableColumnDefinition"
          }
        },
        "additionalItems": {
          "$ref": "#/$defs/additionalItemsPresentation"
        },
        "dialog": {
          "$ref": "#/$defs/detailDialog"
        },
        "validateActiveBranch": {
          "type": "boolean",
          "default": true,
          "description": "Validate the displayed anyOf/oneOf branch for local editor feedback. Control options override global config. False skips additional branch compilation and validation; document validation remains unchanged."
        },
        "object-detail": {
          "$ref": "#/$defs/detail",
          "description": "Mixed editor detail override when object is selected. Takes precedence over detail; scoped to that value."
        },
        "array-detail": {
          "$ref": "#/$defs/detail",
          "description": "Mixed editor detail override when array is selected. Takes precedence over detail; scoped to that value."
        },
        "string-detail": {
          "$ref": "#/$defs/detail",
          "description": "Mixed editor detail override when string is selected. Takes precedence over detail; scoped to that value."
        },
        "number-detail": {
          "$ref": "#/$defs/detail",
          "description": "Mixed editor detail override when number is selected. Takes precedence over detail; scoped to that value."
        },
        "integer-detail": {
          "$ref": "#/$defs/detail",
          "description": "Mixed editor detail override when integer is selected. Takes precedence over detail; scoped to that value."
        },
        "boolean-detail": {
          "$ref": "#/$defs/detail",
          "description": "Mixed editor detail override when boolean is selected. Takes precedence over detail; scoped to that value."
        },
        "null-detail": {
          "$ref": "#/$defs/detail",
          "description": "Mixed editor detail override when null is selected. Takes precedence over detail; scoped to that value."
        },
        "conditionalFields": {
          "type": "boolean",
          "description": "Opt in to conditional object presentation on an object Control or owning VerticalLayout, HorizontalLayout, Group, Categorization, TemplateLayout, Template or Slot entry. Entry-local false overrides config. Descendant layout and Category options are ignored in both directions; this option is also ignored on other element kinds. Nested object/item and independent host form boundaries resolve independently. Filter inactive branch-only field bindings in bodies and Group regions without adding controls, pruning empty containers or deleting data. Whole-value editors retain the authored schema. Template child addresses remain reserved when inactive; known inactive slots render nothing without fallback or unknown-slot warnings."
        },
        "choices": {
          "type": "array",
          "description": "Selectable cards instead of a plain choice list. Each entry selects either a data value or a combinator branch; an entry carrying both says nothing a renderer can act on, which is why they are mutually exclusive.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "value": {
                "description": "The data value this card selects."
              },
              "branch": {
                "type": "integer",
                "minimum": 0,
                "description": "The combinator branch this card selects, by index."
              },
              "label": {
                "type": "string"
              },
              "i18n": {
                "type": "string"
              },
              "disabled": {
                "type": "boolean"
              },
              "content": {
                "$ref": "#/$defs/uiSchema",
                "description": "Presentation-only UI schema drawn inside the card."
              },
              "selectedContent": {
                "$ref": "#/$defs/uiSchema",
                "description": "Drawn instead of content while the card is selected."
              },
              "detail": {
                "$ref": "#/$defs/detail",
                "description": "The editor the card reveals once selected."
              }
            },
            "oneOf": [
              {
                "required": [
                  "value"
                ],
                "not": {
                  "required": [
                    "branch"
                  ]
                }
              },
              {
                "required": [
                  "branch"
                ],
                "not": {
                  "required": [
                    "value"
                  ]
                }
              }
            ]
          }
        },
        "showRadio": {
          "type": "boolean",
          "default": false,
          "description": "Keeps the native radio control visible inside each card. Hidden by default; keyboard interaction and accessible radio semantics remain either way."
        },
        "startAdornment": {
          "$ref": "#/$defs/inputAdornmentValue"
        },
        "endAdornment": {
          "$ref": "#/$defs/inputAdornmentValue"
        }
      }
    },
    "cellOptions": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "summary": {
          "$ref": "#/$defs/summary"
        },
        "detail": {
          "$ref": "#/$defs/detail"
        },
        "showTypeIndicator": {
          "type": "boolean",
          "default": false,
          "description": "Show an object or array type marker in a composite cell, independently of its summary."
        },
        "showEmptyButton": {
          "type": "boolean"
        },
        "emptyLabel": {
          "type": "string"
        },
        "okLabel": {
          "type": "string"
        },
        "cancelLabel": {
          "type": "string"
        },
        "restrict": {
          "type": "boolean"
        },
        "clearable": {
          "type": "boolean"
        },
        "format": {
          "$ref": "#/$defs/controlOptions/properties/format"
        },
        "variant": {
          "$ref": "#/$defs/controlOptions/properties/variant"
        },
        "focus": {
          "$ref": "#/$defs/controlOptions/properties/focus"
        },
        "placeholder": {
          "$ref": "#/$defs/controlOptions/properties/placeholder"
        },
        "readonly": {
          "$ref": "#/$defs/controlOptions/properties/readonly"
        },
        "multi": {
          "$ref": "#/$defs/controlOptions/properties/multi"
        },
        "autocomplete": {
          "$ref": "#/$defs/controlOptions/properties/autocomplete"
        },
        "elementLabelProp": {
          "$ref": "#/$defs/controlOptions/properties/elementLabelProp"
        },
        "showSortButtons": {
          "$ref": "#/$defs/controlOptions/properties/showSortButtons"
        },
        "disableAdd": {
          "$ref": "#/$defs/controlOptions/properties/disableAdd"
        },
        "disableRemove": {
          "$ref": "#/$defs/controlOptions/properties/disableRemove"
        },
        "collapsed": {
          "type": "boolean"
        },
        "collapseNewItems": {
          "$ref": "#/$defs/controlOptions/properties/collapseNewItems"
        },
        "hideAvatar": {
          "$ref": "#/$defs/controlOptions/properties/hideAvatar"
        },
        "hideArraySummaryValidation": {
          "$ref": "#/$defs/controlOptions/properties/hideArraySummaryValidation"
        },
        "table": {
          "$ref": "#/$defs/controlOptions/properties/table"
        },
        "cells": {
          "$ref": "#/$defs/controlOptions/properties/cells"
        },
        "confirmation": {
          "$ref": "#/$defs/controlOptions/properties/confirmation"
        },
        "showBorder": {
          "$ref": "#/$defs/controlOptions/properties/showBorder"
        },
        "layout": {
          "$ref": "#/$defs/controlOptions/properties/layout"
        },
        "formatMinimum": {
          "$ref": "#/$defs/controlOptions/properties/formatMinimum"
        },
        "formatMaximum": {
          "$ref": "#/$defs/controlOptions/properties/formatMaximum"
        },
        "formatExclusiveMinimum": {
          "$ref": "#/$defs/controlOptions/properties/formatExclusiveMinimum"
        },
        "formatExclusiveMaximum": {
          "$ref": "#/$defs/controlOptions/properties/formatExclusiveMaximum"
        },
        "views": {
          "$ref": "#/$defs/controlOptions/properties/views"
        },
        "showActions": {
          "$ref": "#/$defs/controlOptions/properties/showActions"
        },
        "mask": {
          "$ref": "#/$defs/controlOptions/properties/mask"
        },
        "monaco": {
          "$ref": "#/$defs/controlOptions/properties/monaco"
        },
        "language": {
          "$ref": "#/$defs/controlOptions/properties/language"
        },
        ":language": {
          "$ref": "#/$defs/controlOptions/properties/:language"
        },
        "convertJson": {
          "$ref": "#/$defs/controlOptions/properties/convertJson"
        },
        "propagateErrors": {
          "$ref": "#/$defs/controlOptions/properties/propagateErrors"
        },
        "height": {
          "$ref": "#/$defs/controlOptions/properties/height"
        },
        "width": {
          "$ref": "#/$defs/controlOptions/properties/width"
        },
        "theme": {
          "$ref": "#/$defs/controlOptions/properties/theme"
        },
        "mode": {
          "$ref": "#/$defs/controlOptions/properties/mode"
        },
        "agGridOptions": {
          "$ref": "#/$defs/controlOptions/properties/agGridOptions"
        },
        "components": {
          "$ref": "#/$defs/controlOptions/properties/components"
        },
        "toggle": {
          "$ref": "#/$defs/controlOptions/properties/toggle"
        },
        "slider": {
          "$ref": "#/$defs/controlOptions/properties/slider"
        },
        "vertical": {
          "$ref": "#/$defs/controlOptions/properties/vertical"
        },
        "showNavButtons": {
          "$ref": "#/$defs/controlOptions/properties/showNavButtons"
        },
        "allowAdditionalPropertiesIfMissing": {
          "$ref": "#/$defs/controlOptions/properties/allowAdditionalPropertiesIfMissing"
        },
        "allowEmptyPropertyNames": {
          "$ref": "#/$defs/controlOptions/properties/allowEmptyPropertyNames"
        },
        "returnMaskedValue": {
          "$ref": "#/$defs/controlOptions/properties/returnMaskedValue"
        },
        "tokensReplace": {
          "$ref": "#/$defs/controlOptions/properties/tokensReplace"
        },
        "eager": {
          "$ref": "#/$defs/controlOptions/properties/eager"
        },
        "reversed": {
          "$ref": "#/$defs/controlOptions/properties/reversed"
        },
        "showUnfocusedDescription": {
          "$ref": "#/$defs/controlOptions/properties/showUnfocusedDescription"
        },
        "hideRequiredAsterisk": {
          "$ref": "#/$defs/controlOptions/properties/hideRequiredAsterisk"
        },
        "enableFilterErrorsBeforeTouch": {
          "$ref": "#/$defs/controlOptions/properties/enableFilterErrorsBeforeTouch"
        },
        "showValidationIndicator": {
          "$ref": "#/$defs/controlOptions/properties/showValidationIndicator"
        },
        "showValidationIndicatorCount": {
          "$ref": "#/$defs/controlOptions/properties/showValidationIndicatorCount"
        },
        "showDataIndicator": {
          "$ref": "#/$defs/controlOptions/properties/showDataIndicator"
        },
        "colorTextEntry": {
          "$ref": "#/$defs/controlOptions/properties/colorTextEntry"
        },
        "interpolate": {
          "$ref": "#/$defs/controlOptions/properties/interpolate"
        },
        "dateFormat": {
          "$ref": "#/$defs/controlOptions/properties/dateFormat"
        },
        "dateSaveFormat": {
          "$ref": "#/$defs/controlOptions/properties/dateSaveFormat"
        },
        "timeFormat": {
          "$ref": "#/$defs/controlOptions/properties/timeFormat"
        },
        "timeSaveFormat": {
          "$ref": "#/$defs/controlOptions/properties/timeSaveFormat"
        },
        "dateTimeFormat": {
          "$ref": "#/$defs/controlOptions/properties/dateTimeFormat"
        },
        "dateTimeSaveFormat": {
          "$ref": "#/$defs/controlOptions/properties/dateTimeSaveFormat"
        },
        "ampm": {
          "$ref": "#/$defs/controlOptions/properties/ampm"
        },
        "step": {
          "$ref": "#/$defs/controlOptions/properties/step"
        },
        "filterErrorKeywordsBeforeTouch": {
          "$ref": "#/$defs/controlOptions/properties/filterErrorKeywordsBeforeTouch"
        },
        "suggestion": {
          "$ref": "#/$defs/controlOptions/properties/suggestion"
        },
        "tokens": {
          "$ref": "#/$defs/controlOptions/properties/tokens"
        },
        "colorSaveFormat": {
          "$ref": "#/$defs/controlOptions/properties/colorSaveFormat"
        },
        "collapsible": {
          "type": "boolean"
        },
        "columnDefs": {
          "description": "Selects and orders table or AG Grid columns with optional width constraints. Explicit agGridOptions.columnDefs replaces this list for AG Grid.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/tableColumnDefinition"
          }
        },
        "dialog": {
          "$ref": "#/$defs/detailDialog"
        }
      }
    },
    "listWithDetail": {
      "required": [
        "scope"
      ],
      "properties": {
        "scope": {
          "type": "string"
        },
        "options": {
          "type": "object",
          "properties": {
            "elementLabelProp": {
              "type": "string"
            },
            "detail": {
              "$ref": "#/$defs/detail"
            },
            "showSortButtons": {
              "type": "boolean",
              "default": false
            },
            "hideArraySummaryValidation": {
              "type": "boolean",
              "default": false
            },
            "restrict": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "button": {
      "description": "Named command or script body, mutually exclusive in authored JSON. A tolerant runtime diagnoses conflicts and gives the action precedence.",
      "properties": {
        "label": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "action": {
          "type": "string",
          "description": "The command name handed to the host. Never derived from the label, which moves with the locale; `name` is the fallback."
        },
        "script": {
          "type": "string",
          "description": "An async function body, invoked with the ActionEvent as `this`. Requires jsonformsExtended.security.allowScriptEvaluation. A FUNCTION is also accepted by an in-memory TypeScript model and has no JSON spelling."
        },
        "params": {
          "type": "object",
          "additionalProperties": true,
          "description": "Arguments for the command, so one action serves several buttons."
        },
        "icon": {
          "type": "string"
        },
        "color": {
          "enum": [
            "primary",
            "secondary",
            "alternative",
            "success",
            "warning",
            "error"
          ],
          "description": "Semantic names, not paint; the renderer set maps them."
        },
        "options": {
          "type": "object",
          "properties": {
            "disabled": {
              "type": "boolean"
            },
            "fullWidth": {
              "type": "boolean",
              "default": false,
              "description": "Fill the available inline width of the containing layout cell without changing its size or span."
            }
          }
        }
      },
      "not": {
        "required": [
          "action",
          "script"
        ]
      }
    },
    "link": {
      "properties": {
        "href": {
          "type": "string",
          "description": "Subject to the URL policy. An empty href is permitted and non-navigating."
        },
        "label": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "rel": {
          "type": "string"
        }
      },
      "required": [
        "href"
      ]
    },
    "imageView": {
      "description": "Static or data-bound image source. URL policy applies to either; alt is explicit, including an empty string for decoration.",
      "properties": {
        "src": {
          "type": "string"
        },
        "scope": {
          "type": "string",
          "description": "Reads the URL from the data instead of from the element."
        },
        "alt": {
          "type": "string"
        },
        "options": {
          "type": "object",
          "properties": {
            "width": {
              "$ref": "jsonforms-uischema.schema.json#/$defs/dimension"
            },
            "height": {
              "$ref": "jsonforms-uischema.schema.json#/$defs/dimension"
            }
          }
        }
      },
      "required": [
        "alt"
      ],
      "anyOf": [
        {
          "required": [
            "src"
          ]
        },
        {
          "required": [
            "scope"
          ]
        }
      ]
    },
    "spacer": {
      "properties": {
        "size": {
          "$ref": "jsonforms-uischema.schema.json#/$defs/dimension",
          "default": 32
        }
      },
      "description": "Top-level size along the parent main axis; options.layout.weight may request flexible space."
    },
    "separator": {
      "properties": {
        "options": {
          "type": "object",
          "properties": {
            "vertical": {
              "type": "boolean",
              "default": false
            }
          }
        }
      }
    },
    "templateLayout": {
      "required": [
        "template"
      ],
      "description": "A template rendered by a named engine. `template` is a STRING in the portable model; a native host profile may also accept a function, which has no JSON spelling and cannot be serialized.",
      "properties": {
        "template": {
          "type": "string"
        },
        "lang": {
          "$ref": "#/$defs/templateLangRef"
        },
        "name": {
          "type": "string"
        },
        "elements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/element"
          },
          "description": "Children. A named child is addressable from the template; an unnamed one gets its decimal index as a fallback name."
        }
      }
    },
    "templateLangRef": {
      "type": "string",
      "description": "Not a closed enum: an unknown language must be diagnosed rather than interpreted as another engine, which a closed enum would make unauthorable.",
      "examples": [
        "ractive",
        "jsx"
      ]
    },
    "slot": {
      "properties": {
        "name": {
          "type": "string",
          "description": "Which named child of the enclosing template to place.",
          "minLength": 1
        },
        "elements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/element"
          },
          "description": "The first child is fallback content when no named slot content is supplied. Wrap multiple controls in one layout."
        }
      },
      "required": [
        "name"
      ]
    },
    "monacoOptions": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "rows": {
          "type": "integer",
          "minimum": 1,
          "default": 10
        },
        "autoGrow": {
          "type": "boolean"
        },
        "minRows": {
          "type": "integer",
          "minimum": 1,
          "default": 3
        },
        "maxRows": {
          "type": "integer",
          "minimum": 1,
          "default": 30
        },
        "options": {
          "type": "object",
          "additionalProperties": true,
          "description": "Passed to Monaco itself."
        },
        "initActions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "detail": {
      "description": "Editor detail: inline UI schema or upstream string mode. GENERATE bypasses the registry; other strings consult it. Tuple containers use a separate position-layout contract.",
      "anyOf": [
        {
          "type": "string",
          "description": "Array detail: DEFAULT preserves normal presentation; GENERATE forces generation; REGISTERED and other strings (including GENERATED) use registry lookup with generation fallback. String comparisons are case-insensitive. Inline UI schemas are recursively validated."
        },
        {
          "$ref": "#/$defs/element"
        },
        {
          "type": "object",
          "required": [
            "elements"
          ],
          "additionalProperties": true,
          "properties": {
            "elements": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/element"
              }
            }
          },
          "not": {
            "required": [
              "type"
            ]
          }
        }
      ]
    },
    "label": {
      "description": "A Label, plus the options the extended renderer set reads on one. References the base definition rather than restating it, so `text` and `options.format` keep one home.",
      "allOf": [
        {
          "$ref": "jsonforms-uischema.schema.json#/$defs/label"
        },
        {
          "properties": {
            "options": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "markup": {
                  "type": "string",
                  "enum": [
                    "plain",
                    "markdown"
                  ],
                  "default": "plain",
                  "description": "How the text is rendered. `markdown` parses it with the host's configured profile; anything other than these two is reported beside the text rather than guessed at. A renderer set that does not implement this ignores the option and shows the text as written, which is why this is an option and not an element type."
                },
                "typography": {
                  "type": "boolean",
                  "default": true,
                  "description": "Whether to wrap the rendered text in the UI library's own text components. Overrides jsonformsExtended.markup.typography for this element."
                },
                "interpolate": {
                  "type": "boolean",
                  "default": false,
                  "description": "Evaluates the {...} placeholders in this element's text. A single { opens a placeholder and {{ emits a literal brace - inverted from Mustache, so {{data.x}} is literal text. Inside is an expression, not merely a path. A renderer set that does not implement this ignores the option and shows the text as written."
                },
                "textParams": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "Declared values exposed to text expressions as bare identifiers. Text has no implicit locale variable: declare a parameter such as language with value {locale} to expose the host locale. A parameter named locale is allowed. Parameter expressions may read host locale without the data-access gate; data/item/config/context require jsonformsExtended.dynamicValues.enabled."
                }
              }
            }
          }
        }
      ]
    },
    "summary": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "type",
            "scope"
          ],
          "properties": {
            "type": {
              "const": "Control"
            },
            "scope": {
              "type": "string",
              "pattern": "^#(?:/.*)?$"
            }
          },
          "additionalProperties": true
        },
        {
          "allOf": [
            {
              "$ref": "#/$defs/label"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "const": "Label"
                }
              }
            }
          ]
        }
      ]
    },
    "template": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "description": "Exact name of the registered UI-schema model (entry.uischema.name), not a ranked tester lookup."
        },
        "elements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/element"
          }
        }
      }
    },
    "pagination": {
      "$ref": "jsonforms-uischema.schema.json#/$defs/pagination"
    },
    "rowDetail": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "presentation"
      ],
      "properties": {
        "presentation": {
          "enum": [
            "dialog",
            "panel"
          ]
        },
        "detail": {
          "$ref": "#/$defs/detail"
        },
        "placement": {
          "enum": [
            "right",
            "bottom"
          ],
          "default": "right"
        },
        "resizable": {
          "type": "boolean",
          "default": true
        },
        "collapsed": {
          "type": "boolean",
          "default": false,
          "description": "Initial panel visibility: true starts hidden; false starts visible. Panel presentation only."
        },
        "dialog": {
          "$ref": "#/$defs/detailDialog"
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "presentation": {
                "const": "dialog"
              }
            }
          },
          "then": {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "placement"
                  ]
                },
                {
                  "required": [
                    "resizable"
                  ]
                },
                {
                  "required": [
                    "collapsed"
                  ]
                }
              ]
            }
          }
        }
      ]
    },
    "additionalPropertiesPresentation": {
      "$ref": "jsonforms-uischema.schema.json#/$defs/additionalPropertiesPresentation"
    },
    "tableColumnDefinition": {
      "$ref": "jsonforms-uischema.schema.json#/$defs/tableColumnDefinition"
    },
    "additionalItemsPresentation": {
      "$ref": "jsonforms-uischema.schema.json#/$defs/additionalItemsPresentation"
    },
    "detailDialog": {
      "$ref": "jsonforms-uischema.schema.json#/$defs/detailDialog"
    },
    "inputAdornment": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "kind",
            "text"
          ],
          "properties": {
            "kind": {
              "const": "text"
            },
            "text": {
              "type": "string",
              "minLength": 1
            },
            "i18n": {
              "type": "string",
              "minLength": 1
            },
            "tooltip": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "kind",
            "icon"
          ],
          "properties": {
            "kind": {
              "const": "icon"
            },
            "icon": {
              "type": "string",
              "minLength": 1
            },
            "label": {
              "type": "string",
              "minLength": 1
            },
            "i18n": {
              "type": "string",
              "minLength": 1
            },
            "tooltip": {
              "type": "string",
              "minLength": 1
            },
            "decorative": {
              "type": "boolean"
            }
          },
          "allOf": [
            {
              "if": {
                "properties": {
                  "decorative": {
                    "const": true
                  }
                },
                "required": [
                  "decorative"
                ]
              },
              "then": {
                "not": {
                  "anyOf": [
                    {
                      "required": [
                        "label"
                      ]
                    },
                    {
                      "required": [
                        "tooltip"
                      ]
                    },
                    {
                      "required": [
                        "i18n"
                      ]
                    }
                  ]
                }
              },
              "else": {
                "required": [
                  "label"
                ]
              }
            }
          ],
          "additionalProperties": false
        }
      ]
    },
    "inputAdornmentValue": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/inputAdornment"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/inputAdornment"
          }
        }
      ],
      "description": "Logical input-edge content. Strings preserve JSON Forms React Material literal startAdornment/endAdornment behavior; objects add localized text or semantic icons; arrays compose objects in order."
    }
  },
  "$id": "https://kchobantonov.github.io/jsonforms-extended-spec/schemas/jsonforms-extended-uischema.schema.json"
}
