|
39 | 39 | "additionalItems": false
|
40 | 40 | },
|
41 | 41 | "inputDataSchema": {
|
42 |
| - "oneOf": [ |
43 |
| - { |
44 |
| - "type": "string", |
45 |
| - "description": "URI of the JSON Schema used to validate the workflow data input", |
46 |
| - "minLength": 1 |
47 |
| - }, |
48 |
| - { |
49 |
| - "type": "object", |
50 |
| - "description": "Workflow data input schema definition", |
51 |
| - "properties": { |
52 |
| - "schema": { |
53 |
| - "oneof": [ |
54 |
| - { |
55 |
| - "type": "string", |
56 |
| - "description": "URI of the JSON Schema used to validate the workflow data input", |
57 |
| - "minLength": 1 |
58 |
| - }, |
59 |
| - { |
60 |
| - "type": "object", |
61 |
| - "description": "The JSON Schema object used to validate the workflow data input", |
62 |
| - "$schema": "http://json-schema.org/draft-07/schema#" |
63 |
| - } |
64 |
| - ] |
65 |
| - }, |
66 |
| - "failOnValidationErrors": { |
67 |
| - "type": "boolean", |
68 |
| - "default": true, |
69 |
| - "description": "Determines if workflow execution should continue if there are validation errors" |
70 |
| - } |
71 |
| - }, |
72 |
| - "additionalProperties": false, |
73 |
| - "required": [ |
74 |
| - "schema" |
75 |
| - ] |
76 |
| - } |
77 |
| - ] |
| 42 | + "$ref": "#/definitions/validationSchema" |
78 | 43 | },
|
79 | 44 | "outputDataSchema": {
|
80 |
| - "oneOf": [ |
81 |
| - { |
82 |
| - "type": "string", |
83 |
| - "description": "URI of the JSON Schema used to validate the workflow data output", |
84 |
| - "minLength": 1 |
85 |
| - }, |
86 |
| - { |
87 |
| - "type": "object", |
88 |
| - "description": "Workflow data output schema definition", |
89 |
| - "properties": { |
90 |
| - "schema": { |
91 |
| - "oneof":[ |
92 |
| - { |
93 |
| - "type": "string", |
94 |
| - "description": "URI of the JSON Schema used to validate the workflow data output", |
95 |
| - "minLength": 1 |
96 |
| - }, |
97 |
| - { |
98 |
| - "type": "object", |
99 |
| - "description": "The JSON Schema object used to validate the workflow data output", |
100 |
| - "$schema": "http://json-schema.org/draft-07/schema#" |
101 |
| - } |
102 |
| - ] |
103 |
| - }, |
104 |
| - "failOnValidationErrors": { |
105 |
| - "type": "boolean", |
106 |
| - "default": true, |
107 |
| - "description": "Determines if an exception should be thrown when the output model does not match the provided schema" |
108 |
| - } |
109 |
| - }, |
110 |
| - "additionalProperties": false, |
111 |
| - "required": [ |
112 |
| - "schema" |
113 |
| - ] |
114 |
| - } |
115 |
| - ] |
| 45 | + "$ref": "#/definitions/validationSchema" |
116 | 46 | },
|
117 | 47 | "secrets": {
|
118 | 48 | "$ref": "secrets.json#/secrets"
|
|
1937 | 1867 | },
|
1938 | 1868 | "additionalProperties": false,
|
1939 | 1869 | "required": []
|
| 1870 | + }, |
| 1871 | + "validationSchema" : { |
| 1872 | + "oneOf": [ |
| 1873 | + { |
| 1874 | + "type": "string", |
| 1875 | + "description": "URI of the JSON Schema used to validate the workflow", |
| 1876 | + "minLength": 1 |
| 1877 | + }, |
| 1878 | + { |
| 1879 | + "type": "object", |
| 1880 | + "description": "Workflow data input schema definition", |
| 1881 | + "properties": { |
| 1882 | + "schema": { |
| 1883 | + "oneof":[ |
| 1884 | + { |
| 1885 | + "type": "string", |
| 1886 | + "description": "URI of the JSON Schema used to validate the workflow", |
| 1887 | + "minLength": 1 |
| 1888 | + }, |
| 1889 | + { |
| 1890 | + "type": "object", |
| 1891 | + "description": "The JSON Schema object used to validate the workflow", |
| 1892 | + "$schema": "http://json-schema.org/draft-07/schema#" |
| 1893 | + } |
| 1894 | + ] |
| 1895 | + }, |
| 1896 | + "failOnValidationErrors": { |
| 1897 | + "type": "boolean", |
| 1898 | + "default": true, |
| 1899 | + "description": "Determines if error should be thrown if there are validation errors" |
| 1900 | + } |
| 1901 | + }, |
| 1902 | + "additionalProperties": false, |
| 1903 | + "required": [ |
| 1904 | + "schema" |
| 1905 | + ] |
| 1906 | + } |
| 1907 | + ] |
1940 | 1908 | }
|
1941 | 1909 | }
|
1942 | 1910 | }
|
0 commit comments