SponsorBlockServer
SponsorBlockServer copied to clipboard
Look into setting up validated types
https://github.com/pksilen/validated-types
@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.