{
  "name": "rowrules/when-eq-require-missing",
  "why": "§4 rowRules example + §5 J: when kind = 법인, crn is required",
  "rules": {
    "columns": [
      {
        "key": "kind",
        "enum": [
          "개인",
          "법인"
        ]
      },
      {
        "key": "crn",
        "type": "kr.crn"
      }
    ],
    "rowRules": [
      {
        "when": {
          "col": "kind",
          "eq": "법인"
        },
        "require": [
          "crn"
        ]
      }
    ]
  },
  "rows": [
    {
      "kind": "법인",
      "crn": ""
    }
  ],
  "expect": {
    "ok": false,
    "errors": [
      {
        "row": 2,
        "key": "crn",
        "code": "ROW_REQUIRE"
      }
    ],
    "warnings": [],
    "rows": [
      {
        "$row": 2,
        "kind": "법인",
        "crn": null
      }
    ]
  }
}
