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

Better handling empty inputs + outputs #832

Closed krhubert closed 5 years ago

krhubert commented 5 years ago

mesg.yml


name: test-service

events:
  foo:

tasks:
  foo:
➜  core git:(benchmark/service) ✗ ./dev-cli service validate ./service
⨯ File 'mesg.yml' is not valid. See documentation: https://docs.mesg.com/guide/service/service-file.html
    * Tasks[foo] is a required field
    * Events[foo] is a required field

The information is not clear. Also there was an issue about handle empty data but I can't find it right now so I recreated this one.

krhubert commented 5 years ago
name: test-service
tasks:
  foo:
    outputs:
      success:
        data:
          nil:
            type: String
⨯ File 'mesg.yml' is not valid. See documentation: https://docs.mesg.com/guide/service/service-file.html
    * Tasks[foo].Outputs[success].Data is a required field