Subject: | dead condition is used. Boolean never be detected |
https://metacpan.org/source/JSON::Schema::Helper#L559
the $$value can not be 0 and 1 at same time. You should use
Probably you mean:
(ref $value eq 'SCALAR' and ($$value==0 or $$value==1))