{
    "$schema": "http://json-schema.org/draft-04/schema",
    "description": "\u5fae\u4fe1\u5c0f\u7a0b\u5e8f \u81ea\u5b9a\u4e49\u7ec4\u4ef6 \u7684 schema",
    "type": "object",
    "required": [
        "component"
    ],
    "properties": {
        "component": {
            "type": "boolean",
            "default": true
        },
        "usingComponents": {
            "type": "object"
        },
        "minapp": {
            "type": "object",
            "properties": {
                "component": {
                    "type": "object",
                    "description": "\u5173\u4e8e\u6b64\u7ec4\u4ef6\u7684\u6587\u6863",
                    "properties": {
                        "docLink": {
                            "type": "string",
                            "description": "\u7ebf\u4e0a\u6587\u6863\u94fe\u63a5"
                        },
                        "desc": {
                            "type": "array",
                            "description": "\u7ec4\u4ef6\u7684\u63cf\u8ff0\uff0c\u652f\u6301 markdown \u8bed\u6cd5",
                            "items": {
                                "type": "string"
                            }
                        },
                        "attrs": {
                            "type": "array",
                            "description": "\u7ec4\u4ef6\u5c5e\u6027\u5217\u8868",
                            "items": {
                                "$ref": "#/definitions/attr"
                            }
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "attr": {
            "required": [
                "name",
                "type"
            ],
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "description": "\u5c5e\u6027\u540d\u5b57"
                },
                "type": {
                    "type": "object",
                    "description": "\u5c5e\u6027\u7c7b\u578b",
                    "required": [
                        "name"
                    ],
                    "default": {
                        "name": "string"
                    },
                    "properties": {
                        "name": {
                            "type": "string"
                        }
                    }
                },
                "desc": {
                    "type": "array",
                    "description": "\u5c5e\u6027\u7684\u63cf\u8ff0\uff0c\u652f\u6301 markdown \u8bed\u6cd5",
                    "items": {
                        "type": "string"
                    }
                },
                "required": {
                    "type": "boolean",
                    "description": "\u662f\u5426\u5fc5\u586b"
                },
                "defaultValue": {
                    "description": "\u5c5e\u6027\u9ed8\u8ba4\u503c"
                }
            }
        }
    }
}