{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://tidestack.dev/docs/reference/jsonschema/metadata/ui-schema.schema.json",
  "title": "UI Schema 资源",
  "description": ".ui-schema.json 资源使用 name/schema 包装；schema 为交给前端渲染的对象或数组。旧 ui-schema 目录中的组件 JSON 使用 ui-schema-content.schema.json。",
  "type": "object",
  "required": [
    "name",
    "schema"
  ],
  "properties": {
    "name": {
      "type": "string",
      "pattern": "\\S",
      "description": "资源名称，支持点分名称或页面路径，由正式加载器规范化为 UI Schema 路径。"
    },
    "schema": {
      "type": [
        "object",
        "array"
      ],
      "$ref": "ui-schema-content.schema.json",
      "description": "交给前端渲染的组件对象或数组。"
    }
  },
  "additionalProperties": true
}
