def item
ezmcp@0.1.0.0 · src/openapi.bend:1013
import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base
import emerging-ezjson@1.2.0.0/main.bend as Json
import emerging-ezjson@1.2.0.0/src/value.bend as Value
1013
1014
1015def item(
1016 ms: List<&2, String>,
1017 +doc: Value.Json,
1018 +path: String,
1019 +it: Value.Json,
1020 +ips: List<&2, Value.Json>
1021) -> List<&2, Op>:
1022 match ms:
1023 case []:
1024 []
1025 case +method <> rest:
1026 +oper = Json.get(it, method)
1027 item.at(Json.is_obj(oper), doc, path, method, ips, oper,
1028 item(rest, doc, path, it, ips))