v0.1.2

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

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 validatorsb99d364
  • encoding/jsonschemaencode minItems differentlybcc19ce
  • encoding/jsonschemafix type exclusion logic78e21c1
  • encoding/jsonschemawrap comment linesed4fc4d
  • encoding/openapiremove unused code904f561
  • encoding/protobuffix required option parsing9b62b36

Other3

  • cmd/cue/cmdallow lossy conversion by default and add --strict option0059b2b
  • cmd/cue/cmdfix bug with help flaga38e811
  • githubfix release.on to push.tagsefb89b8

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

PlatformFile and SHA-256
macOS, Intelcue_0.1.2_Darwin_x86_64.tar.gz0580c7db622eabfcec8f7946bbd7819b7d38ebf11ac79f918d2deccc3544d443
Linux, Arm64cue_0.1.2_Linux_arm64.tar.gzbed02a3bc61f712b19319215166d19ad28c80113b771f469d13aeba29ba8137a
Linux, x86-64cue_0.1.2_Linux_x86_64.tar.gzad47b69a43197af7a150974969ff51034aa981b4df264c0221dbcc3737280209
Windows, x86-64cue_0.1.2_Windows_x86_64.zipf24e8ff652ae3bdc5ceca09901570f9894f27c75ce94ee67f0c37544ae5a3c75

SHA-256 checksums for all of these: checksums.txt

Install CUE