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.
Currently, the
./scripts/gen_ocabundlesjson.sh
script looks specifically for Bundles exactly three levels below the OCABundles folder (e.g. in folders such asaries-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 aREADME.md
file, process the two files to add their information to the root folder JSON files (ocabundles.json
andocabundleslist.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.