Published on : July 10, 2020

Validates whether the job type is OK or Not

Service Used: sublan_eligibility.job_type

Keys used in this section are :

required
Should Job type is required or not
If yes then it must be specified
Varchar Values
job_type
Job Type ValueVarchar Values

Logic: Job Type Check

Required
----------------
yes or no

job_type
------------------
job_type Value

job_types
------------------
Allowed job_type values

Check
------------------
Check whether job_type is required or not
and job type is valid of invalid

Output :

"job_type"                  =>  array(7) 
[
"debug" => array(1)
"skip" => string(2) "no"
"required" => string(3) "yes"
"job_type" => string(8) "salaried"
"job_types" => array(1)
[
0 => string(8) "salaried"
]
"status" => string(7) "success"
"message" => string(17) "job type is valid"
]

Visual Output :