{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opcmenu-com/json-schema/opcmenu-com-signup-activity-detail-schema.json",
  "title": "SignupActivityDetail",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opcmenu-com-openapi.json#/components/schemas/SignupActivityDetail",
  "allOf": [
    {
      "$ref": "#/$defs/SignupActivityCard"
    },
    {
      "type": "object",
      "description": "详情比卡片多出：简介、长图、地点/结束时间/名额、题目表与答疑说明",
      "properties": {
        "status": {
          "type": "string",
          "description": "PUBLISHED=在架；ENDED=已结束（仍可读，CTA 显示已截止）",
          "enum": [
            "PUBLISHED",
            "ENDED"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "活动简介全文"
        },
        "posterUrls": {
          "type": "array",
          "description": "活动长图（主办方推文长图），按 w/h 先占位再加载",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "w": {
                "type": "integer",
                "description": "宽（0=未知，按容器宽度自适应）"
              },
              "h": {
                "type": "integer",
                "description": "高（0=未知）"
              }
            }
          }
        },
        "location": {
          "type": [
            "string",
            "null"
          ],
          "description": "线下地点"
        },
        "endAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "结束时间"
        },
        "capacity": {
          "type": [
            "integer",
            "null"
          ],
          "description": "名额"
        },
        "articleUrls": {
          "type": "array",
          "description": "主办方原文链接（公众号推文等）",
          "items": {
            "type": "string"
          }
        },
        "formSchema": {
          "type": "array",
          "description": "报名题目表；据此判断「要准备什么材料」",
          "items": {
            "$ref": "#/$defs/SignupFormField"
          }
        },
        "contactQrUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "答疑/组队群二维码"
        },
        "contactNote": {
          "type": [
            "string",
            "null"
          ],
          "description": "答疑说明"
        },
        "requiresPhoneVerification": {
          "type": "boolean",
          "description": "true=自办活动要验手机号，只能去 App 或报名页报"
        },
        "hasSensitiveFields": {
          "type": "boolean",
          "description": "是否含敏感题（身份证号/手机号/微信号这类，答案加密存储）"
        }
      }
    }
  ],
  "$defs": {
    "SignupActivityCard": {
      "type": "object",
      "description": "可报名机会卡片（feed / 详情同一契约的公共部分）",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string",
          "description": "活动 slug（传给 getSignupActivity）"
        },
        "title": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "description": "报名类目（同 listSignupFeed 的 kind 枚举）",
          "enum": [
            "HACKATHON",
            "COMPETITION",
            "INCUBATOR",
            "FUNDING",
            "COMMUNITY",
            "EVENT",
            "OTHER"
          ]
        },
        "coverUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "organizerName": {
          "type": [
            "string",
            "null"
          ],
          "description": "主办方名称（文本，未必是站内账号）"
        },
        "organizer": {
          "type": [
            "object",
            "null"
          ],
          "description": "站内主办方账号（外部导入的赛事为 null）",
          "properties": {
            "id": {
              "type": "string"
            },
            "nickname": {
              "type": [
                "string",
                "null"
              ]
            },
            "avatarUrl": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "track": {
          "type": [
            "string",
            "null"
          ],
          "description": "赛道 / 主题"
        },
        "rewards": {
          "type": [
            "string",
            "null"
          ],
          "description": "奖项 / 权益（自由文本）"
        },
        "startAt": {
          "type": "string",
          "format": "date-time",
          "description": "开始时间；startAtKnown=false 时是兜底值，别念给用户"
        },
        "registrationDeadline": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "报名截止时间；null=长期有效（排序时排最后）"
        },
        "pinned": {
          "type": "boolean",
          "description": "是否置顶（独行录自办/承办）"
        },
        "startAtKnown": {
          "type": "boolean",
          "description": "startAt 是不是主办方公布的真实时间；false=导入时兜底顶上的假值，不要展示那个日期"
        },
        "signup": {
          "type": "object",
          "description": "报名方式",
          "properties": {
            "canOneClick": {
              "type": "boolean",
              "description": "是否已解析出可用表单（能一键报名）"
            },
            "requiresLogin": {
              "type": "boolean",
              "description": "是否必须登录才能报"
            },
            "hostedEnabled": {
              "type": "boolean",
              "description": "是否由独行录托管报名"
            },
            "externalUrl": {
              "type": [
                "string",
                "null"
              ],
              "description": "主办方的外部报名表单地址"
            },
            "externalIsCanonical": {
              "type": "boolean",
              "description": "true=正式报名在主办方那边，站内提交只是留资＋代填"
            }
          }
        },
        "submitted": {
          "type": "boolean",
          "description": "当前用户报没报过；本 spec 匿名调用恒为 false"
        }
      }
    },
    "SignupFormField": {
      "type": "object",
      "description": "一道报名题",
      "properties": {
        "key": {
          "type": "string",
          "description": "题目 key（跨活动稳定）"
        },
        "label": {
          "type": "string",
          "description": "题面"
        },
        "type": {
          "type": "string",
          "description": "题型：text/textarea=文本；select/multiselect=选项；phone/email/url/number/date=对应格式； file=附件题（如商业计划书），只能用户自己去报名页传。",
          "enum": [
            "text",
            "textarea",
            "select",
            "multiselect",
            "phone",
            "email",
            "url",
            "number",
            "date",
            "file"
          ]
        },
        "required": {
          "type": "boolean",
          "description": "是否必填"
        },
        "options": {
          "type": "array",
          "description": "可选项（select/multiselect 才有）",
          "items": {
            "type": "string"
          }
        },
        "hint": {
          "type": [
            "string",
            "null"
          ],
          "description": "题面下的一行提示"
        },
        "sourceLabel": {
          "type": [
            "string",
            "null"
          ],
          "description": "源表单里的原始题面（含说明文字）"
        },
        "sensitive": {
          "type": "boolean",
          "description": "是否敏感个人信息（答案加密存储，快照只留打码值）"
        }
      }
    }
  }
}