def is_true

ezmcp@0.1.0.0 · src/openapi.bend:193

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base
import emerging-ezjson@1.2.0.0/src/value.bend as Value

193# whether a value is JSON true
194def is_true(val: Value.Json) -> Bool:
195  match val:
196    case Value.JBool{flag}:
197      flag
198    case other:
199      False{}

Uses (2)

Used by (3)