{
  "name": "rowrules/compare-date-cleaned-formats",
  "why": "§5 P2: compare uses cleaned dates, whatever format each side was typed in",
  "rules": {
    "columns": [
      {
        "key": "start",
        "type": "date"
      },
      {
        "key": "end",
        "type": "date"
      }
    ],
    "rowRules": [
      {
        "compare": [
          "start",
          "<=",
          "end"
        ]
      }
    ]
  },
  "rows": [
    {
      "start": "2024.01.10",
      "end": "20240105"
    }
  ],
  "expect": {
    "ok": false,
    "errors": [
      {
        "row": 2,
        "key": "start",
        "code": "ROW_COMPARE"
      }
    ],
    "warnings": [],
    "rows": [
      {
        "$row": 2,
        "start": "2024-01-10",
        "end": "2024-01-05"
      }
    ]
  }
}
