Description
The default OpenApi spec version is changing to 3.2 instead of 3.1.
Version
.NET 11 Preview 6
Previous behavior
OpenApiOptions.OpenApiVersion defaulted to OpenApiSpecVersion.OpenApi3_1
New behavior
OpenApiOptions.OpenApiVersion defaults to OpenApiSpecVersion.OpenApi3_2
Type of breaking change
Reason for change
We aim to always use the latest version of the spec by default.
Recommended action
Generally, no action is needed except if users encounter problems, like other toolings that don't support OpenApi 3.2.
If you're impacted, you can always configure the OpenApiOptions to use 3.1:
builder.Services.AddOpenApi(options =>
{
options.OpenApiVersion = OpenApiSpecVersion.OpenApi3_1;
});
Affected APIs
OpenApiOptions.OpenApiVersion
Description
The default OpenApi spec version is changing to 3.2 instead of 3.1.
Version
.NET 11 Preview 6
Previous behavior
OpenApiOptions.OpenApiVersiondefaulted toOpenApiSpecVersion.OpenApi3_1New behavior
OpenApiOptions.OpenApiVersiondefaults toOpenApiSpecVersion.OpenApi3_2Type of breaking change
Reason for change
We aim to always use the latest version of the spec by default.
Recommended action
Generally, no action is needed except if users encounter problems, like other toolings that don't support OpenApi 3.2.
If you're impacted, you can always configure the OpenApiOptions to use 3.1:
Affected APIs
OpenApiOptions.OpenApiVersion