JSn1nj4 / ElliotDerhay.com

My personal website project.
MIT License
0 stars 1 forks source link

Implement validator factories #54

Closed JSn1nj4 closed 1 year ago

JSn1nj4 commented 2 years ago

Only a few validator factories will be implement initially. These will be related to each DTO class and supporting factory classes used for testing.

Starting list

Notes

JSn1nj4 commented 2 years ago

I'll have to revisit the validator factories and their tests. While throwing the last one together, I realized it was useless where I was trying to use it because it assumed the incoming data was already structured the way the GithubEventDTO was going to transform it.

The validator factories need to generate a validator that validates data returned directly from each endpoint matches the expected structure.

As an aside, this will help generate more meaningful notifications in Sentry.

JSn1nj4 commented 1 year ago

Need to revisit this, maybe another way.