-
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: remove unused state fields
The presence of both `state.parent` and `state.up` was confusing, especially as neither was documented and `state.parent` wasn't actually used for anything. Likewise, `state.path` isn't used for anything, and isn't actually an accurate reflection of the JSON path (it's not updated for list values). So remove both. They can easily be reinstated if they turn out to be useful in the future. Signed-off-by: Roger Peppe <[email protected]> Change-Id: Ice08453b867f4e6a474db1e725e59b99e22ce036 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202558 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
- Loading branch information
Showing
3 changed files
with
10 additions
and
19 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