def Yaml.tagged
import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yamlimport Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J
602# A tagged scalar: !!str keeps the text a string; other tags are dropped.
603def Yaml.tagged(av: AV) -> J.Json:
604 match av:
605 case AV{"!str", r}:
606 J.JStr{r}
607 case AV{t, +r}:
608 Yaml.scalar.untagged(r)