Openapi.kind.name: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/openapi.bend as Openapi Lines 1349-1367 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=1349&end_line=1367 import Base import emerging-ezjson@1.2.0.0/src/value.bend as Value # the JSON type of a value, as JSON Schema names it def kind.name(val: Value.Json) -> String: match val: case Value.JNull{}: "null" case Value.JBool{_b}: "boolean" case Value.JNum{_r}: "number" case Value.JStr{_s}: "string" case Value.JSpan{_src, _n}: "string" case Value.JArr{_c}: "array" case Value.JObj{_c}: "object" case other: "unknown" Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/value.bend&name=Json