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

split package based on policyLevel #23

Closed s-shreyas-s closed 5 months ago

s-shreyas-s commented 5 months ago

Split package array based on policyLevel value

RoshniNaveenaS commented 5 months ago

Hello @s-shreyas-s , After testing relaized when you change the policyLevel preset like the below example:

( "ord": {
        "policyLevel": "none"
    }

The final ORD doc looks like this :

image

Here the policyLevel is finally updated but the packages are still processed with the default.js policyLevel ( because of this.policyLevel.split). Can you please check this one and correct the same.