Skip to content

Upgrading Swashbuckle.AspNetCore.SwaggerGen 7 to 8

Review needed7.3.2 → 8.1.4Deprecated2Changed8Fixed4Other23

Review neededUpgrade verdict

2 deprecations.

  • The SerializeAsV2 setting is being retired; use the new OpenApiVersion setting instead.
  • The command-line tool's --serializeasv2 flag is being retired; use --openapiversion "2.0" instead.
2 items need code or config changes

Target frameworks requirement changed in 8.0.0: .NETStandard2.0, net6.0, net8.0, net9.0 → .NETStandard2.0, net8.0, net9.0.

Nothing in this upgrade needs a code or configuration change.

Deprecated2
Deprecates the SerializeAsV2 property by marking it as [Obsolete] in preparation for OpenAPI 3.1 support.
SerializeAsV2OpenApiVersionMicrosoft.OpenApi.OpenApiSpecVersion.OpenApi2_0Microsoft.OpenApi.OpenApiSpecVersion.OpenApi3_0
Deprecates the --serializeasv2 option of the Swashbuckle.AspNetCore.Cli tool and logs a warning to the console.
--serializeasv2--openapiversion