{
  "name": "rowrules/when-not-empty-forbid",
  "why": "§5 J: when + forbid — a filled forbidden column is ROW_FORBID",
  "rules": {
    "columns": [
      {
        "key": "t"
      },
      {
        "key": "x"
      },
      {
        "key": "y"
      }
    ],
    "rowRules": [
      {
        "when": {
          "col": "x",
          "notEmpty": true
        },
        "forbid": [
          "y"
        ]
      }
    ]
  },
  "rows": [
    {
      "x": "a",
      "y": "b"
    }
  ],
  "expect": {
    "ok": false,
    "errors": [
      {
        "row": 2,
        "key": "y",
        "code": "ROW_FORBID"
      }
    ],
    "warnings": [],
    "rows": [
      {
        "$row": 2,
        "t": null,
        "x": "a",
        "y": "b"
      }
    ]
  }
}
