Repository navigation
Fix spec validation & merge so that default values are correctly applied - #72
Merged
Merged
Conversation
shykes
force-pushed
the
fix-spec-defaults
branch
2 times, most recently
from
January 26, 2021 18:58
9b38b7a to
9dbc12d
Compare
Contributor
Author
|
This fixes #19 . |
aluzzardi
reviewed
Jan 26, 2021
shykes
force-pushed
the
fix-spec-defaults
branch
from
January 26, 2021 20:27
04c899b to
09e9cfa
Compare
Contributor
Author
|
Ready for another round. |
Signed-off-by: Solomon Hykes <[email protected]>
shykes
force-pushed
the
fix-spec-defaults
branch
from
January 26, 2021 23:56
09e9cfa to
6dbb30f
Compare
Contributor
Author
|
Rebased & changed one of @dubo-dubon-duponey ‘s new integration tests to match the new validation behavior: although a |
aluzzardi
approved these changes
Jan 27, 2021
This was referenced Oct 21, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #19.
Operations with omitted fields are correctly expanded to their default values, if available. For example
{do: “exec”}is expanded to{do: “exec”, path: “/“}, etc.When a script is missing inputs (in cue terms, some values in the script are “not concrete”), print a more user-friendly message. (NOTE: more improvements coming in a separate PR)
Change in spec validation behavior: if an operation is missing required fields (for example a
fetch-containerwith noref), it will NOT be caught as an error. Rather, it will be considered a “missing input”, causing the script to interrupt without error, and notifying the user. NOTE: this can be changed in the future, but will require more work to avoid breaking other validation scenarios in the process.