outputDataSchema addition#696
Conversation
9db3eaf to
4d7d96b
Compare
|
Missing update to the schema , see https://github.com/serverlessworkflow/specification/blob/main/schema/workflow.json#L41 Would add that data output schema is done only on wf exec success, not on failure / timeout. Missing entry in roadmap (any pr that adds/removes functionality in spec repo needs an entry in roadmap) Would also search older issues / discussions as to why this was previously removed. We had both input and output schemas support i believe in 0.5/6 but then it was decided to be removed, now seems we want to add it back in |
|
There is also question on what happens on failure to validate subflow result as this can be defined in the subflow workflow definition, so this is tied to the error handling still WIP pr. Imo they should be committed at the same time if we decided to go w/ this. I think there is also little no no examples / explanation as to what happens if this output validation fails as to what should happen with the wf exec, can exec recover from this failure via compensation? Can it be "caught" in last workflow state error handling? Many things to look at imo |
|
related to #673, please do not merge one without the other |
|
@tsurdilo I opened this PR because reading @cdavernas I believe this feature was accepted. |
|
Yeah definitely lets add it, just would be nice to update the little things mentioned. Ty!! |
|
@tsurdilo Sure, Ill do, thanks |
f1fdcbe to
0b01c29
Compare
|
@tsurdilo I tried to reflect your concerns into the text. |
7dacf56 to
f313ef6
Compare
|
@tsurdilo can you please take a final look so we can merge it? Thank you! |
|
@tsurdilo Can you please review requested changes? |
|
Linked to #705 |
|
@tsurdilo can you please take a final look so we can merge it? Thank you! |
|
If its please possible to change the naming convention: back to dataInputSchema, dataOutputSchema then +1 from me :) I think input/outputDataSchema reads weird, what is a "DataSchema"? |
|
left couple of small change requests for the docs part hope thats ok |
Signed-off-by: Francisco Javier Tirado Sarti <ftirados@redhat.com>
@tsurdilo If I recalled correctly this was a comment from @cdavernas , I think the change is to reflect that both data schemas are the same, acting as input or output |
|
I see, i think both says they are the same, they are both schemas one defines data input and the other data output of the workflow exec |
|
@tsurdilo @cdavernas @fjtirado I'd rather stay with |
Works for me either way! I guess it's just a matter of point of view/personal prefs anyways |
|
@cdavernas I agree. Either works for me too if we can move forward! |
|
@tsurdilo Any further request? |
|
@fjtirado hi, no new requests :) Just same one to use dataInputSchema/dataOutputSchema please if possible. Also left a small comment asking for update/correction in readme.md. Thanks. |
Signed-off-by: Francisco Javier Tirado Sarti <ftirados@redhat.com>
|
@cdavernas any other comments? |
|
@ricardozanin Nope, looking great to me! Thanks @fjtirado |
This adds possibility of validating workflow output in a similar way that is already done for workflow input
See issue #611
Signed-off-by: Francisco Javier Tirado Sarti ftirados@redhat.com
Many thanks for submitting your Pull Request ❤️!
Please specify parts of this PR update:
Discussion or Issue link:
What this PR does / why we need it:
Special notes for reviewers:
Additional information: