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

Dumb down ValidationError #402

Merged
merged 2 commits into from
Mar 24, 2022
Merged

Dumb down ValidationError #402

merged 2 commits into from
Mar 24, 2022

Conversation

hannobraun
Copy link
Owner

I'm currently building some infrastructure to clean up tests, on my way towards addressing #105. I ran into a limitation with ValidationError, which this solves.

The previous structure was pretty neat, while this is decidedly not.
What this new solution has going for it, is that it's dumb.

This is good, because `ValidationError` will soon need to be able to
represent validation errors from multiple sources, and making the
previous smart `ValidationError` event smarter, soon enough runs into
limitations of Rust's type system.

This new dumb solution, on the other hand, effortlessly scales to the
new requirements.
@hannobraun hannobraun enabled auto-merge March 24, 2022 14:35
@hannobraun hannobraun merged commit f59df34 into main Mar 24, 2022
@hannobraun hannobraun deleted the validation branch March 24, 2022 14:50
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.

1 participant