Escaping Item
keywords in request builders also escapes unrelated request builder properties.
#5433
Milestone
Item
keywords in request builders also escapes unrelated request builder properties.
#5433
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Source Build
Client library/SDK language
Csharp
Describe the bug
Related to #4814
The escaping of requestBuilder properties causes the escpaing of unrelated builders such as
DriveItemRequestBuilder
becomingDriveItem_EscapedRequestBuilder
.The check should probably not use endsWith at
kiota/src/Kiota.Builder/KiotaBuilder.cs
Line 637 in 9348dcd
as it causing failing compilation at
microsoftgraph/msgraph-sdk-java#2161 and related PRs in other languages.
Expected behavior
How to reproduce
Run Kiota on latest head of main branch and with latest MS graph metadata.
Open API description file
No response
Kiota Version
main
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
```The text was updated successfully, but these errors were encountered: