def Yaml.tagged

bend-kube-runtime@0.2.0.0 · src/yaml.bend:602

import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yaml
import 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)

Uses (9)

Used by (1)