SponsorBlockServer icon indicating copy to clipboard operation
SponsorBlockServer copied to clipboard

Look into setting up validated types

Open ajayyy opened this issue 3 years ago • 1 comments

https://github.com/pksilen/validated-types

ajayyy avatar Sep 16 '21 00:09 ajayyy

@ajayyy would you be open to the idea of:

  • Moving to graphql: it's strongly typed, so all the requests are type-checked before reaching the business logic. Removing the need for overcomplicating logic at runtime, Migration to Apollo could be done. Since the APIs are self-documenting, it also reduces need for publishing api-specs.
  • Or, considering hapi: Hapi introduces schemas for type validation built over their own server layer. It can generate api-specs using plugins.

whizzzkid avatar Oct 22 '21 06:10 whizzzkid