microsoft / kiota

OpenAPI based HTTP Client code generator
https://aka.ms/kiota/docs
MIT License
2.94k stars 205 forks source link

Same Name for ControllName and action, generated code is false and canot find the post. #5462

Closed chandraarora closed 1 month ago

chandraarora commented 1 month ago

What are you generating using Kiota, clients or plugins?

API Client/SDK

In what context or format are you using Kiota?

Nuget tool

Client library/SDK language

None

Describe the bug

image I have controller convertFromPdf and action is also convertFromPdf and generated code goes back to same method. Please see the screenshot. is there a workaround.

Expected behavior

It should geerate without infinite loop of same methods

How to reproduce

please see screen attached

Open API description file

No response

Kiota Version

1.18.0+5c6b5d0ef23865ba2f9d9f0b9fe4b944cf26b1ec

Latest Kiota version known to work for scenario above?(Not required)

No response

Known Workarounds

No response

Configuration

No response

Debug output

Click to expand log ``` ```

Other information

No response

andrueastman commented 1 month ago

Thanks for raising this @chandraarora

Any chance you are able to share a sample of the openApiDescription used to generate the client to help us understand the expectation here?

chandraarora commented 1 month ago

This is an example

I have .net core api with controller name ConvertFromPdfController and action name is ConvertFromPdf makes path like ConvertFromPdf/ConvertFromPdf and generated code is cycle dependency.

/ConvertFromPdf/convertFromPdf: post: tags:

From: Andrew Omondi @.> Sent: Montag, 30. September 2024 09:56 To: microsoft/kiota @.> Cc: Chandra Arora @.>; Mention @.> Subject: Re: [microsoft/kiota] Same Name for ControllName and action, generated code is false and canot find the post. (Issue #5462)

Thanks for raising this @chandraarorahttps://github.com/chandraarora

Any chance you are able to share a sample of the openApiDescription used to generate the client to help us understand the expectation here?

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/kiota/issues/5462#issuecomment-2382374383, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIRM7FVH2H26VSYBBX7JMLLZZD7YLAVCNFSM6AAAAABOZ6S5D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBSGM3TIMZYGM. You are receiving this because you were mentioned.Message ID: @.**@.>>

andrueastman commented 1 month ago

Authored https://github.com/microsoft/kiota/pull/5509 to resolve.