From 7c1dafe33c7e265778604a1fca2bcefd84c8b8c0 Mon Sep 17 00:00:00 2001 From: Hommy Date: Wed, 14 Oct 2026 19:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=20openapi.yaml=20=E5=88=B0?= =?UTF-8?q?=E6=9C=AC=E6=AC=A1=E6=94=B9=E5=8A=A8=E5=89=8D=E7=9A=84=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 该文件不由自动化改动:它是手工维护、并手动上传到 API 平台控制台的产物。 上一提交新增的 background_info(含 8 个嵌套字段)、has_background、text_glow 三个属性一并撤回,文件内容与 fe91868 时逐字节一致。 其余改动(schema / router / service / pyJianYingDraft / config/glow.json / 双语文档 / 测试)不受影响,文字背景与文字发光功能保持完整。 顺带记一笔既有欠账:text_bubble 也从未进入过本文件(3cb4d10 那次提交漏了), 如仍需补,请手工处理。 Co-Authored-By: Claude Code --- openapi.yaml | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 4f34ba6..f3e6589 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -12119,34 +12119,6 @@ paths: default: 1 description: 文本透明度(0.0-1.0) type: number - background_info: - description: '文本背景(文字底下的纯色底板),字段与草稿的 background_* 一一对应;只有 has_background=true 时生效,不填则用默认黑色背景' - properties: - background_alpha: - description: 背景不透明度, 取值范围为[0, 1] - type: number - background_color: - description: 背景颜色(十六进制),默认 #000000 - type: string - background_height: - description: 背景高度, 取值范围为[0, 1] - type: number - background_horizontal_offset: - description: 背景水平偏移(草稿坐标 [-1, 1]), 0 为居中, 负值向左 - type: number - background_round_radius: - description: 背景圆角半径, 取值范围为[0, 1] - type: number - background_style: - description: 背景样式, 1/2 分别对应剪映中的两种样式(0 表示无背景,不可传入) - type: integer - background_vertical_offset: - description: 背景竖直偏移(草稿坐标 [-1, 1]), 0 为居中, 负值向上 - type: number - background_width: - description: 背景宽度, 取值范围为[0, 1] - type: number - type: object bold: default: false description: 文本加粗开关 @@ -12167,10 +12139,6 @@ paths: default: 15 description: 字体大小 type: integer - has_background: - default: false - description: '文本背景开关(true为打开,false为关闭),如果打开了,但没有填background_info,默认就是黑色背景' - type: boolean has_shadow: default: false description: '文本阴影开关(true为打开,false为关闭),如果打开了,但没有填shadow_info,默认就是{ "shadow_color": "#000000", "shadow_alpha": 0.9, "shadow_diffuse": 15, "shadow_distance": 5, "shadow_angle", -45 }' @@ -12225,9 +12193,6 @@ paths: text_effect: description: 文本花字 type: string - text_glow: - description: '发光预设名称(如"外发光")、resource_id/effect_id,或"effect_id:resource_id"显式ID对。与花字/文字模板/气泡都不互斥,可叠加;仅支持接口级' - type: string text_template: description: 文字模板名称或 effect_id;与 text_effect 互斥,同时传入时文字模板优先 type: string