Fastify Fundamentals: How to Validate API Responses
Validation is an important aspect of API development as it helps you check whether an API is working as expected, whether it returns the right data quickly, and if it meets security requirements.
Developers who use Fastify need to remain aware of how...
blog.platformatic.dev6 min read
Damien Garrido
I would also respond with an HTTP 400 for a failed request validation (and an HTTP 500 for a failed response validation).