Leave Request Validation Rules: Ready-to-Use JSON Prompt
Optimize HR systems with structured leave validation rules. Ready-to-use JSON format for developers and HR managers to automate workflows and prevent request errors.
{
"rules": [
{
"leaveType": "Marriage Leave",
"validity": "In the event of the employee’s marriage, 3 business days of leave are granted.",
"maxDays": 3
},
{
"leaveType": "Birth Leave for Spouse",
"validity": "If the employee’s spouse gives birth, 5 business days of leave are granted.",
"maxDays": 5
},
{
"leaveType": "Leave for the Death of a First-Degree Relative",
"validity": "In the event of the death of the employee’s mother, father, sibling, spouse, or child, 3 business days of leave are granted.",
"maxDays": 3
},
{
"leaveType": "Natural Disaster Leave",
"validity": "In the event of a natural disaster, up to 10 business days of leave may be used.",
"maxDays": 10
},
{
"leaveType": "Paid Maternity Leave",
"validity": "In cases of pregnancy and maternity, the procedure is carried out according to the law. Female employees are generally not required to work for 8 weeks before birth and 8 weeks after birth. In the case of multiple pregnancy, 2 additional weeks are added to the 8-week period before birth during which the employee is not required to work.",
"preBirthWeeks": 8,
"postBirthWeeks": 8,
"extraWeeksForMultiplePregnancy": 2,
"workUntilPreWeeks": 3
},
{
"leaveType": "Unpaid Maternity Leave",
"validity": "After the end of paid maternity leave, this leave may be granted for up to 6 months upon the employee’s request. It cannot be used in separate parts.",
"maxMonths": 6
},
{
"leaveType": "Health Check Leave for Pregnant Employees",
"validity": "If the pregnant employee documents her pregnancy, this type of leave may be used for monthly health checks and has no daily limit.",
"documentationRequired": true
},
{
"leaveType": "Social Excuse Leave",
"validity": "The total excuse leave that an employee may use in one year is 3 business days. Leaves exceeding 3 days are deducted from annual leave.",
"maxDaysPerYear": 3
},
{
"leaveType": "Unpaid Leave",
"validity": "This is a type of leave with no specific limit, granted upon the employee’s written request if approved by the employer.",
"documentationRequired": true
}
],
"generalRules": {
"duplicateCheck": "If there is already a leave request for the same dates, the user should not request leave again.",
"applicableFormId": 1
}
}