{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shirabe-dev/json-schema/shirabe-dev-enrich-response-schema.json",
  "title": "EnrichResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shirabe-dev-openapi.yaml#/components/schemas/EnrichResponse",
  "type": "object",
  "required": [
    "results",
    "attribution"
  ],
  "properties": {
    "results": {
      "type": "object",
      "description": "要求 component をキーとした結果マップ。",
      "additionalProperties": {
        "$ref": "#/$defs/EnrichComponentResult"
      }
    },
    "attribution": {
      "type": "array",
      "description": "関与 API の出典を重複排除して集約（CC BY 4.0 等の伝搬）。",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  },
  "$defs": {
    "EnrichComponentResult": {
      "type": "object",
      "required": [
        "status"
      ],
      "description": "component ごとの結果。`status` が `ok` のときのみ component 固有のペイロード\n（`normalized` / `split` / `reading` / `corporation` / `calendar`）を持つ。\n",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "skipped",
            "unavailable",
            "error"
          ]
        },
        "reason": {
          "type": "string",
          "description": "skipped / unavailable / error 時の説明。"
        }
      },
      "additionalProperties": true
    }
  }
}