elabapi-python icon indicating copy to clipboard operation
elabapi-python copied to clipboard

metadata de-serialization fails

Open Flexi23 opened this issue 5 months ago • 11 comments

The latest release version (5.2.3) of the Python API does not properly load project's metadata.

This seems directly related to an issue that I ran into a month ago: https://github.com/elabftw/elabftw/issues/5721 (The openapi specification of the metadata field type is inconsistent with the actually provided string value.)

In C# code, I got some hard exceptions and experiments could not get loaded at all, but the Python code just goes over the error and returns None values in the metadata properties where the API actually provides the expected value as string but not as schema-specified objects.

Flexi23 avatar Jul 08 '25 11:07 Flexi23