Openapi.kind: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/openapi.bend as Openapi Lines 1369-1380 of ezmcp@0.1.0.0/src/openapi.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/openapi.bend&start_line=1369&end_line=1380 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 # whether a value is of the JSON Schema type named `typ`: string, number, # integer (a number whose text is an integer), boolean, array, object or # null; true for a name JSON Schema does not have def kind(+typ: String, +val: Value.Json) -> Bool: +int = kind.int(val) Bool.pick(Bool, String.eq(typ, "integer"), int, Bool.pick(Bool, String.eq(typ, "string"), kind.str(val), Bool.pick(Bool, String.eq(typ, "number"), kind.num(val), Bool.pick(Bool, String.eq(typ, "boolean"), kind.bool(val), Bool.pick(Bool, String.eq(typ, "array"), Json.is_arr(val), Bool.pick(Bool, String.eq(typ, "object"), Json.is_obj(val), Bool.pick(Bool, String.eq(typ, "null"), is_null(val), True{}))))))) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/main.bend&name=is_arr https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/main.bend&name=is_obj https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/value.bend&name=Json https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=is_null https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=kind.bool https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=kind.int https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=kind.num https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=kind.str