We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8305dbb commit 4e12b64Copy full SHA for 4e12b64
src/language/typescript/3.0/serializers/response-object.ts
@@ -14,7 +14,9 @@ export const serializeResponseObject = (
14
): Option<Either<Error, SerializedType>> =>
15
pipe(
16
responseObject.content,
17
- option.mapNullable(content => content['application/json']),
+ option.mapNullable(
18
+ content => content['application/json'] || content['text/plain'] || content['application/octet-stream'],
19
+ ),
20
option.chain(media => media.schema),
21
option.map(schema =>
22
ReferenceObjectCodec.is(schema)
0 commit comments