You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1863,13 +1863,16 @@ for example "machine learning", "monitoring", "networking", etc
1863
1863
The `dataInputSchema` and `dataOutputSchema` properties can be used to validate model against a defined JSON Schema.
1864
1864
1865
1865
The `dataInputSchema` property validates the [workflow data input](#Workflow-Data-Input). Validation should be performed before any states are executed. In case of
1866
-
a starting [Event state](#Event-state), it is not used to validate its event payloads.
1866
+
a starting [Event state](#Event-state), it is not used to validate its event payloads. The `failOnValidationErrors` property determines if workflow execution should continue in case of validation errors.
1867
1867
1868
-
The `dataOutputSchema` property validates the [Workflow data output](#workflow-data-output). Validation should be performed when the process is finished.
1868
+
The `dataOutputSchema` property validates the [Workflow data output](#workflow-data-output). Validation should be performed after workflow execution has finished successfully. Successfully means the workflow has completed an end state without errors.
1869
+
The `failOnValidationErrors` property determines what should be done when the workflow output does not match the provided schema.
1870
+
If `failOnValidationErrors` is true, an error should be thrown. If executed within a subprocess, that error might be handled by the parent workflow.
1871
+
If `failOnValidationErrors` is false, it is up to the implementor to warn the user about that fact using any mean, except throwing an error. For example, printing a log.
1869
1872
1870
1873
Both properties can be expressed as object or string type.
1871
1874
1872
-
If using object type, their `schema` property might be an URI, which points to the JSON schema used to validate the workflow data input, or it might be the JSON schema object. Their `failOnValidationErrors` property determines if workflow execution should continue in case of validation errors. The default value of `failOnValidationErrors` is `true`.
1875
+
If using object type, their `schema` property might be an URI, which points to the JSON schema used to validate the workflow data input, or it might be the JSON schema object. `failOnValidationErrors` is optional, default value is `true`.
0 commit comments