Commit d91968b
authored
Move MapOpenApi() Inside the IsDevelopment() block for consistency with templates and other docs
The default template with .NET 9 has MapOpenApi() inside the IsDevelopment block. Many examples on MS Learn also have it inside due to limit information exposure.
Move inside to minimize potential for confusion to devs.1 parent d0e4675 commit d91968b
File tree
1 file changed
+2
-1
lines changed- aspnetcore/fundamentals/openapi/samples/9.x/WebMinOpenApi
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | 282 | | |
284 | 283 | | |
| 284 | + | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| |||
0 commit comments