-
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.
The `stream` attribute is not used or tested for anywhere and is therefore likely incorrect. Remove it: we can always reinstate if it's needed in the future. Also unify `FileInfo` with `File`. This has no direct semantic effect, but means that the two are more closely related, and allows us to add information to `interpretations` that also has an effect in `tagInfo`, something we'll use in a subsequent CL. The latter change does mean that we now get a non-empty `Form` in some cases when it was previously empty but that actually seems more correct: if we're interpreting as JSON Schema, for example, it seems right to treat it as schema not data. Also add some documentation and make `modes.[_].FileInfo` and `modes.[_].Default` into required fields as suggested by the TODO. Also change the tests to use `cue/build` constants, thus giving more confidence that they match the strings used in the CUE. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I3a9246a3060837ea03eae6daf3841ae305faa016 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200923 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
3 changed files
with
80 additions
and
103 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
Oops, something went wrong.