{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yukkurigen-com/json-schema/yukkurigen-com-emphasis-schema.json",
  "title": "Emphasis",
  "description": "強調テロップ（その行だけ）。文字列（黄色・従来の場所）か、色と出す場所を書いたオブジェクト。",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yukkurigen-com-openapi.json#/components/schemas/Emphasis",
  "oneOf": [
    {
      "type": "string",
      "maxLength": 30
    },
    {
      "type": "object",
      "required": [
        "text"
      ],
      "properties": {
        "text": {
          "type": "string",
          "maxLength": 30,
          "description": "強調する言葉（10文字以内が目安、12文字で切る）"
        },
        "color": {
          "type": "string",
          "enum": [
            "yellow",
            "red",
            "blue",
            "green"
          ],
          "description": "文字の色（既定 yellow）"
        },
        "position": {
          "type": "string",
          "enum": [
            "top",
            "center",
            "bottom"
          ],
          "description": "出す高さ。top=画面の上の方 / center=真ん中 / bottom=字幕のすぐ上。省くと従来の高さ（横長は上から26%、縦型は24%。顔と顔の間）"
        },
        "x": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "テロップの中心の横の位置（画面の幅の %）。省くと左右の真ん中。端ほど折り返す幅が狭くなる（20〜80 が無難）"
        },
        "y": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "テロップの中心の縦の位置（画面の高さの %）。position より勝つ"
        }
      }
    }
  ]
}