finos / messageml-utils

MessageML is a markup language used by the Symphony Agent API for representing messages, including formatting (bold, italic, numbered and unnumbered lists etc.) and entity data representing structured objects.
https://docs.developers.symphony.com
Apache License 2.0
12 stars 28 forks source link

PLAT-11467 Update BiFields to support default value #312

Closed symphony-youness closed 2 years ago

symphony-youness commented 2 years ago

The goal here is to be able to differentiate 3 things. The element name, Bi properties that should be strings and Bi properties that should be integers.

By setting the default value of the element name and Bi properties that should be strings to null we can make that distinction in the agent. Enabling us to create a default payload with 0 for all fields that would have an Integer as a default value and add the others if present.