---
title: "Discussion on \"Accept the Official Hack: Build-Time OpenAPI Detection in .NET 10 Minimal APIs\" | Hashnode"
description: "Discussion on \"Accept the Official Hack: Build-Time OpenAPI Detection in .NET 10 Minimal APIs\". It is straightforward to configure a minimal API to produce an OpenAPI document at build time. This runs the API during build, requests the OpenAPI document from it, and saves it to disk.\nThe slightly"
url: "https://hashnode.com/posts/accept-the-official-hack-build-time-openapi-detection-in-net-10-minimal-apis/6a1aaed9811cb50b9d89f0e6"
---

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

Discussion

# [Accept the Official Hack: Build-Time OpenAPI Detection in .NET 10 Minimal APIs](https://www.naveedausaf.com/accept-the-official-hack-build-time-openapi-detection-in-net-10-minimal-apis?utm_source=hashnode&utm_medium=feed)

It is straightforward to configure a minimal API to produce an OpenAPI document at build time. This runs the API during build, requests the OpenAPI document from it, and saves it to disk. The slightly

May 30 · 7 min read · naveedausaf.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#api](https://hashnode.com/tag/api)

## Written by

[Naveed Ausaf](https://hashnode.com/@nausaf)

@nausaf

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
