Skip to content

Commit

Permalink
fix(API): Repo Sync schema fixes #STRINGS-1074 (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
jablan authored Dec 20, 2024
1 parent 0c3eec0 commit 033be10
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 26 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
golang 1.21.9
nodejs 20.11.0
maven 3.9.1
java temurin-11.0.25+9
26 changes: 13 additions & 13 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -4337,7 +4337,7 @@
"id": {
"type": "string"
},
"event_type": {
"type": {
"type": "string",
"enum": [
"import",
Expand Down Expand Up @@ -4380,7 +4380,7 @@
}
},
"example": {
"event_type": "import",
"type": "import",
"created_at": "2015-01-28T09:52:53Z",
"status": "failure",
"auto_import": true,
Expand Down Expand Up @@ -21739,7 +21739,7 @@
},
{
"lang": "CLI v2",
"source": "phrase repo_sync list \\\n--account_id abcd1234 \\\n--access_token <token>"
"source": "phrase repo_syncs list \\\n--account_id abcd1234 \\\n--access_token <token>"
}
],
"x-cli-version": "2.24"
Expand Down Expand Up @@ -21803,7 +21803,7 @@
},
{
"lang": "CLI v2",
"source": "phrase repo_sync show \\\n--id <id> \\\n--account_id abcd1234 \\\n--access_token <token>"
"source": "phrase repo_syncs show \\\n--id <id> \\\n--account_id abcd1234 \\\n--access_token <token>"
}
],
"x-cli-version": "2.24"
Expand Down Expand Up @@ -21867,7 +21867,7 @@
},
{
"lang": "CLI v2",
"source": "phrase repo_sync export \\\n--id <repo_sync_id> \\\n--access_token <token>"
"source": "phrase repo_syncs export \\\n--id <repo_sync_id> \\\n--access_token <token>"
}
],
"x-cli-version": "2.24"
Expand Down Expand Up @@ -21931,7 +21931,7 @@
},
{
"lang": "CLI v2",
"source": "phrase repo_sync import \\\n--id <repo_sync_id> \\\n--access_token <token>"
"source": "phrase repo_syncs import \\\n--id <repo_sync_id> \\\n--access_token <token>"
}
],
"x-cli-version": "2.24"
Expand All @@ -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": [
{
Expand Down Expand Up @@ -22004,7 +22004,7 @@
},
{
"lang": "CLI v2",
"source": "phrase repo_sync events \\\n--id <id> \\\n--account_id abcd1234 \\\n--access_token <token>"
"source": "phrase repo_sync_events list \\\n--id <id> \\\n--account_id abcd1234 \\\n--access_token <token>"
}
],
"x-cli-version": "2.24"
Expand All @@ -22016,7 +22016,7 @@
"description": "Shows a single Repo Sync event.",
"operationId": "repo_sync_event/show",
"tags": [
"Repo Syncs"
"Repo Sync Events"
],
"parameters": [
{
Expand Down Expand Up @@ -22071,7 +22071,7 @@
},
{
"lang": "CLI v2",
"source": "phrase repo_sync_event show \\\n--id <id> \\\n--repo_sync_id <repo_sync_id> \\\n--account_id abcd1234 \\\n--access_token <token>"
"source": "phrase repo_sync_events show \\\n--id <id> \\\n--repo_sync_id <repo_sync_id> \\\n--account_id abcd1234 \\\n--access_token <token>"
}
],
"x-cli-version": "2.24"
Expand Down Expand Up @@ -22135,7 +22135,7 @@
},
{
"lang": "CLI v2",
"source": "phrase repo_sync deactivate \\\n--id <repo_sync_id> \\\n--access_token <token>"
"source": "phrase repo_syncs deactivate \\\n--id <repo_sync_id> \\\n--access_token <token>"
}
],
"x-cli-version": "2.24"
Expand Down Expand Up @@ -22199,7 +22199,7 @@
},
{
"lang": "CLI v2",
"source": "phrase repo_sync activate \\\n--id <repo_sync_id> \\\n--access_token <token>"
"source": "phrase repo_syncs activate \\\n--id <repo_sync_id> \\\n--access_token <token>"
}
],
"x-cli-version": "2.24"
Expand Down
6 changes: 3 additions & 3 deletions paths/repo_sync_events/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 <id> \
--account_id abcd1234 \
--access_token <token>
Expand Down
4 changes: 2 additions & 2 deletions paths/repo_sync_events/show.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 <id> \
--repo_sync_id <repo_sync_id> \
--account_id abcd1234 \
Expand Down
2 changes: 1 addition & 1 deletion paths/repo_syncs/activate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <repo_sync_id> \
--access_token <token>
x-cli-version: '2.24'
2 changes: 1 addition & 1 deletion paths/repo_syncs/deactivate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <repo_sync_id> \
--access_token <token>
x-cli-version: '2.24'
2 changes: 1 addition & 1 deletion paths/repo_syncs/export.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <repo_sync_id> \
--access_token <token>
x-cli-version: '2.24'
2 changes: 1 addition & 1 deletion paths/repo_syncs/import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <repo_sync_id> \
--access_token <token>
x-cli-version: '2.24'
2 changes: 1 addition & 1 deletion paths/repo_syncs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <token>
x-cli-version: '2.24'
2 changes: 1 addition & 1 deletion paths/repo_syncs/show.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <id> \
--account_id abcd1234 \
--access_token <token>
Expand Down
4 changes: 2 additions & 2 deletions schemas/repo_sync_event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repo_sync_event:
properties:
id:
type: string
event_type:
type:
type: string
enum: [import, export]
created_at:
Expand All @@ -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
Expand Down

0 comments on commit 033be10

Please sign in to comment.