{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/musicsforyou-com/json-schema/musicsforyou-com-replace-section-request-schema.json",
  "title": "ReplaceSectionRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/musicsforyou-com-openapi.json#/components/schemas/ReplaceSectionRequest",
  "type": "object",
  "properties": {
    "clipId": {
      "type": "string",
      "description": "要改的候选 / Which clip to edit"
    },
    "startS": {
      "type": "number",
      "minimum": 0,
      "description": "起点（秒）/ Start, seconds"
    },
    "endS": {
      "type": "number",
      "minimum": 0,
      "description": "终点（秒）。区间 ≥10 秒且 ≤ 原曲一半 / End, seconds. Range must be ≥10 s and ≤ half the song"
    },
    "sectionLyrics": {
      "type": "string",
      "maxLength": 3000,
      "default": "",
      "description": "这一段的新歌词；纯音乐留空 / New lyrics for the section; empty for instrumental"
    },
    "fullLyrics": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10000,
      "description": "替换后的完整歌词 / Full lyrics after the change"
    },
    "style": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1000
    }
  },
  "required": [
    "clipId",
    "startS",
    "endS"
  ]
}