basyx-python-sdk icon indicating copy to clipboard operation
basyx-python-sdk copied to clipboard

adapter: Allow optional contentType in Blob and File

Open paul-gerber-svg opened this issue 5 months ago • 0 comments

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.

paul-gerber-svg avatar Jun 15 '26 20:06 paul-gerber-svg