Swashbuckle.AspNetCore icon indicating copy to clipboard operation
Swashbuckle.AspNetCore copied to clipboard

[Bug]: path template parameter is not populated

Open igor-tatarnikov-idt opened this issue 7 months ago • 2 comments

Describe the bug

Original bug created in Swagger UI - https://github.com/swagger-api/swagger-ui/issues/10078

Having an /api/hello/name={name} API method declared, I see Swagger UI with required name input. But the actual value I specify is not replaced in the path template and API receives "name" parameter with "{name}" value.

image

Expected behavior

Path template parameters get populated

Actual behavior

Path template parameters are not populated

Steps to reproduce

repro-swagger-issue.zip

Exception(s) (if any)

No response

Swashbuckle.AspNetCore version

v6.6.1+

.NET Version

8

Anything else?

I can see that v6.6.1 originally referenced Swagger UI 5.17.1 - based on this PR. The later version bumps were made by dependabot - https://github.com/martincostello/Swashbuckle.AspNetCore/commits/master/src/Swashbuckle.AspNetCore.SwaggerUI/package.json

Does it make sense to freeze Swagger UI version at the v5.17.6 which seems to be the latest reliable until Swagger UI issue is fixed? - Details - https://github.com/swagger-api/swagger-ui/issues/10078

igor-tatarnikov-idt avatar Jul 11 '24 13:07 igor-tatarnikov-idt