This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Description
Fastify has optimizations for JSON serialization when schemas for endpoints are available, so we should generate schemas for each endpoint by having the endpoint declare what response kinds are valid, and attaching a schema for the data of each response type to the response type list.
Having these schemas also allows us to generate an OpenAPI specification for the API through another Fastify plugin.