This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
Allow defining an endpoint with client-side response validation #3
Labels
enhancement
New feature or request
The idea behind this feature is to enable long-running clients to react to changes in the backend schemas. Imagine you have an endpoint that returns
{ version: 1, data: string }
and then while the customer is on your app, the server redeploys and now it returns{ version: 2, result: string }
. You probably want to make a hard-refresh, or at least show an error.The suggested API would be something like:
The text was updated successfully, but these errors were encountered: