-
Notifications
You must be signed in to change notification settings - Fork 17
Support binary and text responses #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @mankdev, thanks for the PR! We have however some concerns on the suggested implementation, especially on the part with "deep lookup". Could you please clarify in details what are you trying to suggest and how does it correlate with OA3/swagger2 specs? Thanks! |
You are right, |
# Conflicts: # src/language/typescript/common/data/serialized-type.ts
@mankdev LGTM, but please resolve conflicts |
# Conflicts: # src/language/typescript/3.0/serializers/operation-object.ts
@raveclassic done |
Hi,
This PR adds support for file type response using definition
{type: 'string', format: 'binary'}
, it is valid for both 2.0 and 3.0 specs.I suggest treating blob data as
unknown
since it can be handled by http-client implementationAlso it extends
Request
type with additional fieldresponseType: 'json' | 'blob' | 'text'
because this information required for proper http-client implementation.For now, I've implemented only support for 2.0 spec, but if you guys ok with the approach, I will add support for 3.0.