def alt_ok
import bend-schema-lib@0.4.1.0/core.bend as Coreimport Base
614# An alternative is a value that is present and has a kind of its own: not an
615# absent field (the host writes no key, so no kind is there to pick by), and
616# not s.json(), which takes every kind.
617def alt_ok(+s: Schema) -> Bool:
618 Bool.and(Bool.not(has_kind(s, KAbsent{})), Bool.not(has_kind(s, KJson{})))