Skip to content

Commit e95af97

Browse files
committed
Fixed content type for getting attachments with the filename
This applied to multiple endpoints.
1 parent a128715 commit e95af97

File tree

2 files changed

+54
-108
lines changed

2 files changed

+54
-108
lines changed

spec/v3/Xero_accounting_2.0.0_swagger.json

Lines changed: 27 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,10 @@
336336
"200" : {
337337
"description" : "A successful request",
338338
"content" : {
339-
"text/xml" : {
340-
"schema" : {
341-
"$ref" : "#/components/schemas/Attachments"
342-
}
343-
},
344-
"application/json" : {
339+
"application/octet-stream" : {
345340
"schema" : {
346-
"$ref" : "#/components/schemas/Attachments"
341+
"type" : "string",
342+
"format" : "binary"
347343
}
348344
}
349345
}
@@ -954,14 +950,10 @@
954950
"200" : {
955951
"description" : "A successful request",
956952
"content" : {
957-
"text/xml" : {
958-
"schema" : {
959-
"$ref" : "#/components/schemas/Attachments"
960-
}
961-
},
962-
"application/json" : {
953+
"application/octet-stream" : {
963954
"schema" : {
964-
"$ref" : "#/components/schemas/Attachments"
955+
"type" : "string",
956+
"format" : "binary"
965957
}
966958
}
967959
}
@@ -1439,14 +1431,10 @@
14391431
"200" : {
14401432
"description" : "A successful request",
14411433
"content" : {
1442-
"text/xml" : {
1443-
"schema" : {
1444-
"$ref" : "#/components/schemas/Attachments"
1445-
}
1446-
},
1447-
"application/json" : {
1434+
"application/octet-stream" : {
14481435
"schema" : {
1449-
"$ref" : "#/components/schemas/Attachments"
1436+
"type" : "string",
1437+
"format" : "binary"
14501438
}
14511439
}
14521440
}
@@ -2118,14 +2106,10 @@
21182106
"200" : {
21192107
"description" : "A successful request",
21202108
"content" : {
2121-
"text/xml" : {
2122-
"schema" : {
2123-
"$ref" : "#/components/schemas/Attachments"
2124-
}
2125-
},
2126-
"application/json" : {
2109+
"application/octet-stream" : {
21272110
"schema" : {
2128-
"$ref" : "#/components/schemas/Attachments"
2111+
"type" : "string",
2112+
"format" : "binary"
21292113
}
21302114
}
21312115
}
@@ -2942,14 +2926,10 @@
29422926
"200" : {
29432927
"description" : "A successful request",
29442928
"content" : {
2945-
"text/xml" : {
2946-
"schema" : {
2947-
"$ref" : "#/components/schemas/Attachments"
2948-
}
2949-
},
2950-
"application/json" : {
2929+
"application/octet-stream" : {
29512930
"schema" : {
2952-
"$ref" : "#/components/schemas/Attachments"
2931+
"type" : "string",
2932+
"format" : "binary"
29532933
}
29542934
}
29552935
}
@@ -4115,14 +4095,10 @@
41154095
"200" : {
41164096
"description" : "A successful request",
41174097
"content" : {
4118-
"text/xml" : {
4119-
"schema" : {
4120-
"$ref" : "#/components/schemas/Attachments"
4121-
}
4122-
},
4123-
"application/json" : {
4098+
"application/octet-stream" : {
41244099
"schema" : {
4125-
"$ref" : "#/components/schemas/Attachments"
4100+
"type" : "string",
4101+
"format" : "binary"
41264102
}
41274103
}
41284104
}
@@ -5298,14 +5274,10 @@
52985274
"200" : {
52995275
"description" : "A successful request",
53005276
"content" : {
5301-
"text/xml" : {
5302-
"schema" : {
5303-
"$ref" : "#/components/schemas/Attachments"
5304-
}
5305-
},
5306-
"application/json" : {
5277+
"application/octet-stream" : {
53075278
"schema" : {
5308-
"$ref" : "#/components/schemas/Attachments"
5279+
"type" : "string",
5280+
"format" : "binary"
53095281
}
53105282
}
53115283
}
@@ -6814,14 +6786,10 @@
68146786
"200" : {
68156787
"description" : "A successful request",
68166788
"content" : {
6817-
"text/xml" : {
6818-
"schema" : {
6819-
"$ref" : "#/components/schemas/Attachments"
6820-
}
6821-
},
6822-
"application/json" : {
6789+
"application/octet-stream" : {
68236790
"schema" : {
6824-
"$ref" : "#/components/schemas/Attachments"
6791+
"type" : "string",
6792+
"format" : "binary"
68256793
}
68266794
}
68276795
}
@@ -7248,14 +7216,10 @@
72487216
"200" : {
72497217
"description" : "A successful request",
72507218
"content" : {
7251-
"text/xml" : {
7252-
"schema" : {
7253-
"$ref" : "#/components/schemas/Attachments"
7254-
}
7255-
},
7256-
"application/json" : {
7219+
"application/octet-stream" : {
72577220
"schema" : {
7258-
"$ref" : "#/components/schemas/Attachments"
7221+
"type" : "string",
7222+
"format" : "binary"
72597223
}
72607224
}
72617225
}

spec/v3/Xero_accounting_2.0.0_swagger.yaml

Lines changed: 27 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,10 @@ paths:
241241
'200':
242242
description: A successful request
243243
content:
244-
text/xml:
245-
schema:
246-
$ref: '#/components/schemas/Attachments'
247-
application/json:
244+
application/octet-stream:
248245
schema:
249-
$ref: '#/components/schemas/Attachments'
246+
type: string
247+
format: binary
250248
parameters:
251249
- required: true
252250
in: path
@@ -673,12 +671,10 @@ paths:
673671
'200':
674672
description: A successful request
675673
content:
676-
text/xml:
677-
schema:
678-
$ref: '#/components/schemas/Attachments'
679-
application/json:
674+
application/octet-stream:
680675
schema:
681-
$ref: '#/components/schemas/Attachments'
676+
type: string
677+
format: binary
682678
parameters:
683679
- required: true
684680
in: path
@@ -1012,12 +1008,10 @@ paths:
10121008
'200':
10131009
description: A successful request
10141010
content:
1015-
text/xml:
1016-
schema:
1017-
$ref: '#/components/schemas/Attachments'
1018-
application/json:
1011+
application/octet-stream:
10191012
schema:
1020-
$ref: '#/components/schemas/Attachments'
1013+
type: string
1014+
format: binary
10211015
parameters:
10221016
- required: true
10231017
in: path
@@ -1484,12 +1478,10 @@ paths:
14841478
'200':
14851479
description: A successful request
14861480
content:
1487-
text/xml:
1488-
schema:
1489-
$ref: '#/components/schemas/Attachments'
1490-
application/json:
1481+
application/octet-stream:
14911482
schema:
1492-
$ref: '#/components/schemas/Attachments'
1483+
type: string
1484+
format: binary
14931485
parameters:
14941486
- required: true
14951487
in: path
@@ -2061,12 +2053,10 @@ paths:
20612053
'200':
20622054
description: A successful request
20632055
content:
2064-
text/xml:
2065-
schema:
2066-
$ref: '#/components/schemas/Attachments'
2067-
application/json:
2056+
application/octet-stream:
20682057
schema:
2069-
$ref: '#/components/schemas/Attachments'
2058+
type: string
2059+
format: binary
20702060
parameters:
20712061
- required: true
20722062
in: path
@@ -2884,12 +2874,10 @@ paths:
28842874
'200':
28852875
description: A successful request
28862876
content:
2887-
text/xml:
2888-
schema:
2889-
$ref: '#/components/schemas/Attachments'
2890-
application/json:
2877+
application/octet-stream:
28912878
schema:
2892-
$ref: '#/components/schemas/Attachments'
2879+
type: string
2880+
format: binary
28932881
parameters:
28942882
- required: true
28952883
in: path
@@ -3710,12 +3698,10 @@ paths:
37103698
'200':
37113699
description: A successful request
37123700
content:
3713-
text/xml:
3714-
schema:
3715-
$ref: '#/components/schemas/Attachments'
3716-
application/json:
3701+
application/octet-stream:
37173702
schema:
3718-
$ref: '#/components/schemas/Attachments'
3703+
type: string
3704+
format: binary
37193705
parameters:
37203706
- required: true
37213707
in: path
@@ -4768,12 +4754,10 @@ paths:
47684754
'200':
47694755
description: A successful request
47704756
content:
4771-
text/xml:
4772-
schema:
4773-
$ref: '#/components/schemas/Attachments'
4774-
application/json:
4757+
application/octet-stream:
47754758
schema:
4776-
$ref: '#/components/schemas/Attachments'
4759+
type: string
4760+
format: binary
47774761
parameters:
47784762
- required: true
47794763
in: path
@@ -5072,12 +5056,10 @@ paths:
50725056
'200':
50735057
description: A successful request
50745058
content:
5075-
text/xml:
5076-
schema:
5077-
$ref: '#/components/schemas/Attachments'
5078-
application/json:
5059+
application/octet-stream:
50795060
schema:
5080-
$ref: '#/components/schemas/Attachments'
5061+
type: string
5062+
format: binary
50815063
parameters:
50825064
- required: true
50835065
in: path

0 commit comments

Comments
 (0)