action canada_holidays_holidays { label: "Get all holidays" description: "Returns Canadian public holidays. Each holiday lists the regions that observe it." provider: canada_holidays method: GET path: "/api/v1/holidays" encoding: json input: { type: "object" properties: { federal: { type: "string" enum: ["1", "0", "true", "false"] } optional: { type: "string" enum: ["1", "0", "true", "false"] } year: { type: "integer" } } additionalProperties: false } output: { type: "object" properties: { holidays: { type: "array" items: { type: "object" description: "A Canadian holiday. Includes a name, the literal date of the holiday, the observed date of the holiday (ie, accommodating for weekends), and a list of regions that observe this holiday." required: ["id", "date", "nameEn", "nameFr", "federal", "observedDate"] properties: { date: { type: "string" format: "date" description: "ISO date: the literal date of the holiday" } federal: { type: "integer" description: "Whether this holiday is observed by federally-regulated industries." enum: [1, 0] } id: { type: "integer" description: "Primary key for a holiday" } nameEn: { type: "string" description: "English name" } nameFr: { type: "string" description: "French name" } observedDate: { type: "string" format: "date" description: "ISO date: when this holiday is observed" } optional: { type: "integer" description: "Whether this is a province-wide statutory holiday, or one that is optional for employers." enum: [1] } provinces: { type: "array" items: { type: "object" description: "A Canadian province or territory " required: ["id", "nameFr", "nameEn", "sourceLink", "sourceEn"] properties: { id: { type: "string" description: "Canadian province abbreviations" enum: ["AB", "BC", "MB", "NB", "NL", "NS", "NT", "NU", "ON", "PE", "QC", "SK", "YT"] } nameEn: { type: "string" description: "English name" } nameFr: { type: "string" description: "French name" } nextHoliday: { type: "object" additionalProperties: true } optional: { type: "integer" description: "Whether this province optionally observes a given holiday." enum: [1] } provinces: { type: "array" items: { type: "object" additionalProperties: true } } sourceEn: { type: "string" description: "Name of reference page with public holidays for this region" } sourceLink: { type: "string" format: "uri" description: "URL to public holidays reference for this region" } } } } } } } } } }