You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @musicEnfanthen , thank you for the report. We fixed it in dsp-tools version 1.6.1 which has just been released. Both projects and groups are optional inside a user. I updated the documentation and the code, so that no error message appears if you leave one (or both) out. I hereby close this issue.
According to the
ontology.json
the propertiesgroups
andprojects
are not required within a User object in the JSON data model: https://github.com/dasch-swiss/dsp-tools/blob/main/knora/dsplib/schemas/ontology.json#L127However, the docs say, that "A user must be member of at least one project.": https://dasch-swiss.github.io/dsp-tools/dsp-tools-create/#users
Additionally, the
onto_create_ontology.py
assumes that there is a user.group and a user.projects even if a user is given without these optional properties: https://github.com/dasch-swiss/dsp-tools/blob/main/knora/dsplib/utils/onto_create_ontology.py#L161 and https://github.com/dasch-swiss/dsp-tools/blob/main/knora/dsplib/utils/onto_create_ontology.py#L188There should be a check first if the optional properties exist, like:
if user["groups"] is not None:
The text was updated successfully, but these errors were encountered: