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.
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;
}
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
Expected behavior Should not crash
Screenshots
Customer Info Company: Gravity-IT Pty Ltd.