If an eligibility check is provided in the inputs, then we should just use what was provided (if it is true or false) instead of calculating the check.
For example, if the body of the request to /benefits/phlPreK includes the following:
{
"inputs": {
"livesInPhiladelphia": true // or false
// ... (other inputs left out for brevity)
}
}
Then any calculation that would normally be done to determine whether livesInPhiladelphia should be true or true will be short-circuited, and the provided true will be used for the overall eligibility calculation:
If an eligibility check is provided in the
inputs
, then we should just use what was provided (if it istrue
orfalse
) instead of calculating the check.For example, if the body of the request to
/benefits/phlPreK
includes the following:Then any calculation that would normally be done to determine whether
livesInPhiladelphia
should betrue
ortrue
will be short-circuited, and the providedtrue
will be used for the overall eligibility calculation: