Skip to content

Comments

[FAC-WEB-02] Generate API Types and Zod Schemas from OpenAPI using Kubb#3

Merged
ayacoders merged 5 commits intomainfrom
fac-web-03-integrate-kubb
Feb 25, 2026
Merged

[FAC-WEB-02] Generate API Types and Zod Schemas from OpenAPI using Kubb#3
ayacoders merged 5 commits intomainfrom
fac-web-03-integrate-kubb

Conversation

@ayacoders
Copy link
Contributor

Overview

The OpenAPI schema from the NestJS Swagger endpoint is now treated as the single source of truth. From it, we generate TypeScript types and Zod schemas, eliminating DTO duplication and ensuring frontend validation aligns with backend contracts.

Changes

  • Added Kubb for OpenAPI-based types code generation
  • Generated TypeScript API types from openapi-ts generated schema (must be YAML)
  • Configured output under types/kubb/gen
  • Integrated Prettier formatting hook for generated files

@ayacoders ayacoders merged commit ca3300f into main Feb 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant