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

add response types along with the shared zod schemas #1351

Closed
5 tasks done
beniaminmunteanu opened this issue May 13, 2024 · 0 comments
Closed
5 tasks done

add response types along with the shared zod schemas #1351

beniaminmunteanu opened this issue May 13, 2024 · 0 comments
Assignees

Comments

@beniaminmunteanu
Copy link
Member

beniaminmunteanu commented May 13, 2024

The testnet frontends would benefit from having the response types of the backend APIs in a shared directory, so that they can be referenced instead of duplicated.

So the same way that we are sharing the zod schemas for request validations, we should also share the response types.

Suggestion:
Maybe write them as interfaces, and have the backend Models also implement that interface

Controllers:

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

No branches or pull requests

2 participants