Library that provides API for reading and writing annotations in SAP Fiori elements projects.
npm install @sap-ux/fiori-annotation-api 
@sap-ux/fiori-annotation-apiProvides high level design time API for working with OData services in context of SAP Fiori Elements. It uses the same data types for annotations and metadata as SAP Fiori Elements runtime and provides abstraction over service definition languages.
npm install --save @sap-ux/fiori-annotation-apiYarn yarn add @sap-ux/fiori-annotation-api
Pnpm pnpm add @sap-ux/fiori-annotation-api
- Supports local XML data and SAP CAP CDS projects.
- Read service metadata.
- Read service annotations.
- Change annotations.
- Serialize annotations to XML or SAP CAP CDS.
The following features are not supported:
- Using changes with logical and arithmetic operators: Apply, And, Add etc.
test/unit/fiori-service.test.ts.