Cannot generate client consuming entity named "Service"
See original GitHub issueDescribe the bug I am currently trying to upgrade from using the SAP Cloud SDK version 1.54.2 for javascript to version 2.10.0 and I am running into an issue. I’m looking to generate an oData client, and everything works as intended in the v1 SDK. However, in v2 there is a file called “service.ts” generated automatically when creating the client which is not there in v1. This causes an issue for me since one of the entities in the service I am consuming is named “Service” (capital S). Thus there is both a “service.ts” and a “Service.ts” generated in the client folder, which causes the generator to crash.
To Reproduce Steps to reproduce the behavior:
- Setup an odata v2 service with an exposed entity named “Service”.
- Fetch the edmx of the service.
- Use the fetched edmx to generate an odata client using the
generate-odata-client
command.
Expected behavior An odata client is generated in the specified output folder.
Used Versions:
- node version: 16.17.1
- npm version: 8:15.0
- SAP Cloud SDK version: 2.10.0
Log file The error message when the generator crashes:
error TS1149: File name '.../service.ts' differs from already included file name '.../Service.ts' only in casing.
Impact / Priority Upgrading to version 2 is quite important since v1 is no longer being supported.
Affected development phase: Development
Impact: Impaired
Timeline: Ideally end of week, latest next week.
Additional context I posted a question on the sap answers.com forums here.
Image of the files being generated in the client folder:
Any help would be much appreciated!
Best regards, Jibbril
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (3 by maintainers)
Hello @jjtang1985,
I checked out the canary version and it seems to be working now. Looking forward to the stable version, thanks a lot!
Best Regards, Jibbril
Hello @jjtang1985,
I checked out the canary version and it seems to be working now. Looking forward to the stable version, thanks a lot!
Best Regards, Jibbril