SalesforceCommerceCloud / commerce-sdk

https://salesforcecommercecloud.github.io/commerce-sdk/
BSD 3-Clause "New" or "Revised" License
149 stars 48 forks source link

Allow missing CCDC ID for staging APIs #339

Closed wjhsf closed 3 years ago

wjhsf commented 3 years ago

Unpublished APIs in staging don't have CCDC IDs because they are unpublished. Currently, not having a CCDC causes building the SDK to fail. As a consequence, we manually remove unpublished staging APIs every time we release. This is tedious. This PR makes adds a parameter to the root API metadata such that production APIs break with missing CCDC IDs, but staging APIs do not. This will save lots of time during releases and allow us to catch errors in staging APIs before they are published.

Also alphabetized the API lists in config.ts because why weren't they before?!