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

Enrich the hours validation experience #132

Merged
merged 1 commit into from
Oct 30, 2018
Merged

Conversation

craiglittle
Copy link
Collaborator

Previously, the validation logic operated on the raw configuration, which provides many avenues for invalid configuration to slip through the cracks unless a litany of cases is tested.

By now having the validation logic operate on the instantiated configuration object, instead of the underlying raw data, we're able to catch many more cases of bad configuration with less code that, at the same time, is more expressive.

Closes #130.

Copy link

@alex-stone alex-stone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Previously, the validation logic operated on the raw configuration,
which provides many avenues for invalid configuration to slip through
the cracks unless a litany of cases is tested.

By now having the validation logic operate on the instantiated
configuration object, instead of the underlying raw data, we're able to
catch many more cases of bad configuration with less code that, at the
same time, is more expressive.

Closes #130.
@craiglittle craiglittle merged commit e61ced1 into master Oct 30, 2018
@craiglittle craiglittle deleted the craig/validation-error branch October 30, 2018 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants