addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / day
Added value: +{
+ "description": "Base-date day 1-31; must be a real calendar date. Required when operation is addWorkingDays.",
+ "maximum": 31,
+ "minimum": 1,
+ "type": "integer"
+}
addedInput schema / properties / days
Added value: +{
+ "description": "Signed number of working days to add (positive) or subtract (negative); 0 returns the base date. Required when operation is addWorkingDays.",
+ "maximum": 100000,
+ "minimum": -100000,
+ "type": "integer"
+}
addedInput schema / properties / fromDay / description
Added value: +"Start-date day 1-31; must be a real calendar date. Required when operation is countBetween."
addedInput schema / properties / fromDay / maximum
Added value: +31
addedInput schema / properties / fromDay / minimum
Added value: +1
addedInput schema / properties / fromMonth / description
Added value: +"Start-date month 1-12. Required when operation is countBetween."
addedInput schema / properties / fromMonth / maximum
Added value: +12
addedInput schema / properties / fromMonth / minimum
Added value: +1
addedInput schema / properties / fromYear / description
Added value: +"Start-date year (proleptic Gregorian). Required when operation is countBetween."
addedInput schema / properties / fromYear / maximum
Added value: +9999
addedInput schema / properties / fromYear / minimum
Added value: +-9999
addedInput schema / properties / holidays / description
Added value: +"Optional dates to treat as non-working days, in addition to weekends. Duplicates are deduped; each must be a real calendar date."
addedInput schema / properties / holidays / items / description
Added value: +"Holiday date as YYYY-MM-DD."
addedInput schema / properties / holidays / items / format
Added value: +"date"
addedInput schema / properties / holidays / maxItems
Added value: +1000
addedInput schema / properties / month
Added value: +{
+ "description": "Base-date month 1-12. Required when operation is addWorkingDays.",
+ "maximum": 12,
+ "minimum": 1,
+ "type": "integer"
+}
addedInput schema / properties / operation / description
Added value: +"\"countBetween\": count working days between two dates (needs from* and to*). \"addWorkingDays\": shift a base date by working days (needs year/month/day and days)."
addedInput schema / properties / operation / enum
Added value: +[
+ "countBetween",
+ "addWorkingDays"
+]
addedInput schema / properties / toDay / description
Added value: +"End-date day 1-31. Required when operation is countBetween."
addedInput schema / properties / toDay / maximum
Added value: +31
addedInput schema / properties / toDay / minimum
Added value: +1
addedInput schema / properties / toMonth / description
Added value: +"End-date month 1-12. Required when operation is countBetween."
addedInput schema / properties / toMonth / maximum
Added value: +12
addedInput schema / properties / toMonth / minimum
Added value: +1
addedInput schema / properties / toYear / description
Added value: +"End-date year; must be on or after the from date. Required when operation is countBetween."
addedInput schema / properties / toYear / maximum
Added value: +9999
addedInput schema / properties / toYear / minimum
Added value: +-9999
addedInput schema / properties / year
Added value: +{
+ "description": "Base-date year. Required when operation is addWorkingDays.",
+ "maximum": 9999,
+ "minimum": -9999,
+ "type": "integer"
+}
changedInput schema / required
Previous value: -[
- "operation",
- "fromYear",
- "fromMonth",
- "fromDay",
- "toYear",
- "toMonth",
- "toDay",
- "holidays"
-]New value: +[
+ "operation"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "data": {
+ "description": "Result payload; shape depends on operation.",
+ "properties": {
+ "base": {
+ "description": "Base date as year/month/day/isoDate/dayOfWeek (addWorkingDays only).",
+ "type": "object"
+ },
+ "daysAdded": {
+ "description": "Signed working-days input, echoed back (addWorkingDays only).",
+ "type": "integer"
+ },
+ "from": {
+ "description": "Start date as year/month/day/isoDate/dayOfWeek (countBetween only).",
+ "type": "object"
+ },
+ "holidayDaysCounted": {
+ "description": "Weekday holidays in range that reduced the working count (countBetween only).",
+ "type": "integer"
+ },
+ "holidaysInRange": {
+ "description": "Listed holidays (YYYY-MM-DD) that fell in the range (countBetween only).",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "holidaysSkipped": {
+ "description": "Listed holidays stepped over (addWorkingDays only).",
+ "type": "integer"
+ },
+ "result": {
+ "description": "Resulting date as year/month/day/isoDate/dayOfWeek (addWorkingDays only).",
+ "type": "object"
+ },
+ "to": {
+ "description": "End date as year/month/day/isoDate/dayOfWeek (countBetween only).",
+ "type": "object"
+ },
+ "totalCalendarDays": {
+ "description": "Inclusive calendar-day count in the range (countBetween only).",
+ "type": "integer"
+ },
+ "totalCalendarDaysShifted": {
+ "description": "Absolute calendar-day shift from base to result (addWorkingDays only).",
+ "type": "integer"
+ },
+ "weekendDays": {
+ "description": "Saturday+Sunday days in the range (countBetween only).",
+ "type": "integer"
+ },
+ "weekendsSkipped": {
+ "description": "Saturday+Sunday days stepped over (addWorkingDays only).",
+ "type": "integer"
+ },
+ "workingDays": {
+ "description": "Working days = total - weekend - holidayDaysCounted (countBetween only).",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "operation": {
+ "description": "The operation that was run, echoed back (countBetween or addWorkingDays).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+}