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
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)
zod
such as in this example