-
Notifications
You must be signed in to change notification settings - Fork 342
Labels
Description
Is your feature request related to a problem? Please describe.
There are some situations where a yaml tag is required. (encoding/yaml).Marshal does not support encoding tags and makes this impossible.
It looks like the authors of the original encoder were aware this may be desirable.
cue/internal/encoding/yaml/encode.go
Line 107 in 256f1f9
| // TODO: use cue.Value and support attributes for setting YAML tags. |
Describe the solution you'd like
Support encoding tags with an attribute.
import "encoding/yaml"
yaml.Marshal({
some_key: "some value" @yaml.Tag("some tag")
})Describe alternatives you've considered
Not sure.
Additional context
Maybe: