From a786e8d8327a596d6495127de0a8351a9f0b6f1f Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Fri, 20 Dec 2024 12:05:41 +0100 Subject: [PATCH 1/2] 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 932ead6c5..7764bd3fe 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 e50a124d0..6dd82ce00 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" From 1ff80b3993bf337d45ed07b6caa5679ac8bc82ad Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Fri, 20 Dec 2024 12:11:42 +0100 Subject: [PATCH 2/2] add section in navigation for events --- doc/compiled.json | 3 +++ main.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/compiled.json b/doc/compiled.json index 7764bd3fe..730c9c44e 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -151,6 +151,9 @@ "name": "Repo Syncs", "description": "The Repo Syncs API allows you to synchronize your Phrase projects with your code repositories.\nYou can import translations from your repository to Phrase and export translations from Phrase to your repository.\n" }, + { + "name": "Repo Sync Events" + }, { "name": "Reports" }, diff --git a/main.yaml b/main.yaml index 5f6ccc5f3..d8277cf14 100644 --- a/main.yaml +++ b/main.yaml @@ -199,6 +199,7 @@ tags: description: | The Repo Syncs API allows you to synchronize your Phrase projects with your code repositories. You can import translations from your repository to Phrase and export translations from Phrase to your repository. + - name: Repo Sync Events - name: Reports - name: Search - name: Screenshot Markers