-
Notifications
You must be signed in to change notification settings - Fork 165
outputDataSchema addition #696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes requested according to comments on this pr
@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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider #705 before merging, as requested change might be included in this PR as well.
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 <[email protected]>
@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 <[email protected]>
@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 [email protected]
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: