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
{{ message }}
This repository was archived by the owner on Aug 5, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: source/v1/index.html.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,18 +144,46 @@ To Log in and try it out hit the "Try out" button.
144
144
"type": "ValidationException",
145
145
"message": "Input data failed to pass validation",
146
146
"validation_errors": {
147
-
"attribute": "validation error for the attribute"
147
+
"attribute": [
148
+
"validation error for the attribute"
149
+
]
148
150
}
149
151
}
150
152
}
151
153
```
152
154
155
+
> For Error Responses With JSON Schema Errors (Current only used when creating a Job Revision)
156
+
157
+
```json
158
+
{
159
+
"success": false,
160
+
"error": {
161
+
"type": "ValidationException",
162
+
"message": "Input data failed to pass validation",
163
+
"validation_errors": {
164
+
"attribute": [
165
+
"validation error for the attribute"
166
+
]
167
+
},
168
+
"schema_errors": [
169
+
{
170
+
"property": "data.meta",
171
+
"pointer": "/data/meta",
172
+
"message": "The propery meta is required",
173
+
"constraint": "required",
174
+
"context": 1
175
+
}
176
+
]
177
+
}
178
+
}
179
+
```
180
+
153
181
All JSON responses from the API is wrapped in a base object.
154
182
155
183
Be sure to include an `Accept: application/json` header, otherwise errors like `401`, `403` & `404` will either return HTML or redirect you to the login page.
156
184
157
185
<asideclass="warning">
158
-
The current version (1.4.2) returns `validation_errors` as an array of strings, this behavior will change the one described on the right in the next version 1.4.3. (no release ETA)
186
+
The current version (1.4.2) returns `validation_errors` as an array of strings, this behavior will change the one described on the right in the next version 1.4.3. (there is currently no release ETA). The new behavior is available on beta.
0 commit comments