Skip to content

Commit c4c7dfc

Browse files
authored
Changed content encoding to octet stream (#28)
1 parent fd239f5 commit c4c7dfc

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Sources/FeatherOpenAPIKit/Interfaces/RequestBody/BinaryBody.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extension BinaryBody {
1616
content: [
1717
contentType: .init(
1818
schema: .string(
19-
contentEncoding: .binary
19+
contentMediaType: .other("application/octet-stream")
2020
)
2121
)
2222
],

Sources/FeatherOpenAPIKit/Interfaces/Response/BinaryResponse.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ public extension BinaryResponse {
88
description: description,
99
headers: openAPIHeaderMap(),
1010
content: openAPIContentMap() + [
11-
.any: .init(schema: .string(contentEncoding: .binary))
11+
.any: .init(
12+
schema: .string(
13+
contentMediaType: .other("application/octet-stream")
14+
)
15+
)
1216
]
1317
)
1418
}

0 commit comments

Comments
 (0)