Re:Ask HN: Do you use JSON Schema? Help us shape its future ...
by verdverm on Tuesday January 31, 2023 @07:42AM
(#34594367)
you can reduce further this by running:
cue export foo.yaml --out json
If you have an existing JSON file, add // comments wherever and run: cue export cue: - --out json < file.json
The `cue: -` tells cue how to interpret stdin and has many options
I cannot say the below holds for all YAML libraries, but can say the below works.
Assume there is a file named "foo.yaml" which has the following content:
Running: Yields the below without error: HTH