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

Create response schemas for API endpoints #308

@ethanwu10

Description

@ethanwu10

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions