def kinds
import ezmcp@0.1.0.0/src/openapi.bend as Openapiimport Base
import emerging-ezjson@1.2.0.0/main.bend as Json
import emerging-ezjson@1.2.0.0/src/value.bend as Value
1382# whether a value is of one of the types an array of names lists
1383def kinds(types: List<&2, Value.Json>, +val: Value.Json) -> Bool:
1384 match types:
1385 case []:
1386 False{}
1387 case one <> rest:
1388 or.else(kind(Maybe.default(&2, String, Json.as_str(one), ""), val),
1389 _u => kinds(rest, val))