v0.1.2
This release contains several fixes and enhancements related to CUE conversions.
It fixes several issues with the related to JSON Schema conversion, including an incorrect implementation of the JSON Schema spec. Most notably, one may not infer from a constraint for a certain type that a value must be of that type. This means that if a schema, for instance, defines a properties section, but does not specify the type to an object, the resulting CUE value will be a disjunction from this object and all non-object top-level types. This is not a bug.
Another change is that the cue tool now may silently ignore imprecise conversions, as long as the produced result does not give false negatives. The --strict option will emit the original errors.
All changes
9 changesby area
encoding6
encoding/jsonschemaadd several validatorsencoding/jsonschemaencode minItems differentlyencoding/jsonschemafix type exclusion logicencoding/jsonschemawrap comment linesencoding/openapiremove unused codeencoding/protobuffix required option parsing
Other3
cmd/cue/cmdallow lossy conversion by default and add --strict optioncmd/cue/cmdfix bug with help flaggithubfix release.on to push.tags
Downloads
Every file this release published on GitHub, with its SHA-256. Most people install CUE as Installing CUE describes, which also shows how to check a download.
Archives
| Platform | File and SHA-256 |
|---|---|
| macOS, Intel | cue_0580c7db622eabfcec8f7946bbd7819b7d38ebf11ac79f918d2deccc3544d443 |
| Linux, Arm64 | cue_bed02a3bc61f712b19319215166d19ad28c80113b771f469d13aeba29ba8137a |
| Linux, x86-64 | cue_ad47b69a43197af7a150974969ff51034aa981b4df264c0221dbcc3737280209 |
| Windows, x86-64 | cue_f24e8ff652ae3bdc5ceca09901570f9894f27c75ce94ee67f0c37544ae5a3c75 |
SHA-256 checksums for all of these: checksums.txt