Closed marcusaleman closed 1 day ago
I would set a default of false
@Mjwillis I think what Marcus is trying to do is have null to keep the existing behaviour i.e. you have both active and inactive. This would have to be very clearly documented.
I had suggested using a different name for the parameter onlyActive=true false
as I doubt anyone is interested in having only the names of inactive prisons. With a default value of false, we would keep the existing behaviour.
/names : it works as the original contract. active and non active names
/names?active=true :it filters only active names /names?active=false :it filters only non active names