We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
generatingOpenApi
1 parent 5b1695c commit 3806f70Copy full SHA for 3806f70
docs/guide/http/metadata.md
@@ -221,7 +221,7 @@ Chances are good that one of the things preventing a successful startup is that
221
222
Microsoft's recomendation for detecting whether the application is running for the purpose of document generation is to use this code:
223
```cs
224
-var generatingOpenApi = Assembly.GetEntryAssembly()?.GetName().Name != "GetDocument.Insider"
+var generatingOpenApi = Assembly.GetEntryAssembly()?.GetName().Name == "GetDocument.Insider"
225
```
226
227
If this mode is detected, all connections can be disabled like so:
0 commit comments