{
  "name": "rowrules/when-empty-require",
  "why": "§5 J: when/empty + require — \"if x is empty, y is required\"",
  "rules": {
    "columns": [
      {
        "key": "t"
      },
      {
        "key": "x"
      },
      {
        "key": "y"
      }
    ],
    "rowRules": [
      {
        "when": {
          "col": "x",
          "empty": true
        },
        "require": [
          "y"
        ]
      }
    ]
  },
  "rows": [
    {
      "t": "홍",
      "x": "",
      "y": ""
    }
  ],
  "expect": {
    "ok": false,
    "errors": [
      {
        "row": 2,
        "key": "y",
        "code": "ROW_REQUIRE"
      }
    ],
    "warnings": [],
    "rows": [
      {
        "$row": 2,
        "t": "홍",
        "x": null,
        "y": null
      }
    ]
  }
}
