Report Schema Error when Data Values Overlay Fails #344
Labels
bug
This issue describes a defect or unexpected behavior
discussion
This issue is not a bug or feature and a conversation is needed to find an appropriate resolution
Why / Context
Previously, there was some work done to report a schema error for when an overlay fails to overlay a data value onto a schema document, but the work was moved to this issue. Because of this, we have some tests that do not pass and are being skipped. Currently, instead of a schema error, we see an overlay error message.
Narrative:
As a configuration author
I want see a helpful error message when my data values file does not conform to my schema
so that I can easily find where the offending items are in my document and fix it
🟢 Report a Schema Error when Overlaying fails
Given I have a schema
And a data value that is not in my schema
When I run
ytt
that includes that schema and data valueThen I see a error that my data value did not conform to my schema
Then the result of
ytt -f schema.yml -f dv.yml -f template.yml --enable-experiment-schema
is:The text was updated successfully, but these errors were encountered: