Use the SAP Cloud SDK for JavaScript / TypeScript to reduce development effort when building applications on SAP Business Technology Platform that communicate with SAP solutions and services such as SAP S/4HANA Cloud, SAP SuccessFactors, and many others.
Describe the bug
Hi, I am trying to generate a client for a service that uses inheritance (has entities with a BaseType).
The client generates typescript files but they won't compile as the inheriting entities don't have key properties.
Expected behavior
The cloud SDK should generate valid typescript code. In this case it should respect entity inheritance and merge all properties and especially the key.
Used Versions:
node version via node -v: 14.15.1
npm version via npm -v: 8.11.0
SAP Cloud SDK version you used as dependency: 2.6.0
Impact / Priority
This is for an internal project only. There is no deadline. I will try to adjust the metadata so that there is no inheritance.
Additional context
Instead of using the MWE above, you can also use SAP's IntegrationContent service at https://api.sap.com/api/IntegrationContent/overview. This is the service that I wasn't able to use because of the bug.
Describe the bug Hi, I am trying to generate a client for a service that uses inheritance (has entities with a
BaseType
). The client generates typescript files but they won't compile as the inheriting entities don't have key properties.To Reproduce Use this MWE.
service-specs/service-mapping.json
:service-specs/test.edmx
:MyType
inherits fromMyBaseType
MyBaseType
has the keyMyType
only adds one non-key propertypackage.json
:Steps to reproduce the behavior:
npm run generate-client
Expected behavior The cloud SDK should generate valid typescript code. In this case it should respect entity inheritance and merge all properties and especially the key.
Used Versions:
node -v
: 14.15.1npm -v
: 8.11.0Impact / Priority
This is for an internal project only. There is no deadline. I will try to adjust the metadata so that there is no inheritance.
Additional context Instead of using the MWE above, you can also use SAP's
IntegrationContent
service at https://api.sap.com/api/IntegrationContent/overview. This is the service that I wasn't able to use because of the bug.