Skip to content

[Java okhttp-gson] Support "binary" (byte array) for body parameter and response #1898

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

Merged
merged 2 commits into from
Jan 21, 2016
Merged

[Java okhttp-gson] Support "binary" (byte array) for body parameter and response #1898

merged 2 commits into from
Jan 21, 2016

Conversation

xhh
Copy link
Contributor

@xhh xhh commented Jan 15, 2016

Also updated Java default, jersey2 and okhttp-gson clients to support (constant) query string in the path (to work with the 2 "fake" petstore endpoints on binary).

for body parameter and response.
Also Update Java default, jersey2 and okhttp-gson clients to support
(constant) query string in the `path` (to work with the 2 "fake"
petstore endpoints on binary).
Conflicts:
	samples/client/petstore/java/default/src/test/java/io/swagger/petstore/test/PetApiTest.java
	samples/client/petstore/java/jersey2/src/test/java/io/swagger/petstore/test/PetApiTest.java
	samples/client/petstore/java/okhttp-gson/src/test/java/io/swagger/petstore/test/PetApiTest.java
wing328 added a commit that referenced this pull request Jan 21, 2016
[Java okhttp-gson] Support "binary" (byte array) for body parameter and response
@wing328 wing328 merged commit 53abd8a into swagger-api:master Jan 21, 2016
@Cloudmersive
Copy link

What do you need to do on the Swagger 2.0 API specification side to get this outcome? Right now when I do type=file, I am getting a File object returned not a byte[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants