cancel
Showing results for 
Search instead for 
Did you mean: 

CAP open type support on oData node.js

JuanjoGersol
Explorer
0 Kudos

Hi Experts,

According to the documentation here it is supposed the usage of the open types is allowed on oData service on CAP application.

I'm implementing a project where I'm serving a SAP ariba open API data as oData, as the result structure contains hundred of fields I used the @open annotation to serve it dynamically:

JuanjoGersol_0-1710759016831.png

I can see in the metadata of the EDMX the entity contains the OpenType property:JuanjoGersol_1-1710759054512.png

On service level I'm returning the following payload:

JuanjoGersol_2-1710759097683.png

But I'm getting just the static properties:

JuanjoGersol_0-1710759442528.png

 

So, do you know if the functionality is supported?

This is the CDS version I'm using:

JuanjoGersol_4-1710759174687.png

Thank you!

 

View Entire Topic
Dinu
Contributor
0 Kudos

This is not supported by nodejs runtime yet, try Java runtime. 

If you scroll down a little bit in the documentation, there is a warning:

WARNING

The full support of Open Types (@open) in OData is currently available for the Java Runtime only. The Node.js runtime supports the feature only for the REST Adapter.

JuanjoGersol
Explorer
0 Kudos

Thank you, I missed that one. Is there any alternative that avoid me to define every possible field in the type?