{
  "name": "rowrules/unique-with-duplicate",
  "why": "§4 rowRules example uniqueWith [date, orderNo]: the repeat is flagged on the first key of the set",
  "rules": {
    "columns": [
      {
        "key": "date",
        "type": "date"
      },
      {
        "key": "orderNo"
      }
    ],
    "rowRules": [
      {
        "uniqueWith": [
          "date",
          "orderNo"
        ]
      }
    ]
  },
  "rows": [
    {
      "date": "2024-01-05",
      "orderNo": "A1"
    },
    {
      "date": "2024-01-05",
      "orderNo": "A1"
    }
  ],
  "expect": {
    "ok": false,
    "errors": [
      {
        "row": 3,
        "key": "date",
        "code": "ROW_UNIQUE_WITH"
      }
    ],
    "warnings": [],
    "rows": [
      {
        "$row": 2,
        "date": "2024-01-05",
        "orderNo": "A1"
      },
      {
        "$row": 3,
        "date": "2024-01-05",
        "orderNo": "A1"
      }
    ]
  }
}
