cap-js / attachments

The @cap-js/attachments package is a CDS plugin that provides out-of-the box asset storage and handling by using an aspect Attachments. It also provides a CAP-level, easy to use integration of the SAP Object Store.
Apache License 2.0
11 stars 4 forks source link

[Version: 1.1.6] Aspect with composition #100

Open WAVIFICATION opened 2 weeks ago

WAVIFICATION commented 2 weeks ago

Describe the bug If the schema contains an aspect with composition, @cap-js/attachments crashes.

To Reproduce Steps to reproduce the behavior: Add the following to a sap cap project

using {Attachments} from '@cap-js/attachments';

service SampleService {
  entity element: common.Attribute {
    key ID : String;
    title : String;
  }
}

aspect common.Attribute {
    to_attributes : Composition of many AttributeTemplate;
}
aspect AttributeTemplate {
    text : String;
}

Expected behavior Should not crash

Screenshots image

Customer Info Company: Gravity-IT Pty Ltd.

RamIndia commented 5 days ago

Will look into it

WAVIFICATION commented 5 days ago

Thanks!!