def merge

ezmcp@0.1.0.0 · src/openapi.bend:312

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

312# a reference's target with the reference object's other members: the
313# target itself when there are none; else those members first, then the
314# target's members they do not name (Reference Object: a sibling
315# `description` overrides the target's)
316def merge(+sib: List<&2, Mem()>, +target: Value.Json) -> Value.Json:
317  merge.of(List.is_empty(&2, Mem(), sib), sib, target)

Uses (5)

Used by (1)