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

Consider the typebox approach to schema declarations #113

Open
nfroidure opened this issue Jul 20, 2021 · 0 comments
Open

Consider the typebox approach to schema declarations #113

nfroidure opened this issue Jul 20, 2021 · 0 comments

Comments

@nfroidure
Copy link
Owner

nfroidure commented Jul 20, 2021

We could try the following tool instead of generating static types from the JSON Schema : https://github.com/sinclairzx81/typebox

Pros

  • no delay typings (at least on paper). Currently the watch script generate the types by listening to changes. That said, other path exists for this like VSCode plugins.

Cons

  • learning a new lib instead of just knowing the standards (JSONSChema/OpenAPI)
  • probably an overhead (library helpers execution + type inference)
  • the library could limit the norm possibilities ?

@Oupsla feel free to add yours. I'm not sure it would help but let's consider it anyway.

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

No branches or pull requests

1 participant