-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/jsonschema: allow mapping URLs to values within a package
A JSON Schema value might not be situated at the root of a CUE package. This change allows `MapURL` to return not only the import path of package in which a JSON Schema URI can be found in CUE, but also a reference within that package. This is technically a backwardly incompatible change to the `MapURL` signature, but as this is a relatively new part of the API (added in v0.10.0) and is unlikely to have many importers use it, I think that's probably OK. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I3e44b2623fe3c5778afd1e6d2ad50948395a0145 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201910 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
- Loading branch information
Showing
3 changed files
with
48 additions
and
15 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