-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endpoints with difference only in return types are resulting in error for C# generator #4448
Comments
Hi @derigel23 |
Hi @baywet |
The error here looks to be caused by paths in the descriptions that end up having conflicting request builders. The following paths end up being resolved to the same request builder by kiota with the name This ends up adding multiple executors to the same class.
The The culprit looks to be
whose Regex doesn't seem to cater for such a case.
|
Authored #4517 to resolve. |
I have an OpenAPI specification for TeamCity.
For example, here https://teamcity.jetbrains.com/guestAuth/app/rest/swagger.json
It compiles with error.
WithPathRequestBuilder.cs(60, 40): [CS0111] Type 'WithPathRequestBuilder' already defines a member called 'GetAsync' with the same parameter types
.Generated C# code is not valid:
C# can't have overloads with difference only in return type,
The text was updated successfully, but these errors were encountered: