Hi ,
I used v2 odata adapter to expose some of the entity sets in ODATA v2 . It was working fine but when i added the action with array to the cat-service.cds it is not able to build the json model. Kindly suggest if there is an alternative.
type materials {
MPG : array of {MPG:String(3)};
}
action simulation ( input : array of materials) returns String;
I get an error like this below when I use /v2/catalog/$metadata, I am not sure if i can separate this to a different service as it uses same gen/csn.json.
"msg":"Error: CDS compilation failed\ngen/csn.json:839: Error: \"CatalogService.materials.MPG\": Element must not be an \"array of\" for OData V2\n at transform4odata