basyx-python-sdk
basyx-python-sdk copied to clipboard
adapter: Allow optional contentType in Blob and File
Currently, the JSON and XMOL deserializiers raise an error when parsing Blob or File submodels that do not include a contentType
The contentType attribute has a cardinality of 0..1 for both classes and should therefore be optional. The implementation now aligns with this specification and defaults to None if the field is absent in the data.