Skip to content

Commit 3806f70

Browse files
Damix48jeremydmiller
authored andcommitted
fix the evaluation of generatingOpenApi
1 parent 5b1695c commit 3806f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/http/metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Chances are good that one of the things preventing a successful startup is that
221221

222222
Microsoft's recomendation for detecting whether the application is running for the purpose of document generation is to use this code:
223223
```cs
224-
var generatingOpenApi = Assembly.GetEntryAssembly()?.GetName().Name != "GetDocument.Insider"
224+
var generatingOpenApi = Assembly.GetEntryAssembly()?.GetName().Name == "GetDocument.Insider"
225225
```
226226

227227
If this mode is detected, all connections can be disabled like so:

0 commit comments

Comments
 (0)