Skip to content

Conversation

timdeschryver and others added 8 commits January 22, 2025 19:43
This topic is up to date, changed the ms.date to indicate that is so.
#34541)

* 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.

* Conditionally map all calls to OpenApi in development environment

* Combined MapOpenAPI and MapScalar in same env condition

Line 501, moved app.MapOpenAPI() to same environment condition block for app.MapScalarApiReference()

* Updated code highlight

---------

Co-authored-by: Wade Pickett <[email protected]>
Update examples in anti-request-forgery documentation to use a consistent domain format
fix role access descriptions in authorization documentation
@Rick-Anderson Rick-Anderson merged commit b3331cc into live Jan 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants