Skip to content

Commit 2164139

Browse files
Merge pull request #26 from crowdin/fix-project-build-response-2
fix: change ProjectBuild response
2 parents 6dc6d30 + 3dde4eb commit 2164139

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

src/main/java/com/crowdin/client/translations/model/ProjectBuild.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class ProjectBuild {
1111
private Long projectId;
1212
private String status;
1313
private Integer progress;
14-
private List<Attributes> attributes;
14+
private Attributes attributes;
1515

1616
@Data
1717
public static class Attributes {

src/test/resources/api/translations/listProjectBuilds.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
{
44
"data": {
55
"id": 2,
6+
"projectId": 2,
67
"status": "finished",
78
"progress": 100,
8-
"attributes": [
9-
{
10-
"projectId": 2,
9+
"attributes": {
1110
"branchId": 1,
1211
"targetLanguagesId": [
1312
"en"
@@ -16,7 +15,6 @@
1615
"skipUntranslatedFiles": false,
1716
"exportApprovedOnly": false
1817
}
19-
]
2018
}
2119
}
2220
],
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"data": {
33
"id": 2,
4+
"projectId": 2,
45
"status": "finished",
56
"progress": 100,
6-
"attributes": [
7-
{
8-
"projectId": 2,
7+
"attributes": {
98
"branchId": 1,
109
"targetLanguagesId": [
1110
"en"
@@ -14,6 +13,5 @@
1413
"skipUntranslatedFiles": false,
1514
"exportApprovedOnly": false
1615
}
17-
]
1816
}
1917
}

0 commit comments

Comments
 (0)