{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/car-gene-com/json-schema/car-gene-com-get-model-editions-response-schema.json",
  "title": "GetModelEditionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/car-gene-com-editions-api-openapi.yml#/components/schemas/GetModelEditionsResponse",
  "properties": {
    "editions": {
      "items": {
        "$ref": "#/$defs/EditionResponse"
      },
      "type": "array",
      "title": "Editions"
    }
  },
  "type": "object",
  "required": [
    "editions"
  ],
  "$defs": {
    "EditionDetailResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "aspect": {
          "type": "string",
          "title": "Aspect"
        },
        "part": {
          "type": "string",
          "title": "Part"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "source_url": {
          "type": "string",
          "title": "Source Url"
        },
        "provenance": {
          "type": "string",
          "title": "Provenance"
        },
        "translation_source_url": {
          "type": "string",
          "title": "Translation Source Url"
        }
      },
      "type": "object",
      "required": [
        "id",
        "aspect",
        "description",
        "source_url"
      ],
      "title": "EditionDetailResponse",
      "description": "エディション1つの何が特別かの、観点ごとの 1 行 (#2994)\n\n観点と部位は改良の変更点 (`MinorChangeDetailResponse`) と同じ語彙\n(`api/domains/minor_change_aspects.py`)。**1 行に根拠 1 本。**"
    },
    "EditionResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "model_id": {
          "type": "string",
          "title": "Model Id"
        },
        "minor_change_id": {
          "type": "string",
          "title": "Minor Change Id"
        },
        "kind": {
          "type": "string",
          "enum": [
            "special",
            "limited",
            "added"
          ],
          "title": "Kind"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "base_grade_name": {
          "type": "string",
          "title": "Base Grade Name"
        },
        "announced_year": {
          "type": "integer",
          "title": "Announced Year"
        },
        "announced_month": {
          "type": "integer",
          "title": "Announced Month"
        },
        "announced_day": {
          "type": "integer",
          "title": "Announced Day"
        },
        "start_year": {
          "type": "integer",
          "title": "Start Year"
        },
        "start_month": {
          "type": "integer",
          "title": "Start Month"
        },
        "end_year": {
          "type": "integer",
          "title": "End Year"
        },
        "end_month": {
          "type": "integer",
          "title": "End Month"
        },
        "quantity": {
          "type": "integer",
          "title": "Quantity"
        },
        "source_urls": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Source Urls"
        },
        "details": {
          "items": {
            "$ref": "#/$defs/EditionDetailResponse"
          },
          "type": "array",
          "title": "Details"
        },
        "provenance": {
          "type": "string",
          "title": "Provenance"
        },
        "translation_source_url": {
          "type": "string",
          "title": "Translation Source Url"
        }
      },
      "type": "object",
      "required": [
        "id",
        "model_id",
        "kind",
        "name",
        "start_year",
        "source_urls",
        "details"
      ],
      "title": "EditionResponse",
      "description": "世代の特別仕様車・限定車・グレード追加 1 つ (#2994)\n\n**改良の行と違って時期を区切らない。** どの改良の期間に入るかは\n`minor_change_id` (ビューが開始年月から導く) で、年の境で決まらないときと\n改良が無いときは None (画面は世代の直下に出す)。"
    }
  }
}