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

Error handling for EntityJson parsing #297

Closed symphony-youri closed 3 years ago

symphony-youri commented 3 years ago

If a string (i.e valid JSON) is provided as data (invalid EntityJSON) a ClassCastException was raised. This is now handled as an InvalidInputException with a better error message.

symphony-youri commented 3 years ago

Actually we could instead support escaped JSON as entityJSON content and parse it This way clients of the Agent (i.e BDKs) could send data serialized content or directly JSON strings