Upgrading Swashbuckle.AspNetCore.SwaggerGen 8 to 9
Breaking8.1.4 → 9.0.6Breaking2New1Changed9Fixed8Other14
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- Any older APIs that were already marked obsolete are now gone, so code using them will no longer compile.
- The old command-line flag for choosing OpenAPI v2 output is removed. Use the newer --openapiversion flag instead.
Must act 2 items need code or config changes
Target frameworks requirement changed in 9.0.0: .NETStandard2.0, net8.0, net9.0 → net8.0, net9.0.
What you must change
Breaking2
Removes all public members annotated as [Obsolete] in previous releases.
[Obsolete]Removes the deprecated --serializeasv2 option from Swashbuckle.AspNetCore.Cli, superseded by --openapiversion since 8.0.0.
--serializeasv2--openapiversion