From 033be1003fe01b5115de1f8ba2336d32b4862bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mladen=20Jablanovi=C4=87?= Date: Fri, 20 Dec 2024 11:29:51 +0100 Subject: [PATCH] fix(API): Repo Sync schema fixes #STRINGS-1074 (#748) --- .tool-versions | 1 + doc/compiled.json | 26 +++++++++++++------------- paths/repo_sync_events/index.yaml | 6 +++--- paths/repo_sync_events/show.yaml | 4 ++-- paths/repo_syncs/activate.yaml | 2 +- paths/repo_syncs/deactivate.yaml | 2 +- paths/repo_syncs/export.yaml | 2 +- paths/repo_syncs/import.yaml | 2 +- paths/repo_syncs/index.yaml | 2 +- paths/repo_syncs/show.yaml | 2 +- schemas/repo_sync_event.yaml | 4 ++-- 11 files changed, 27 insertions(+), 26 deletions(-) diff --git a/.tool-versions b/.tool-versions index f0816ac4..10ec3d2b 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,4 @@ golang 1.21.9 nodejs 20.11.0 maven 3.9.1 +java temurin-11.0.25+9 diff --git a/doc/compiled.json b/doc/compiled.json index a42ee4f3..932ead6c 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -4337,7 +4337,7 @@ "id": { "type": "string" }, - "event_type": { + "type": { "type": "string", "enum": [ "import", @@ -4380,7 +4380,7 @@ } }, "example": { - "event_type": "import", + "type": "import", "created_at": "2015-01-28T09:52:53Z", "status": "failure", "auto_import": true, @@ -21739,7 +21739,7 @@ }, { "lang": "CLI v2", - "source": "phrase repo_sync list \\\n--account_id abcd1234 \\\n--access_token " + "source": "phrase repo_syncs list \\\n--account_id abcd1234 \\\n--access_token " } ], "x-cli-version": "2.24" @@ -21803,7 +21803,7 @@ }, { "lang": "CLI v2", - "source": "phrase repo_sync show \\\n--id \\\n--account_id abcd1234 \\\n--access_token " + "source": "phrase repo_syncs show \\\n--id \\\n--account_id abcd1234 \\\n--access_token " } ], "x-cli-version": "2.24" @@ -21867,7 +21867,7 @@ }, { "lang": "CLI v2", - "source": "phrase repo_sync export \\\n--id \\\n--access_token " + "source": "phrase repo_syncs export \\\n--id \\\n--access_token " } ], "x-cli-version": "2.24" @@ -21931,7 +21931,7 @@ }, { "lang": "CLI v2", - "source": "phrase repo_sync import \\\n--id \\\n--access_token " + "source": "phrase repo_syncs import \\\n--id \\\n--access_token " } ], "x-cli-version": "2.24" @@ -21941,9 +21941,9 @@ "get": { "summary": "Repository Syncs History", "description": "Get the history of a single Repo Sync. The history includes all imports and exports\nperformed by the Repo Sync.", - "operationId": "repo_sync/events", + "operationId": "repo_sync_event/list", "tags": [ - "Repo Syncs" + "Repo Sync Events" ], "parameters": [ { @@ -22004,7 +22004,7 @@ }, { "lang": "CLI v2", - "source": "phrase repo_sync events \\\n--id \\\n--account_id abcd1234 \\\n--access_token " + "source": "phrase repo_sync_events list \\\n--id \\\n--account_id abcd1234 \\\n--access_token " } ], "x-cli-version": "2.24" @@ -22016,7 +22016,7 @@ "description": "Shows a single Repo Sync event.", "operationId": "repo_sync_event/show", "tags": [ - "Repo Syncs" + "Repo Sync Events" ], "parameters": [ { @@ -22071,7 +22071,7 @@ }, { "lang": "CLI v2", - "source": "phrase repo_sync_event show \\\n--id \\\n--repo_sync_id \\\n--account_id abcd1234 \\\n--access_token " + "source": "phrase repo_sync_events show \\\n--id \\\n--repo_sync_id \\\n--account_id abcd1234 \\\n--access_token " } ], "x-cli-version": "2.24" @@ -22135,7 +22135,7 @@ }, { "lang": "CLI v2", - "source": "phrase repo_sync deactivate \\\n--id \\\n--access_token " + "source": "phrase repo_syncs deactivate \\\n--id \\\n--access_token " } ], "x-cli-version": "2.24" @@ -22199,7 +22199,7 @@ }, { "lang": "CLI v2", - "source": "phrase repo_sync activate \\\n--id \\\n--access_token " + "source": "phrase repo_syncs activate \\\n--id \\\n--access_token " } ], "x-cli-version": "2.24" diff --git a/paths/repo_sync_events/index.yaml b/paths/repo_sync_events/index.yaml index d538efd9..133940fd 100644 --- a/paths/repo_sync_events/index.yaml +++ b/paths/repo_sync_events/index.yaml @@ -2,9 +2,9 @@ summary: "Repository Syncs History" description: |- Get the history of a single Repo Sync. The history includes all imports and exports performed by the Repo Sync. -operationId: repo_sync/events +operationId: repo_sync_event/list tags: -- Repo Syncs +- Repo Sync Events parameters: - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" - "$ref": "../../parameters.yaml#/account_id" @@ -42,7 +42,7 @@ x-code-samples: -u USERNAME_OR_ACCESS_TOKEN - lang: CLI v2 source: |- - phrase repo_sync events \ + phrase repo_sync_events list \ --id \ --account_id abcd1234 \ --access_token diff --git a/paths/repo_sync_events/show.yaml b/paths/repo_sync_events/show.yaml index 7f7d6af6..0a985209 100644 --- a/paths/repo_sync_events/show.yaml +++ b/paths/repo_sync_events/show.yaml @@ -3,7 +3,7 @@ summary: Get a single Repo Sync Event description: Shows a single Repo Sync event. operationId: repo_sync_event/show tags: -- Repo Syncs +- Repo Sync Events parameters: - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" - "$ref": "../../parameters.yaml#/account_id" @@ -36,7 +36,7 @@ x-code-samples: -u USERNAME_OR_ACCESS_TOKEN - lang: CLI v2 source: |- - phrase repo_sync_event show \ + phrase repo_sync_events show \ --id \ --repo_sync_id \ --account_id abcd1234 \ diff --git a/paths/repo_syncs/activate.yaml b/paths/repo_syncs/activate.yaml index ca62d5b4..0a11cacf 100644 --- a/paths/repo_syncs/activate.yaml +++ b/paths/repo_syncs/activate.yaml @@ -39,7 +39,7 @@ x-code-samples: -H 'Content-Type: application/json' - lang: CLI v2 source: |- - phrase repo_sync activate \ + phrase repo_syncs activate \ --id \ --access_token x-cli-version: '2.24' diff --git a/paths/repo_syncs/deactivate.yaml b/paths/repo_syncs/deactivate.yaml index 560833f9..e4c71e9b 100644 --- a/paths/repo_syncs/deactivate.yaml +++ b/paths/repo_syncs/deactivate.yaml @@ -39,7 +39,7 @@ x-code-samples: -H 'Content-Type: application/json' - lang: CLI v2 source: |- - phrase repo_sync deactivate \ + phrase repo_syncs deactivate \ --id \ --access_token x-cli-version: '2.24' diff --git a/paths/repo_syncs/export.yaml b/paths/repo_syncs/export.yaml index 84ef8b56..18be769c 100644 --- a/paths/repo_syncs/export.yaml +++ b/paths/repo_syncs/export.yaml @@ -41,7 +41,7 @@ x-code-samples: -H 'Content-Type: application/json' - lang: CLI v2 source: |- - phrase repo_sync export \ + phrase repo_syncs export \ --id \ --access_token x-cli-version: '2.24' diff --git a/paths/repo_syncs/import.yaml b/paths/repo_syncs/import.yaml index cc0a4a1e..ae6a4400 100644 --- a/paths/repo_syncs/import.yaml +++ b/paths/repo_syncs/import.yaml @@ -41,7 +41,7 @@ x-code-samples: -H 'Content-Type: application/json' - lang: CLI v2 source: |- - phrase repo_sync import \ + phrase repo_syncs import \ --id \ --access_token x-cli-version: '2.24' diff --git a/paths/repo_syncs/index.yaml b/paths/repo_syncs/index.yaml index 63d2f413..286d7cd5 100644 --- a/paths/repo_syncs/index.yaml +++ b/paths/repo_syncs/index.yaml @@ -40,7 +40,7 @@ x-code-samples: -u USERNAME_OR_ACCESS_TOKEN - lang: CLI v2 source: |- - phrase repo_sync list \ + phrase repo_syncs list \ --account_id abcd1234 \ --access_token x-cli-version: '2.24' diff --git a/paths/repo_syncs/show.yaml b/paths/repo_syncs/show.yaml index 2d280d2f..a3b2487b 100644 --- a/paths/repo_syncs/show.yaml +++ b/paths/repo_syncs/show.yaml @@ -35,7 +35,7 @@ x-code-samples: -u USERNAME_OR_ACCESS_TOKEN - lang: CLI v2 source: |- - phrase repo_sync show \ + phrase repo_syncs show \ --id \ --account_id abcd1234 \ --access_token diff --git a/schemas/repo_sync_event.yaml b/schemas/repo_sync_event.yaml index ed96c955..e50a124d 100644 --- a/schemas/repo_sync_event.yaml +++ b/schemas/repo_sync_event.yaml @@ -5,7 +5,7 @@ repo_sync_event: properties: id: type: string - event_type: + type: type: string enum: [import, export] created_at: @@ -28,7 +28,7 @@ repo_sync_event: - type: string - type: object example: - event_type: import + type: import created_at: '2015-01-28T09:52:53Z' status: failure auto_import: true