fastify / fastify-response-validation

A simple plugin that enables response validation for Fastify.
MIT License
53 stars 17 forks source link

Response status code validation #97

Closed sceccotti89 closed 1 year ago

sceccotti89 commented 1 year ago

Prerequisites

Issue

I wasn't sure if this is a bug or a feature, but I was wondering if it was possible to validate the response status code against the ones defined in the schema. Too many times I've found myself fixing the schema because the status codes defined there were not reflecting the ones returned by the endpoint's handler.

I've also created a PR for this: https://github.com/fastify/fastify-response-validation/pull/98