- Create macros for defining newtypes
- Upgrade fake to v3
- Finish data_api
- Migrate sqlite db to postgres
- Parsing HTML only works for one bspl. Need to fix the whole logic. Have to decide the data structure first.
- Check if
inspect_errs are necessary
First, I thought of using newtypes for every domain type would ensure a more safe and reliable application.
However, it turned out that I needed so much code to achieve this.
As so, I've decided that I'll just be using primitives instead and will consider the following to be the source of truth in terms of validation.
- The database: The database will have CHECK constraints.
- Each scraper(if possible): For example, the open-dart api crate should validate the output which it returns.