From fe53d4d8da5e5eb78591ebdcd542dcd75c3e9789 Mon Sep 17 00:00:00 2001 From: FilipBuhinicek Date: Tue, 7 Apr 2026 15:17:03 +0200 Subject: [PATCH] fix(tb-prod): replace unsupported date filter with after/before on holidays The Productive API does not support `filter[date]` on the holidays endpoint despite the schema listing it. The actual API uses custom `after` and `before` filters (same pattern as allocations/activities). Co-Authored-By: Claude Opus 4.6 (1M context) --- crates/tb-prod/schema.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/crates/tb-prod/schema.json b/crates/tb-prod/schema.json index 04f118b..4b7fed8 100644 --- a/crates/tb-prod/schema.json +++ b/crates/tb-prod/schema.json @@ -4478,9 +4478,24 @@ "format": "YYYY-MM-DD", "param": "date", "required": true, - "filter": "date", "attribute": "date" }, + "after": { + "key": "after", + "type": "date", + "typeCategory": "primitive", + "format": "YYYY-MM-DD", + "filter": "after", + "description": "Filter holidays that occur on or after this date (date >= value)" + }, + "before": { + "key": "before", + "type": "date", + "typeCategory": "primitive", + "format": "YYYY-MM-DD", + "filter": "before", + "description": "Filter holidays that occur on or before this date (date <= value)" + }, "holidayCalendar": { "key": "holidayCalendar", "type": "holiday_calendars",