{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soeru-biz/json-schema/soeru-biz-compare-engines-request-schema.json",
  "title": "CompareEnginesRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/soeru-biz-openapi.json#/components/schemas/CompareEnginesRequest",
  "properties": {
    "shop_id": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Shop Id"
    },
    "order_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Order Id"
    },
    "engines": {
      "items": {
        "type": "string",
        "enum": [
          "v1_legacy",
          "v2_structured",
          "v3_narrative",
          "v4_cassette",
          "v4_singlepass",
          "v6_kobo",
          "v6_material",
          "v4_refined"
        ]
      },
      "type": "array",
      "maxItems": 4,
      "minItems": 1,
      "title": "Engines"
    },
    "length_preset": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "short",
            "standard",
            "long",
            "dynamic",
            "custom"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Length Preset",
      "description": "文字数プリセット. None なら shop 設定をそのまま使う"
    },
    "min_length": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 600.0,
          "minimum": 40.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Min Length",
      "description": "length_preset='custom' の時に必須. 40〜600"
    },
    "max_length": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 600.0,
          "minimum": 40.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Length",
      "description": "length_preset='custom' の時に必須. 40〜600"
    }
  },
  "type": "object",
  "required": [
    "shop_id",
    "order_id",
    "engines"
  ]
}