def none_present
import bend-schema-lib@0.4.1.0/core.bend as Coreimport Base
246# None of the keys of a variant chain is in the object r.
247def none_present(s: Schema, +r: Raw) -> Bool:
248 match s:
249 case SVariant{n, vs, rest}:
250 Bool.and(is_missing(lookup(n, r)), none_present(rest, r))
251 case _:
252 True{}