-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema validation does not work on first key in list dict #915
Comments
@henry-spanka
we will need to check this in detail a bit. |
Also according to this slack discussion here, https://kubernetes.slack.com/archives/CH8KCCKA5/p1618934385381800 Also Dmitriy clarifies in same chat that
is same as
|
Thanks @prembhaskal ! |
What steps did you take:
A schema key is not validated when it's the first key in a list of dicts.
schema.yaml
values.yaml
What happened:
Templating with
ytt -f schema.yaml -f values.yaml --data-values-inspect
completes successfully.What did you expect:
Templating to fail due to name being an empty string.
Anything else you would like to add:
Adding the comment after the value does trigger validation. However this is only necessary on the first key. Subsequent dict successfully validate when the comment is above the key.
Environment:
ytt --version
):ytt version 0.49.0
/etc/os-release
):macOS M1 Pro 14.5
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: