-
Notifications
You must be signed in to change notification settings - Fork 294
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 latest schema version by default
An upcoming change exposes the fact that we use non-draft-07 features in schemas that don't declare their version. Using the latest schema version by default seems like it's probably the right thing to do. Also actually _use_ the `DefaultVersion` constant that we purported to use already. We should probably change all our schemas to use an explicit `$schema` keyword so they don't need changing if we support a new version, but that won't happen for a good while, so we're good for now. Signed-off-by: Roger Peppe <[email protected]> Change-Id: Ibb25421fdf3d26194920b221611570630019af45 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202559 Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
3 changed files
with
10 additions
and
4 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