cap-js / ord

Open Resource Discovery (ORD) is a protocol that allows applications and services to self-describe their exposed resources and capabilities. This plugin enables generation of ORD document for CAP based applications.
Apache License 2.0
3 stars 4 forks source link

Programmatic access #7

Closed muskansethi1 closed 5 months ago

muskansethi1 commented 5 months ago

Adding ORD Programmatic access and required changes.

Programmatic access usage: const csn = await cds.load(*files*) const doc = cds.compile.to.ord(csn)

RoshniNaveenaS commented 5 months ago

Testing: 1) EDMX links are not working but if we we change edmx-v4 to edmx it is working. responseFile = await cds.compile(csn).to["edmx"](options);

Todo: Testing with giving different types of CSN

2) partOfGroups now come as undefined where it is cap Namespace

muskansethi1 commented 5 months ago

Testing:

  1. EDMX links are not working but if we we change edmx-v4 to edmx it is working. responseFile = await cds.compile(csn).to["edmx"](options);
  2. partOfGroups now come as undefined where it is cap Namespace
  1. Not sure exactly why this is happening, didn't make any changes to this part. Any specific reasons we are using edmx-v4 ?
  2. Fixed
RoshniNaveenaS commented 5 months ago

changed from edmx-v4 to edmx