aiidateam / aiida-restapi

AiiDA Web API for data queries and workflow management.
https://aiida-restapi.readthedocs.io
MIT License
9 stars 7 forks source link

POST `/processes`: Fix deserialization of nested inputs #43

Closed sphuber closed 1 year ago

sphuber commented 1 year ago

Fixes #42

The function that deserialized the input dictionary, meaning converting the UUID of any key that ends with .uuid into the corresponding node by loading it from the database, was not recursing into any nested dictionaries. This means that the endpoint was broken for processes with nested input namespaces. This is fixed by making the deserialization function recursive.