mesg-foundation / engine

Build apps or autonomous workflows with reusable, shareable integrations connecting any service, app, blockchain or decentralized network.
https://mesg.com/
Apache License 2.0
130 stars 13 forks source link

Should return error when service emit an invalid event or result of task #194

Closed NicolasMahe closed 6 years ago

NicolasMahe commented 6 years ago

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

antho1404 commented 6 years ago

the part to validate when the payload have too much data is moved in this issue https://github.com/mesg-foundation/core/issues/294