{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/deel-com/main/json-schema/deel-time-off-schema.json", "title": "Deel Time Off Request", "description": "Canonical schema for a Deel HRIS time-off request.", "type": "object", "required": ["id", "person_id", "policy_id", "start_date", "end_date", "status"], "properties": { "id": { "type": "string" }, "person_id": { "type": "string" }, "policy_id": { "type": "string" }, "type": { "type": "string", "enum": ["vacation", "sick", "parental", "bereavement", "jury_duty", "study", "unpaid", "other"] }, "start_date": { "type": "string", "format": "date" }, "end_date": { "type": "string", "format": "date" }, "days": { "type": "number" }, "status": { "type": "string", "enum": ["pending", "approved", "declined", "cancelled"] }, "reason": { "type": "string" }, "half_day": { "type": "boolean" }, "created_at": { "type": "string", "format": "date-time" }, "reviewed_by": { "type": "string" }, "reviewed_at": { "type": "string", "format": "date-time" } }, "additionalProperties": true }