You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: