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

api types + validation? #7

Open
codelastnight opened this issue Jun 27, 2024 · 0 comments
Open

api types + validation? #7

codelastnight opened this issue Jun 27, 2024 · 0 comments
Assignees

Comments

@codelastnight
Copy link
Collaborator

codelastnight commented Jun 27, 2024

when writing and consuming REST apis, its often difficult to know what data is coming through. this can cause bugs and issues (eg changing api on backend and forgetting to update it on the frontend)

  • how can we setup types on api objects so we can share types between different projects?
  • should we setup runtime validation such as zod such as in this example
@codelastnight codelastnight self-assigned this Jun 27, 2024
@codelastnight codelastnight changed the title api validation? api types + validation? Jun 27, 2024
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

1 participant