---
title: "Discussion on \"I Scanned Dozens of Real Backends into OpenAPI. Here's Why the Naive Approaches Fail.\" | Hashnode"
description: "Discussion on \"I Scanned Dozens of Real Backends into OpenAPI. Here's Why the Naive Approaches Fail.\". Hand-writing OpenAPI drifts, regex mistakes cache.get() for a route, and asking an LLM to summarize a repo hallucinates endpoints. Here is the deterministic way to scan real codebases into OpenAPI 3.2"
url: "https://hashnode.com/posts/scan-code-into-openapi-without-hallucinating/6ac9fdcacf0296b8c9d915c8"
---

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

Discussion

# [I Scanned Dozens of Real Backends into OpenAPI. Here's Why the Naive Approaches Fail.](https://blogs.powerduck.com/scan-code-into-openapi-without-hallucinating?utm_source=hashnode&utm_medium=feed)

Hand-writing OpenAPI drifts, regex mistakes cache.get() for a route, and asking an LLM to summarize a repo hallucinates endpoints. Here is the deterministic way to scan real codebases into OpenAPI 3.2

Oct 9 · 8 min read · blogs.powerduck.com  
Updated Oct 15  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#api](https://hashnode.com/tag/api)
-   [#spec](https://hashnode.com/tag/spec)
-   [#docs](https://hashnode.com/tag/docs)

## Written by

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

@powerduck · hon

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
