Skip to content

Repository files navigation

Todo

  • 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

Design decisions

Newtypes

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.

  1. The database: The database will have CHECK constraints.
  2. Each scraper(if possible): For example, the open-dart api crate should validate the output which it returns.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages