Closed b4nst closed 3 years ago
@b4nst this is working as intended, according to the documentation cue help get go
:
...
- a type that implements MarshalJSON, UnmarshalJSON, MarshalYAML, or
UnmarshalYAML is translated to top (_) to indicate it may be any
value. For some Go core types for which the implementation of these
methods is known, like time.Time, the type may be more specific.
...
The thinking being that such a method encodes "custom" encoding logic that cue get go
cannot safely understand in all situations.
Woops, guess it's a rtfm for me here! Thanks for the quick answer
This issue has been migrated to https://github.com/cue-lang/cue/issues/846.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
yes
What did you do?
What did you expect to see?
Task schema
What did you see instead?
cue.mod/gen/github.com/go-task/task/v3/taskfile/task_go_gen.cue