[Bug]: Breaking change in 6.6.1; It now requires you to have the Regex
Route Constraint even if you don't use it
#2951
Labels
Regex
Route Constraint even if you don't use it
#2951
Describe the bug
In 6.5.0 and prior you could use
WebApplication.CreateSlimBuilder
(which, among other things, doesn't add theRegex
Route constraint due to it increasing the file size of the app needlessly), but after upgrading to 6.6.* (Tested with 6.6.1 and 6.6.2) this will throw an exception.Expected behavior
SwashBuckle should not require
RegexRouteConstraint
to exist in order to work.Actual behavior
SwashBuckle uses the
Regex
Route constraint despite it not existing, and therefore the app no longer starts.Steps to reproduce
https://github.com/KennethHoff/Repros/blob/master/SwashbuckleRegexException/WebApplication1/Program.cs
Exception(s) (if any)
Swashbuckle.AspNetCore version
6.6.1, 6.6.2
.NET Version
8.0.302
Anything else?
No response
The text was updated successfully, but these errors were encountered: