Swbase.managed_responses: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/swbase.bend as Swbase Lines 86-87 of cswap-bend-cli@0.1.0.0/swbase.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/swbase.bend&start_line=86&end_line=87 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def managed_responses(+responses: Json.Json, +key20: String) -> Json.Json: with_rejected(is_some_json(Json.get("rejected", responses)), Json.set("approved", Json.JArr{add_approved(approved_list(responses), key20)}, responses)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=get https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=set https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swbase.bend&name=add_approved https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swbase.bend&name=approved_list https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swbase.bend&name=is_some_json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swbase.bend&name=with_rejected