---
title: "Discussion on \"Generate OpenAPI from Express and NestJS code without writing annotations by hand\" | Hashnode"
description: "Discussion on \"Generate OpenAPI from Express and NestJS code without writing annotations by hand\". Express has no built-in schema layer and NestJS Swagger decorators drift the moment a DTO changes. A deterministic scanner can prove routes from the real framework instance and recover schemas from TypeScript types, leaving explicit, reviewable gaps instead of guesses."
url: "https://hashnode.com/posts/generate-openapi-from-express-nestjs-code/6aca07ed6c2d4303c9d9f998"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Generate OpenAPI from Express and NestJS code without writing annotations by hand](https://blogs.powerduck.com/generate-openapi-from-express-nestjs-code?utm_source=hashnode&utm_medium=feed)

Express has no built-in schema layer and NestJS Swagger decorators drift the moment a DTO changes. A deterministic scanner can prove routes from the real framework instance and recover schemas from TypeScript types, leaving explicit, reviewable gaps instead of guesses.

Oct 6 · 6 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#node](https://hashnode.com/tag/node)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#express](https://hashnode.com/tag/express)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
