This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
YAML metadata to trigger custom functions that populate missing values #1069
Unanswered
benbooth493
asked this question in
Q&A
Replies: 1 comment
-
This discussion has been migrated to cue-lang/cue#1069. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let’s say I have a yaml file with some values that can be empty.
Now say I have a program that reads the yaml and populates some of the values.
The values to populate is determined by a json schema document with
additionalProperties: true
and with some of the values having a custom propertymustPopulate: true
.I am not using the json schema for validation (although I could of course), it’s really just to carry some additional metadata for the yaml file.
Is this pattern possible with Cue? If so, how would I do such a thing?
Beta Was this translation helpful? Give feedback.
All reactions