Closed chandraarora closed 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?
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:
convert description: > Convert PDF to office (word, excel, powerpoint), this feature offers two type of qualities namely draft and high. Draft quality prices are per document and high qulaity are on per page. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/convertFromPdf'
responses: '200': description: Converted office doc content: application/json: schema: $ref: '#/components/schemas/convertFromPdfRes'
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: @.**@.>>
Authored https://github.com/microsoft/kiota/pull/5509 to resolve.
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
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