From 1cb1f650598c68afee6e2cd7c3c4ede1484aba35 Mon Sep 17 00:00:00 2001 From: Matheus Horstmann <11761333+horstmannmat@users.noreply.github.com> Date: Mon, 31 Jul 2023 04:08:56 -0300 Subject: [PATCH] fix(schemas): Fix gitlab_sync type mismatch (#373) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(schemas): Fix gitlab_sync type mismatch Signed-off-by: Matheus Horstmann <> * Update compiled.json --------- Signed-off-by: Matheus Horstmann <> Co-authored-by: Matheus Horstmann <> Co-authored-by: Sönke Behrendt --- doc/compiled.json | 16 +++++++++++++--- schemas/gitlab_sync_history.yaml | 11 ++++++++--- 2 files changed, 21 insertions(+), 6 deletions(-) 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