Schema validation does not work on first key in list dict #915
Labels
carvel triage
This issue has not yet been triaged for relevance
helping with an issue
Debugging happening to identify the problem
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: