Asked about Validating at the boundary
What is the benefit of generating a JSON schema from your validation model?
An answer that works
The contract you send to the API and the check you run on the response come from one declaration, so they cannot drift apart. Change the shape once and both follow.
Reading an answer is not being able to give one. The section that teaches this is Validating at the boundary, 6 hours of Typing & validation.
Learn this properly