-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WN: P1 #34741
WN: P1 #34741
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mikekistler I copy/pasted your markup from the P1 issue and merged into main. This PR shows the diffs. If you remember, don't add newlines unless you need a new line. The diff is a bit hard to read because I've removed newlines.
I think rich diff is the most productive way to see what has changed.
https://github.com/dotnet/aspnetcore/pull/59480 | ||
https://github.com/dotnet/aspnetcore/pull/60002 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate PR, is there another? I added the PR at the end of the H3
- Instead of a `nullable: true` property, they have a `type` keyword whose value is an array that includes `null` as one of the types. | ||
|
||
With this feature, the default OpenAPI version for generated documents will be `3.1` . You can easily change the version | ||
by explicitly setting the [OpenApiVersion](/dotnet/api/microsoft.aspnetcore.openapi.openapioptions.openapiversion?view=aspnetcore-9.0) property of the [OpenApiOptions](/dotnet/api/microsoft.aspnetcore.openapi.openapioptions?view=aspnetcore-9.0) in the `configureOptions` delegate parameter of [AddOpenApi](/dotnet/api/microsoft.extensions.dependencyinjection.openapiservicecollectionextensions.addopenapi?view=aspnetcore-9.0). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mikekistler can you check these links (click on them in the build)
@@ -77,22 +73,47 @@ In .NET 10 the transformer to do the same task will look like this: | |||
}); | |||
``` | |||
|
|||
Note that these changes will be necessary even if you congfigure the OpenAPI version to 3.0. | |||
The following example shows the changes in diff format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mikekistler should I delete the before/after code and just have the diff
? I prefer the diff
.
Fixes #34723
Fixes #34727
Internal previews