bcgov / aries-oca-bundles

aries-oca-bundles
Apache License 2.0
8 stars 20 forks source link

Update the script to navigate under OCABundles and find all bundles #99

Closed swcurran closed 8 months ago

swcurran commented 9 months ago

Currently, the ./scripts/gen_ocabundlesjson.sh script looks specifically for Bundles exactly three levels below the OCABundles folder (e.g. in folders such as aries-oca-bundles/OCABundles/schema/bcgov-digital-trust/mines-act-permit-1_1_1).

Please update the script to scan the OCABundles folder and for every folder, regardless of depth if there is an OCABundle.json and a README.md file, process the two files to add their information to the root folder JSON files (ocabundles.json and ocabundleslist.json).

If the OCABundle.json file exists, but the README.md does not, suggest printing a warning message to standard out, and not processing the file (since there will be no identifiers for the JSON files).

In doing this, suggest looking for other issues with this script to work as well.

swcurran commented 8 months ago

Fixed in #102