OpenAPI document names are case-sensitive in urls #59175
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-openapi
Is there an existing issue for this?
Describe the bug
I included several different openapi documents via .AddOpenApi("myDoc"). The document name contains upper- and lowercase letters. Later on I want to retrieve my document via /openapi/mydoc.json but I get a 404. After looking into it I found out that this should come from the fact that we're using keyed services:
Keyed services seem to be case sensitive. I can resolve this issue by lowercasing everything but this is counter-intuitive for me because the rest of aspnetcore does not use case sensitive routing AFAIK.
Expected Behavior
I expect the url for the openapi documents to be case insensitive, so I can receive my document regardless of the casing I use.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
9.0.100
Anything else?
No response
The text was updated successfully, but these errors were encountered: