diff --git a/doc/compiled.json b/doc/compiled.json index b1e5efe6..91001269 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -511,7 +511,15 @@ "errors": { "type": "array", "items": { - "type": "string" + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } } }, "date": { @@ -528,8 +536,10 @@ "status": "success", "action": "import", "errors": [ - "error message one", - "error message two" + { + "error": "error type", + "message": "can't be blank" + } ], "date": "2015-01-28T12:55:14.000+00:00", "details": { diff --git a/schemas/gitlab_sync_history.yaml b/schemas/gitlab_sync_history.yaml index 3c97473a..285d303c 100644 --- a/schemas/gitlab_sync_history.yaml +++ b/schemas/gitlab_sync_history.yaml @@ -10,7 +10,12 @@ gitlab_sync_history: errors: type: array items: - type: string + type: object + properties: + error: + type: string + message: + type: string date: type: string format: date-time @@ -22,8 +27,8 @@ gitlab_sync_history: status: success action: import errors: - - error message one - - error message two + - error: "error type" + message: "can't be blank" date: '2015-01-28T12:55:14.000+00:00' details: auto_import: false