Skip to content

Commit

Permalink
fix(API): Repo Sync Event errors field type #STRINGS-1074 (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
jablan authored Dec 20, 2024
1 parent 2863eeb commit c7670e0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
16 changes: 6 additions & 10 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -4368,14 +4371,7 @@
"description": "List of error messages, in case of failure",
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "object"
}
]
"type": "string"
}
}
},
Expand All @@ -4385,8 +4381,8 @@
"status": "failure",
"auto_import": true,
"errors": [
"Error message",
"Error message"
"Error message 1",
"Error message 2"
]
}
}
Expand Down
1 change: 1 addition & 0 deletions main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions schemas/repo_sync_event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit c7670e0

Please sign in to comment.