in the function datamodels_subject(subject: str) in pysmartdatamodels.py, the code can't work !
in
for item in datamodelsdict:
if "repoName" and "dataModels" in item:
if item["repoName"] == subject:
output = item["dataModels"]
done = True
but the structure of official_list_data_models.json is
"officialList": [
{
"repoName": "dataModel.User",
"repoLink": "https://github.com/smart-data-models/dataModel.User.git",
"dataModels": [
"Activity",
"UserContext"
],
"domains": [
"CrossSector"
]
},
so the test if item["repoName"] == subject: cannot work !!!!
it should be something like: if subject in item["domains"]: to work !