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

server: `ProtocolInformation`'s `securityAttributes` is missed in serialization

Open hpoeche opened this issue 2 months ago • 0 comments

Issue

The API object spec v3.1.2 defines for ProtocolInfromation an attribute securityAttributes.

The ProtocolInformation class in server/app/model/endpoint.py defines this attribute correctly but the serialization through ServerAASToJsonEncoder misses this attribute. The serialization should be extended to include all data from the Python object.

Tests

When this issue is cleared, the TODOs of server/test/adapter/test_jsonization.py in TestRegistryObjectSerialization._assert_example_protocol() should be resolved in order to test correct serialization of the securityAttributes.

hpoeche avatar Sep 18 '26 10:09 hpoeche