From a786e8d8327a596d6495127de0a8351a9f0b6f1f Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Fri, 20 Dec 2024 12:05:41 +0100 Subject: [PATCH] fix(API): Repo Sync Event errors field type #STRINGS-1074 --- doc/compiled.json | 13 +++---------- schemas/repo_sync_event.yaml | 8 +++----- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/doc/compiled.json b/doc/compiled.json index 932ead6c..7764bd3f 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -4368,14 +4368,7 @@ "description": "List of error messages, in case of failure", "type": "array", "items": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "object" - } - ] + "type": "string" } } }, @@ -4385,8 +4378,8 @@ "status": "failure", "auto_import": true, "errors": [ - "Error message", - "Error message" + "Error message 1", + "Error message 2" ] } } diff --git a/schemas/repo_sync_event.yaml b/schemas/repo_sync_event.yaml index e50a124d..6dd82ce0 100644 --- a/schemas/repo_sync_event.yaml +++ b/schemas/repo_sync_event.yaml @@ -24,14 +24,12 @@ repo_sync_event: description: List of error messages, in case of failure type: array items: - anyOf: - - type: string - - type: object + type: string example: type: import created_at: '2015-01-28T09:52:53Z' status: failure auto_import: true errors: - - "Error message" - - "Error message" + - "Error message 1" + - "Error message 2"