You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an openapi specification which contains the following in a response:
"content": {
"application/octet-stream": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
The generator fails in 'swagger.ts' line 50:
return successResponse.content['application/json'].schema;
Would be great to see it fixed so it won't fail.
Even better to add binary response support :)
The text was updated successfully, but these errors were encountered:
That would be a file download. I wonder how that would make sense in GraphQL. The response of GraphQL will always be a json with { "data": { "myEndpoint: ..... } }. We could encode a file response as base64, but I think it makes more sense to use the underlying rest api directly without GraphQL.
Do other graphql servers implement file downloads?
I have an openapi specification which contains the following in a response:
"content": {
"application/octet-stream": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
The generator fails in 'swagger.ts' line 50:
return successResponse.content['application/json'].schema;
Would be great to see it fixed so it won't fail.
Even better to add binary response support :)
The text was updated successfully, but these errors were encountered: