Closed pedrorgirardi closed 4 years ago
I think I agree with these changes, but would like to confirm that with everyone who is doing DEP-based interop that this makes sense before we make any breaking changes.
@billbsing @shark8me @superstructor @AyushVerma2 Please comment from the perspective of your respective implementations.
I don't think DEP 6 should require Agents to return an error code. I think we could require an
error
key which its value is an Object with at least thedescription
key. Sinceerror
is an Object, Agents could potentially add custom keys.Error shouldn't be part of the result
I find it semantically strange that error is in
results
. If there was an error, the Operation didn't produce a "result", so theerror
key should be at the root level and there shouldn't be aresults
key:Rename
results
tooutputs
We even use the word 'outputs' to describe
results
, so why not simply useoutputs
then?Rename
params
toinputs
Same for
params
. Why don't we useinputs
instead?Rename
jobid
tojob-id
We use
operation-id
, so it makes sense to usejob-id
instead ofjobid
.