def kids

ezmcp@0.1.0.0 · src/openapi.bend:508

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base

508# what a schema's members recurse into: its properties' cells when its
509# type is "object" and its properties an object, its items when its type is
510# "array" and its items an object, else nothing
511def kids(+ps: List<&2, Mem()>) -> Kids:
512  +typ = value(ps, "type")
513  kids.of(is_str(typ, "object"), is_str(typ, "array"), ps)

Uses (6)

Used by (1)