Skip to content
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

Allow when= to access value, parent, and root nodes #741

Merged
merged 4 commits into from
Sep 13, 2022

Conversation

pivotaljohn
Copy link
Contributor

Resolves #733

... because line numbers can sometimes be not present (e.g. data values
    being calculated) or shifted.
... to improve readability.

Usability testing (#707) made clear that violation messages on a single
line are quite difficult to visually parse, making such error messages
less readable.

To support the reformatting, context is gathered at the time a violation
is detected. The message is formatted once all violations have
been collected.

Also includes minor improvements to "named" rule messages to improve
readability.
@pivotaljohn pivotaljohn marked this pull request as ready for review September 12, 2022 02:45
@pivotaljohn pivotaljohn self-assigned this Sep 12, 2022
...rather than mapping to a name argument; this is unlike any other
interaction in `ytt` authoring.
@pivotaljohn pivotaljohn mentioned this pull request Sep 13, 2022
9 tasks
@pivotaljohn pivotaljohn merged commit 1c80040 into develop Sep 13, 2022
@pivotaljohn pivotaljohn deleted the 733-use-named-params-for-validation-when branch September 13, 2022 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow access to contained document for conditional validations
4 participants