Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look into setting up validated types #361

Open
ajayyy opened this issue Sep 16, 2021 · 1 comment
Open

Look into setting up validated types #361

ajayyy opened this issue Sep 16, 2021 · 1 comment
Assignees

Comments

@ajayyy
Copy link
Owner

ajayyy commented Sep 16, 2021

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

@ajayyy ajayyy self-assigned this Sep 16, 2021
@whizzzkid
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants