You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow the specification recommendation for thebodyproperty: to be fully compatible with DIDComm v2.0. It’s recommended always to have this attribute when sending a message, but allow the attribute not to exist when receiving.
Alight the internal properties of the body between the cloud agent and edge agents for each DIDCommV2 protocol and each message.
In the current implementation (Identus 2.14+), the body property of the messages is not optional.
It caused the inconsistencies and compatibility issues between the agents (cloud and edge)
An example of the issue is the body property in the issue-credential record.
In the cloud agent 1.40.0 the body was
formats property was absent at all, but the edge agent TS tries to parse it as well
After refactoring the cloud-agent (circle json library was replaced with zio-json in this and this commits)
After cloud-agent 1.40.0, the body property became empty. No information is transmitted from the cloud to the edge agent:
{
body: {}
}
At the same time, the body property is optional in the DIDCommV2 specification, and properties goal_code and replacement_id are optional as well:
body - OPTIONAL. The body attribute contains all the data and structure uniquely defined for the schema associated with the type attribute. If present, it MUST be a JSON object that conforms to [RFC 7159](https://datatracker.ietf.org/doc/html/rfc7159).
So, the cloud and edge agent must treat the body property according to the spec.
The text was updated successfully, but these errors were encountered:
UPDATE:
body
property: to be fully compatible with DIDComm v2.0. It’s recommended always to have this attribute when sending a message, but allow the attribute not to exist when receiving.body
between the cloud agent and edge agents for each DIDCommV2 protocol and each message.In the current implementation (Identus 2.14+), the
body
property of the messages is not optional.It caused the inconsistencies and compatibility issues between the agents (cloud and edge)
An example of the issue is the
body
property in theissue-credential
record.In the cloud agent 1.40.0 the
body
wasformats
property was absent at all, but the edge agent TS tries to parse it as wellAfter refactoring the cloud-agent (circle json library was replaced with zio-json in this and this commits)
After cloud-agent 1.40.0, the
body
property became empty. No information is transmitted from the cloud to the edge agent:At the same time, the
body
property is optional in the DIDCommV2 specification, and propertiesgoal_code
andreplacement_id
are optional as well:So, the cloud and edge agent must treat the
body
property according to the spec.The text was updated successfully, but these errors were encountered: