The core should throw an error when it receives non valid event or result of task from services.
It will prevent developer to send event and result of task that are not defined in the mesg.yml file.
It should also check for variable types, and optional/required as defined in the mesg.yml
[x] validate input data
[x] validate event data
[x] validate result data
[x] add strict verification when the payload doesn't have enough data (compare to the mesg.yml)
[ ] add strict verification when the payload have too much data (compare to the mesg.yml)
[x] only accept correct payload map[string]interface{}
The core should throw an error when it receives non valid event or result of task from services. It will prevent developer to send event and result of task that are not defined in the
mesg.yml
file.It should also check for variable types, and optional/required as defined in the
mesg.yml
map[string]interface{}