addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / day / description
Added value: +"Base date day of month; must be a real calendar day for the given year/month."
addedInput schema / properties / day / maximum
Added value: +31
addedInput schema / properties / day / minimum
Added value: +1
addedInput schema / properties / days / description
Added value: +"Days to shift. For add/subtract, a calendar-day component in -1000..1000 (default 0); for addBusinessDays, a signed weekday-only count in -100000..100000 (negative walks backward). For add/subtract, at least one of years/months/weeks/days must be non-zero."
addedInput schema / properties / days / maximum
Added value: +100000
addedInput schema / properties / days / minimum
Added value: +-100000
addedInput schema / properties / month / description
Added value: +"Base date month, 1 (January) to 12 (December)."
addedInput schema / properties / month / maximum
Added value: +12
addedInput schema / properties / month / minimum
Added value: +1
addedInput schema / properties / months / default
Added value: +0
addedInput schema / properties / months / description
Added value: +"Months to add (add/subtract only; ignored for addBusinessDays)."
addedInput schema / properties / months / maximum
Added value: +1000
addedInput schema / properties / months / minimum
Added value: +-1000
addedInput schema / properties / operation / description
Added value: +"Which calculation to run: \"add\" or \"subtract\" a calendar duration, or \"addBusinessDays\" to shift by weekday-only days."
addedInput schema / properties / operation / enum
Added value: +[
+ "add",
+ "subtract",
+ "addBusinessDays"
+]
addedInput schema / properties / weeks / default
Added value: +0
addedInput schema / properties / weeks / description
Added value: +"Weeks to add (add/subtract only; ignored for addBusinessDays)."
addedInput schema / properties / weeks / maximum
Added value: +1000
addedInput schema / properties / weeks / minimum
Added value: +-1000
addedInput schema / properties / year / description
Added value: +"Base date year (proleptic Gregorian)."
addedInput schema / properties / year / maximum
Added value: +9999
addedInput schema / properties / year / minimum
Added value: +-9999
addedInput schema / properties / years / default
Added value: +0
addedInput schema / properties / years / description
Added value: +"Years to add (add/subtract only; ignored for addBusinessDays)."
addedInput schema / properties / years / maximum
Added value: +1000
addedInput schema / properties / years / minimum
Added value: +-1000
changedInput schema / required
Previous value: -[
- "operation",
- "year",
- "month",
- "day",
- "years",
- "months",
- "weeks",
- "days"
-]New value: +[
+ "operation",
+ "year",
+ "month",
+ "day"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "data": {
+ "description": "Result payload. Always includes base and result; add/subtract add totalDaysAdded and breakdown, addBusinessDays adds daysAdded, weekendsSkipped, and totalCalendarDaysShifted.",
+ "properties": {
+ "base": {
+ "description": "The supplied base date.",
+ "properties": {
+ "day": {
+ "description": "Base date day of month.",
+ "type": "integer"
+ },
+ "dayOfWeek": {
+ "description": "Base date weekday name, Sunday-Saturday.",
+ "type": "string"
+ },
+ "isoDate": {
+ "description": "Base date as YYYY-MM-DD (UTC).",
+ "type": "string"
+ },
+ "month": {
+ "description": "Base date month, 1-12.",
+ "type": "integer"
+ },
+ "year": {
+ "description": "Base date year.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "breakdown": {
+ "description": "add/subtract only: the input duration as given.",
+ "properties": {
+ "days": {
+ "description": "Days component as supplied.",
+ "type": "integer"
+ },
+ "months": {
+ "description": "Months component as supplied.",
+ "type": "integer"
+ },
+ "weeks": {
+ "description": "Weeks component as supplied.",
+ "type": "integer"
+ },
+ "years": {
+ "description": "Years component as supplied.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "daysAdded": {
+ "description": "addBusinessDays only: signed business-day count as supplied.",
+ "type": "integer"
+ },
+ "result": {
+ "description": "The resulting date after the shift.",
+ "properties": {
+ "day": {
+ "description": "Result day of month.",
+ "type": "integer"
+ },
+ "dayOfWeek": {
+ "description": "Result weekday name, Sunday-Saturday.",
+ "type": "string"
+ },
+ "isoDate": {
+ "description": "Result date as YYYY-MM-DD (UTC).",
+ "type": "string"
+ },
+ "month": {
+ "description": "Result month, 1-12.",
+ "type": "integer"
+ },
+ "year": {
+ "description": "Result year.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "totalCalendarDaysShifted": {
+ "description": "addBusinessDays only: total calendar days walked (business days plus weekends skipped).",
+ "type": "integer"
+ },
+ "totalDaysAdded": {
+ "description": "add/subtract only: signed (result - base) in whole days.",
+ "type": "integer"
+ },
+ "weekendsSkipped": {
+ "description": "addBusinessDays only: number of weekend days walked over.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "operation": {
+ "description": "Echo of the requested operation (add, subtract, or addBusinessDays).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+}