{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shirabe-dev/json-schema/shirabe-dev-enrich-request-schema.json",
  "title": "EnrichRequest",
  "description": "複合 enrich の入力。record は 1 つ以上のフィールド必須。",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shirabe-dev-openapi.yaml#/components/schemas/EnrichRequest",
  "type": "object",
  "required": [
    "record"
  ],
  "properties": {
    "record": {
      "type": "object",
      "description": "正規化対象。全フィールド optional だが 1 つ以上必須。",
      "properties": {
        "address": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "company_name": {
          "type": "string"
        },
        "corporate_number": {
          "type": "string"
        },
        "date": {
          "type": "string",
          "format": "date"
        }
      }
    },
    "fields": {
      "type": "array",
      "description": "対象 component を限定。省略時は record の入力から自動推定。",
      "items": {
        "type": "string",
        "enum": [
          "address",
          "name",
          "corporation",
          "calendar"
        ]
      }
    }
  }
}