-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/jsonschema: use new definition mapping
This allows JSON Schema to now directly be compared to data without qualifiers or remapping: $ cue eval schema.json data.yaml This works now more intuively as data and schema now map one-to-one. This relies on the change to allow `...` at the file level. This means it is not necessary to use the new `isSchema` field. It seems sensible to track this though and we may need it in the future. One huge caveat of this new mapping is that it is now no longer possible to have a non-struct schema with definitions remapped to a different label. For this we need to allow embedded scalars in structs. It still seems worth it and rather to allow this in the language. Change-Id: I16988ca1c0d4436d591ba239964c4bb7445e6fd9 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5942 Reviewed-by: Marcel van Lohuizen <mpvl@google.com>
- Loading branch information
Showing
19 changed files
with
238 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.