Skip to content

Non-compliant JSON serialization of T and Q message bodies. #12

Description

@ts5746

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependencyA dependecy need review or is insecure, missing, not maintained, not compatible, etc.interoperabilityImpacts interoperability and backwards compatibility

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions