{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://github.com/lifegpc/pixiv_downloader/raw/master/doc/api/auth/pubkey.zh_CN.json",
    "title": "返回结果",
    "type": "object",
    "properties": {
        "ok": {
            "description": "请求是否成功",
            "type": "boolean"
        },
        "code": {
            "description": "错误代码，如请求成功则为0",
            "type": "integer"
        },
        "msg": {
            "description": "错误信息",
            "type": "string"
        },
        "debug_msg": {
            "description": "调试用的错误信息"
        },
        "result": {
            "description": "请求结果",
            "type": "object",
            "properties": {
                "key": {
                    "description": "RSA公钥",
                    "type": "string"
                },
                "generated_time": {
                    "description": "公钥生成时间",
                    "type": "integer"
                }
            },
            "required": ["key", "generated_time"]
        }
    },
    "required": ["ok", "code"]
}
