title: Should I validate API response on the client?
body: <p>Let's say I have an application which uses RESTFUL API. For example: I'm sending requests to the endpoint: "/products" and I'm receiving some response in the JSON format. Then, I'm using that data in my SPA application.</p>
  
  <p>After sometime response's shape has been changed. I was not informed about that fact. As a result, my SPA application crashed. After change, some of the properties that I was using in my application were missing in the API response. I can prevent such a situation, when I would validate every response in my SPA application and put some placeholder value when it's missing in the response. But that may cause some performance issues.</p>
  
  <p>Anyway, is a good practice to put API response validation on the client side? </p>