And if the whole response changes? Then everything fucked up anyway, because old app versions can’t be fixed. That’s why we have v1/v2/etc endpoints.
Exactly; the problem with "i added domain on the client (which is the same as the API)" is that you're stuck with the v1 response forever, and you're trying to map the v5 response to the v1 copy.
To be fair, if you are using local persistence, you should never re-use the API responses as DB tables; that always causes trouble.
View all comments
Show parent comment
1
u/Zhuinden DDD: Deprecation-Driven Development Nov 26 '25
Exactly; the problem with "i added domain on the client (which is the same as the API)" is that you're stuck with the v1 response forever, and you're trying to map the v5 response to the v1 copy.
To be fair, if you are using local persistence, you should never re-use the API responses as DB tables; that always causes trouble.