-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description
The Whiteflag Java Library (WFJL) uses a JSON representation for Whiteflag messages that is not compliant with the Whiteflag JSON message schema for T and Q messages. This is because the WFJL currently uses a "flat" key-value-pair structure for the representation of message bodies, both internally as well as for JSON serialization. However, the Whiteflag JSON message schema specifies a different, deeper structure for the JSON representation of T and Q message bodies with sub-objects.
Solution
Specification
The JSON serialisation should be in compliance with the Whiteflag JSON message schema.
Affected component
The org.whiteflagprotocol.java.util.WfJsonMessage class is affected.
Alternatives
Alternatively, the Whiteflag Java Library uses a JSON representation for Whiteflag messages that is not compliant with the Whiteflag JSON message schema. Or, the Whiteflag JSON message schema should be changed.